/opt/alt/python27/lib64/python2.7/site-packages/matplotlib
NameSizeModeActions
backends/-0755rm
delaunay/-0755rm
mpl-data/-0755rm
numerix/-0755rm
projections/-0755rm
sphinxext/-0755rm
afm.py150890644editdlrm
afm.pyc173880644editdlrm
afm.pyo173880644editdlrm
artist.py356230644editdlrm
artist.pyc414310644editdlrm
artist.pyo414310644editdlrm
axes.py2800890644editdlrm
axes.pyc2525680644editdlrm
axes.pyo2514560644editdlrm
axis.py573540644editdlrm
axis.pyc608580644editdlrm
axis.pyo605510644editdlrm
backend_bases.py723180644editdlrm
backend_bases.pyc799690644editdlrm
backend_bases.pyo798790644editdlrm
bezier.py149170644editdlrm
bezier.pyc138120644editdlrm
bezier.pyo138120644editdlrm
blocking_input.py136900644editdlrm
blocking_input.pyc147620644editdlrm
blocking_input.pyo144440644editdlrm
cbook.py427560644editdlrm
cbook.pyc586920644editdlrm
cbook.pyo584660644editdlrm
cm.py80980644editdlrm
cm.pyc100320644editdlrm
cm.pyo100320644editdlrm
collections.py407840644editdlrm
collections.pyc451110644editdlrm
collections.pyo451110644editdlrm
colorbar.py274560644editdlrm
colorbar.pyc258350644editdlrm
colorbar.pyo258350644editdlrm
colors.py391100644editdlrm
colors.pyc406900644editdlrm
colors.pyo406900644editdlrm
contour.py428950644editdlrm
contour.pyc364630644editdlrm
contour.pyo363010644editdlrm
dates.py360070755editdlrm
dates.pyc411350644editdlrm
dates.pyo410710644editdlrm
dviread.py320330644editdlrm
dviread.pyc354880644editdlrm
dviread.pyo353450644editdlrm
figure.py412640644editdlrm
figure.pyc437060644editdlrm
figure.pyo435750644editdlrm
finance.py205820644editdlrm
finance.pyc186750644editdlrm
finance.pyo185150644editdlrm
fontconfig_pattern.py64290644editdlrm
fontconfig_pattern.pyc67100644editdlrm
fontconfig_pattern.pyo67100644editdlrm
font_manager.py426530644editdlrm
font_manager.pyc412750644editdlrm
font_manager.pyo412750644editdlrm
ft2font.so3061680755editdlrm
hatch.py65640644editdlrm
hatch.pyc94840644editdlrm
hatch.pyo94840644editdlrm
image.py315400644editdlrm
image.pyc337830644editdlrm
image.pyo337370644editdlrm
legend.py323020644editdlrm
legend.pyc238760644editdlrm
legend.pyo237030644editdlrm
lines.py546850644editdlrm
lines.pyc579910644editdlrm
lines.pyo578860644editdlrm
mathtext.py1020090644editdlrm
mathtext.pyc1060700644editdlrm
mathtext.pyo1056820644editdlrm
mlab.py942940644editdlrm
mlab.pyc1019150644editdlrm
mlab.pyo1017350644editdlrm
mpl.py7850644editdlrm
mpl.pyc11890644editdlrm
mpl.pyo11890644editdlrm
nxutils.so97040755editdlrm
offsetbox.py298070644editdlrm
offsetbox.pyc348250644editdlrm
offsetbox.pyo347700644editdlrm
patches.py1284850644editdlrm
patches.pyc1337360644editdlrm
patches.pyo1335980644editdlrm
path.py217650644editdlrm
path.pyc214990644editdlrm
path.pyo212790644editdlrm
pylab.py109810644editdlrm
pylab.pyc124380644editdlrm
pylab.pyo124380644editdlrm
pyparsing.py1439240644editdlrm
pyparsing.pyc1511830644editdlrm
pyparsing.pyo1511830644editdlrm
pyplot.py824680644editdlrm
pyplot.pyc819820644editdlrm
pyplot.pyo819820644editdlrm
quiver.py375400644editdlrm
quiver.pyc341520644editdlrm
quiver.pyo341520644editdlrm
rcsetup.py234340644editdlrm
rcsetup.pyc215220644editdlrm
rcsetup.pyo213520644editdlrm
scale.py142330644editdlrm
scale.pyc202540644editdlrm
scale.pyo202540644editdlrm
spines.py126840644editdlrm
spines.pyc118830644editdlrm
spines.pyo114560644editdlrm
table.py168280644editdlrm
table.pyc173730644editdlrm
table.pyo172220644editdlrm
texmanager.py224640644editdlrm
texmanager.pyc202090644editdlrm
texmanager.pyo202090644editdlrm
text.py598220644editdlrm
text.pyc606960644editdlrm
text.pyo606960644editdlrm
ticker.py404280644editdlrm
ticker.pyc521640644editdlrm
ticker.pyo520280644editdlrm
tight_bbox.py36550644editdlrm
tight_bbox.pyc41570644editdlrm
tight_bbox.pyo41570644editdlrm
transforms.py753870644editdlrm
transforms.pyc924320644editdlrm
transforms.pyo915230644editdlrm
ttconv.so654880755editdlrm
type1font.py115370644editdlrm
type1font.pyc114900644editdlrm
type1font.pyo114900644editdlrm
units.py49760644editdlrm
units.pyc59180644editdlrm
units.pyo59180644editdlrm
widgets.py408330644editdlrm
widgets.pyc436080644editdlrm
widgets.pyo434220644editdlrm
windowing.py4540644editdlrm
windowing.pyc13610644editdlrm
windowing.pyo13610644editdlrm
_cm.py3704140644editdlrm
_cm.pyc1030550644editdlrm
_cm.pyo1030550644editdlrm
_cntr.so209600755editdlrm
_delaunay.so611840755editdlrm
_image.so2828560755editdlrm
_mathtext_data.py579900644editdlrm
_mathtext_data.pyc638000644editdlrm
_mathtext_data.pyo638000644editdlrm
_path.so2803120755editdlrm
_png.so1565040755editdlrm
_pylab_helpers.py27150644editdlrm
_pylab_helpers.pyc38380644editdlrm
_pylab_helpers.pyo38380644editdlrm
__init__.py289720644editdlrm
__init__.pyc294350644editdlrm
__init__.pyo293810644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyc (79969B)
Jc@ sdZddklZddkZddkZddkZddkZddki Z ddk i Z ddk i Z ddkiZddkiZddklZddk lZlZlZddkZddkiZdfdYZdfd YZd fd YZd efd YZdefdYZdefdYZdefdYZ de fdYZ!defdYZ"de fdYZ#dfdYZ$dfdYZ%dfdYZ&e&Z'd fd!YZ(dS("s Abstract base classes define the primitives that renderers and graphics contexts must implement to serve as a matplotlib backend :class:`RendererBase` An abstract base class to handle drawing/rendering operations. :class:`FigureCanvasBase` The abstraction layer that separates the :class:`matplotlib.figure.Figure` from the backend specific details like a user interface drawing area :class:`GraphicsContextBase` An abstract base class that provides color, line styles, etc... :class:`Event` The base class for all of the matplotlib event handling. Derived classes suh as :class:`KeyEvent` and :class:`MouseEvent` store the meta data like keys and buttons pressed, x and y locations in pixel and :class:`~matplotlib.axes.Axes` coordinates. i(tdivisionN(trcParams(tBboxtTransformedBboxtAffine2Dt RendererBasecB seZdZdZddZdZddZddZdZ dZ dZ d Z d Z ddd Zd Zd dZedZdZdZdZdZdZdZdZdZdZRS(sAn abstract base class to handle drawing/rendering operations. The following methods *must* be implemented in the backend: * :meth:`draw_path` * :meth:`draw_image` * :meth:`draw_text` * :meth:`get_text_width_height_descent` The following methods *should* be implemented in the backend for optimization reasons: * :meth:`draw_markers` * :meth:`draw_path_collection` * :meth:`draw_quad_mesh` cC s d|_dS(N(tNonet _texmanager(tself((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt__init__:scC sdS(s Open a grouping element with label *s*. If *gid* is given, use *gid* as the id of the group. Is only currently used by :mod:`~matplotlib.backends.backend_svg`. N((Rtstgid((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt open_group=scC sdS(s Close a grouping element with label *s* Is only currently used by :mod:`~matplotlib.backends.backend_svg` N((RR ((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt close_groupEscC s tdS(sk Draws a :class:`~matplotlib.path.Path` instance using the given affine transform. N(tNotImplementedError(Rtgctpatht transformtrgbFace((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt draw_pathLsc C swxp|i|dtD]Y\}}t|o@|d\} } |i|||tii| | |qqWdS(s Draws a marker at each of the vertices in path. This includes all vertices, including control points on curves. To avoid that behavior, those vertices should be removed before calling this function. *gc* the :class:`GraphicsContextBase` instance *marker_trans* is an affine transform applied to the marker. *trans* is an affine transform applied to the path. This provides a fallback implementation of draw_markers that makes multiple calls to :meth:`draw_path`. Some backends may want to override this method in order to draw the marker only once and reuse it multiple times. tsimplifyiN(t iter_segmentstFalsetlenRt transformsRt translate( RRt marker_patht marker_transRttransRtverticestcodestxty((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt draw_markersSs   cC sg}x6|i|||D]\}}|i||fqWx|i||||||| | | | | | D]X\}}}}}|\}}ti|ii||}|i||||qpWdS(s Draws a collection of paths, selecting drawing properties from the lists *facecolors*, *edgecolors*, *linewidths*, *linestyles* and *antialiaseds*. *offsets* is a list of offsets to apply to each of the paths. The offsets in *offsets* are first transformed by *offsetTrans* before being applied. This provides a fallback implementation of :meth:`draw_path_collection` that makes multiple calls to draw_path. Some backends may want to override this in order to render each set of path data only once, and then reference that path multiple times with the different offsets, colors, styles etc. The generator methods :meth:`_iter_collection_raw_paths` and :meth:`_iter_collection` are provided to help with (and standardize) the implementation across backends. It is highly recommended to use those generators, so that changes to the behavior of :meth:`draw_path_collection` can be made globally. N(t_iter_collection_raw_pathstappendt_iter_collectionRRt get_matrixRR(Rtmaster_transformtcliprecttclippathtclippath_transtpathstall_transformstoffsetst offsetTranst facecolorst edgecolorst linewidthst linestylest antialiasedsturlstpath_idsRRtxotyotpath_idRR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytdraw_path_collectionos      !c C sddkl} | i|||}| o@tiddddggti}tidgti}n| }tidgti}|i|||||g|| | ||g| gdgS(s This provides a fallback implementation of :meth:`draw_quad_mesh` that generates paths and then calls :meth:`draw_path_collection`. i(tQuadMeshgg?N(tmatplotlib.collectionsR9tconvert_mesh_to_pathstnptarraytfloat_R8R(RR&R'R(R)t meshWidtht meshHeightt coordinatesR,R-R.t antialiasedt showedgesR9R*R/R0((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytdraw_quad_meshs $ c c st|}t|}t||}|djodSti}xJt|D]<}|||} |o|||}n| ||fVqRWdS(sI This is a helper method (along with :meth:`_iter_collection`) to make it easier to write a space-efficent :meth:`draw_path_collection` implementation in a backend. This method yields all of the base path/transform combinations, given a master transform, a list of paths and list of transforms. The arguments should be exactly what is passed in to :meth:`draw_path_collection`. The backend should take each yielded path and transform and create an object that can be referenced (reused) later. iN(RtmaxRtIdentityTransformtxrange( RR&R*R+tNpathst NtransformstNRtiR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR"s     c c st|} t|}t| |}t|}t|}t| }t| }t| }t| }|djo |djp | djodS|o|i|}n|i}|i||dj o#ti||}|i|n|djo d}n|djo|i dnd\}}xBt |D]4}||| }|o|||\}}n|o|||}n|oY|i ||||o|i | ||n|o|i | ||qn|dj o2t|djo|i |d|d }n|i| |||o|i| ||n|||||fVqLW|idS(s This is a helper method (along with :meth:`_iter_collection_raw_paths`) to make it easier to write a space-efficent :meth:`draw_path_collection` implementation in a backend. This method yields all of the path, offset and graphics context combinations to draw the path collection. The caller should already have looped over the results of :meth:`_iter_collection_raw_paths` to draw this collection. The arguments should be the same as that passed into :meth:`draw_path_collection`, with the exception of *path_ids*, which is a list of arbitrary objects that the backend will use to reference one of the paths created in the :meth:`_iter_collection_raw_paths` stage. Each yielded result is of the form:: xo, yo, path_id, gc, rgbFace where *xo*, *yo* is an offset; *path_id* is one of the elements of *path_ids*; *gc* is a graphics context and *rgbFace* is a color to use for filling the path. iNgiii(ii(RRERtnew_gctset_clip_rectangleRRtTransformedPatht set_clip_patht set_linewidthRGtset_foregroundt set_dashest set_alphatset_antialiasedtset_urltrestore(RR4R'R(R)R,R-R.R/R0R1R2R3RHtNoffsetsRJt Nfacecolorst Nedgecolorst Nlinewidthst NlinestylestNaatNurlsttoffsetsRRR5R6RKR7((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR$sX        '         cC sdS(s Get the factor by which to magnify images passed to :meth:`draw_image`. Allows a backend to have images at a different resolution to other artists. g?((R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_image_magnificationscC s tdS(s  Draw the image instance into the current axes; *x* is the distance in pixels from the left hand side of the canvas. *y* the distance from the origin. That is, if origin is upper, y is the distance from top. If origin is lower, y is the distance from bottom *im* the :class:`matplotlib._image.Image` instance *bbox* a :class:`matplotlib.transforms.Bbox` instance for clipping, or None N(R(RRR timtbboxR(R)((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt draw_image"scC stS(s overwrite this method for renderers that do not necessarily want to rescale and composite raster images. (like SVG) (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytoption_image_nocomposite8ssTeX!cC s tdS(N(R(RRRR R tproptangletismath((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytdraw_tex?scC s tdS(sT Draw the text instance *gc* the :class:`GraphicsContextBase` instance *x* the x location of the text in display coords *y* the y location of the text in display coords *s* a :class:`matplotlib.text.Text` instance *prop* a :class:`matplotlib.font_manager.FontProperties` instance *angle* the rotation angle in degrees **backend implementers note** When you are trying to determine if you have gotten your bounding box right (which is what enables the text layout/alignment to work properly), it helps to change the line in text.py:: if 0: bbox_artist(self, renderer) to if 1, and then the actual bounding box will be blotted along with your text. N(R(RRRR R RdReRf((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt draw_textBs!cC stS(s Return true if y small numbers are top for renderer Is used for drawing text (:mod:`matplotlib.text`) and images (:mod:`matplotlib.image`) only (tTrue(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytflipyescC sdS(s4return the canvas width and height in display coordsi(ii((R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_canvas_width_heightmscC s7|idjo ddkl}||_n|iS(sO return the :class:`matplotlib.texmanager.TexManager` instance i(t TexManagerN(RRtmatplotlib.texmanagerRl(RRl((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_texmanagerqscC s tdS(s get the width and height, and the offset from the bottom to the baseline (descent), in display coords of the string s with :class:`~matplotlib.font_manager.FontProperties` prop N(R(RR RdRf((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_text_width_height_descentzscC stS(sF Return an instance of a :class:`GraphicsContextBase` (tGraphicsContextBase(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRLscC s|S(s Convert points to display units *points* a float or a numpy array of float return points converted to pixels You need to override this function (unless your backend doesn't have a dpi, eg, postscript or svg). Some imaging systems assume some value for pixels per inch:: points to pixels = points * pixels_per_inch/72.0 * dpi/72.0 ((Rtpoints((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytpoints_to_pixelsscC s ti|S(N(tcbookt strip_math(RR ((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRtscC sdS(N((R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytstart_rasterizingscC sdS(N((R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytstop_rasterizingsN(t__name__t __module__t__doc__R RR R RR!R8RDR"R$R_RbRcRgRRhRjRkRnRoRLRrRtRuRv(((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR)s0      %   O    #       RpcB s_eZdZhd*d6dd+fd6dd,fd6dd-fd 6Zd Zd Zd Zd ZdZ dZ dZ dZ dZ dZdZdZdZdZdZdZdZdZdZdZdZedZd Zd!Zd"Zd#Zd$Z d%Z!d&Z"d'Z#dd(Z$RS(.sI An abstract base class that provides color, line styles, etc... tsolidig@tdashedg@g@g?tdashdottdottedcC syd|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ dS( Ng?itbutttroundRzg(NN(ggg(t_alphat _antialiasedt _capstyleRt _cliprectt _clippatht_dashest _joinstylet _linestylet _linewidtht_rgbt_hatcht_urlt_snap(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR s            cC s|i|_|i|_|i|_|i|_|i|_|i|_|i|_|i|_|i|_|i |_ |i |_ |i |_ |i |_ dS(sCopy properties from gc to selfN( RRRRRRRRRRRRR(RR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytcopy_propertiess            cC sdS(s Restore the graphics context from the stack - needed only for backends that save graphics contexts on a stack N((R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRVscC s|iS(sb Return the alpha value used for blending - not supported on all backends (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt get_alphascC s|iS(s@Return true if the object should try to do antialiased rendering(R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_antialiasedscC s|iS(sT Return the capstyle as a string in ('butt', 'round', 'projecting') (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt get_capstylescC s|iS(s^ Return the clip rectangle as a :class:`~matplotlib.transforms.Bbox` instance (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_clip_rectanglescC s"|idj o|iiSdS(s Return the clip path in the form (path, transform), where path is a :class:`~matplotlib.path.Path` instance, and transform is an affine transform to apply to the path before clipping. N(NN(RRtget_transformed_path_and_affine(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt get_clip_pathscC s|iS(sN Return the dash information as an offset dashlist tuple. The dash list is a even size list that gives the ink on, ink off in pixels. See p107 of to PostScript `BLUEBOOK `_ for more info. Default value is None (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt get_dashess cC s|iS(sR Return the line join style as one of ('miter', 'round', 'bevel') (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt get_joinstylescC s|iS(s` Return the linestyle: one of ('solid', 'dashed', 'dashdot', 'dotted'). (R(Rtstyle((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt get_linestyle scC s|iS(s= Return the line width in points as a scalar (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt get_linewidthscC s|iS(s returns a tuple of three floats from 0-1. color can be a matlab format string, a html hex color string, or a rgb tuple (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_rgbscC s|iS(s= returns a url if one is set, None otherwise (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_url scC s|iS(s returns the snap setting which may be: * True: snap vertices to the nearest pixel center * False: leave vertices as-is * None: (auto) If the path contains only rectilinear line segments, round to the nearest pixel center (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_snap&s cC s ||_dS(s_ Set the alpha value used for blending - not supported on all backends N(R(Rtalpha((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRS3scC s!|o d|_n d|_dS(sK True if object should be drawn with antialiased rendering iiN(R(Rtb((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRT:s cC s.|djo ||_ntd|dS(sQ Set the capstyle as a string in ('butt', 'round', 'projecting') R~Rt projectings!Unrecognized cap style. Found %sN(sbuttsroundR(Rt ValueError(Rtcs((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt set_capstyleCs  cC s ||_dS(sT Set the clip rectangle with sequence (left, bottom, width, height) N(R(Rt rectangle((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRMLscC s4|djpt|tipt||_dS(s Set the clip path and transformation. Path should be a :class:`~matplotlib.transforms.TransformedPath` instance. N(Rt isinstanceRRNtAssertionErrorR(RR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRORs'cC s||f|_dS(s Set the dash style for the gc. *dash_offset* is the offset (usually 0). *dash_list* specifies the on-off sequence as points. ``(None, None)`` specifies a solid line N(R(Rt dash_offsett dash_list((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRRZs cC s-|o ||_ntii||_dS(s Set the foreground color. fg can be a matlab format string, a html hex color string, an rgb unit tuple, or a float between 0 and 1. In the latter case, grayscale is used. The :class:`GraphicsContextBase` converts colors to rgb internally. If you know the color is rgb already, you can set ``isRGB=True`` to avoid the performace hit of the conversion N(RtcolorstcolorConvertertto_rgba(RtfgtisRGB((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRQgs  cC s|||f|_dS(sI Set the foreground color to be a gray level with *frac* N(R(Rtfrac((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt set_graylevelvscC s.|djo ||_ntd|dS(sM Set the join style to be one of ('miter', 'round', 'bevel') tmiterRtbevels"Unrecognized join style. Found %sN(RsroundR(RR(Rtjs((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt set_joinstyle|s  cC s ||_dS(s- Set the linewidth in points N(R(Rtw((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRPscC sNy|i|\}}Wntd|nX||_|i||dS(sb Set the linestyle to be one of ('solid', 'dashed', 'dashdot', 'dotted'). sUnrecognized linestyle: %sN(tdashdRRRR(RRtoffsettdashes((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt set_linestyles  cC s ||_dS(s? Sets the url for links in compatible backends N(R(Rturl((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRUscC s ||_dS(s Sets the snap setting which may be: * True: snap vertices to the nearest pixel center * False: leave vertices as-is * None: (auto) If the path contains only rectilinear line segments, round to the nearest pixel center N(R(Rtsnap((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytset_snaps cC s ||_dS(s2 Sets the hatch style for filling N(R(Rthatch((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt set_hatchscC s|iS(s. Gets the current hatch style (R(R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt get_hatchscC s+|idjodStii|i|S(s7 Returns a Path for the current hatch. N(RRRtPathR(Rtdensity((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytget_hatch_pathsN(NN(g@g@(g@g@g?g@(g?g@(%RwRxRyRRR RRVRRRRRRRRRRRRRSRTRRMRORRRRQRRRPRRURRRR(((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRpsJ                        tEventcB seZdZddZRS(su A matplotlib event. Attach additional attributes as defined in :meth:`FigureCanvasBase.mpl_connect`. The following attributes are defined and shown with their default values *name* the event name *canvas* the FigureCanvas instance generating the event *guiEvent* the GUI event that triggered the matplotlib event cC s||_||_||_dS(N(tnametcanvastguiEvent(RRRR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR s  N(RwRxRyRR (((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRst IdleEventcB seZdZRS(sc An event triggered by the GUI backend when it is idle -- useful for passive animation (RwRxRy(((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRst DrawEventcB seZdZdZRS(s An event triggered by a draw operation on the canvas In addition to the :class:`Event` attributes, the following event attributes are defined: *renderer* the :class:`RendererBase` instance for the draw event cC s ti|||||_dS(N(RR trenderer(RRRR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR s(RwRxRyR (((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRs t ResizeEventcB seZdZdZRS(s An event triggered by a canvas resize In addition to the :class:`Event` attributes, the following event attributes are defined: *width* width of the canvas in pixels *height* height of the canvas in pixels cC s/ti||||i\|_|_dS(N(RR tget_width_heighttwidththeight(RRR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR s(RwRxRyR (((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRs t LocationEventcB sGeZdZdZdZdZdZdZdZ ddZ dZ RS(s A event that has a screen location The following additional attributes are defined and shown with their default values In addition to the :class:`Event` attributes, the following event attributes are defined: *x* x position - pixels from left of canvas *y* y position - pixels from bottom of canvas *inaxes* the :class:`~matplotlib.axes.Axes` instance if mouse is over axes *xdata* x coord of mouse in data coords *ydata* y coord of mouse in data coords c C sti|||d|||_||_|djp |djod|_|idSg}|iii D]!}|i |o ||qtqt~}t |djod|_|idSt |djo'd} |i | |d|_n|d|_y+|ii ii||f\} } Wn%tj od|_d|_nX| |_| |_|idS(s? *x*, *y* in figure coords, 0,0 = bottom, left RNiicS st|i|iS((tcmptzorder(t_xt_y((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt4si(RR RR Rtinaxest_update_enter_leaveRtfiguretget_axestin_axesRtsortt transDatatinvertedttransform_pointRtxdatatydata( RRRRR Rt_[1]tat axes_listtaxCmpRR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR s2    A     +   cC stidj oxti}|i|ijoX|idj o|iiid|n|idj o|iiid|qqn+|idj o|iiid|n|t_dS(s*process the figure/axes enter leave eventstaxes_leave_eventtaxes_enter_eventN(Rt lasteventRRRt callbackstprocess(Rtlast((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyREs "N( RwRxRyRRR RRRRR R(((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRs )t MouseEventcB sMeZdZdZdZdZdZdZdZ dZ dddddZ RS(s A mouse event ('button_press_event', 'button_release_event', 'scroll_event', 'motion_notify_event'). In addition to the :class:`Event` and :class:`LocationEvent` attributes, the following attributes are defined: *button* button pressed None, 1, 2, 3, 'up', 'down' (up and down are used for scroll events) *key* the key pressed: None, chr(range(255), 'shift', 'win', or 'control' *step* number of scroll steps (positive for 'up', negative for 'down') Example usage:: def on_press(event): print 'you pressed', event.button, event.xdata, event.ydata cid = fig.canvas.mpl_connect('button_press_event', on_press) ic C s>ti|||||d|||_||_||_dS(sn x, y in figure coords, 0,0 = bottom, left button pressed None, 1, 2, 3, 'up', 'down' RN(RR tbuttontkeytstep( RRRRR RRRR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR }s  N( RwRxRyRRR RRRRRR (((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR[st PickEventcB seZdZddZRS(sw a pick event, fired when the user picks a location on the canvas sufficiently close to an artist. Attrs: all the :class:`Event` attributes plus *mouseevent* the :class:`MouseEvent` that generated the pick *artist* the :class:`~matplotlib.artist.Artist` picked other extra class dependent attrs -- eg a :class:`~matplotlib.lines.Line2D` pick may define different extra attributes than a :class:`~matplotlib.collections.PatchCollection` pick event Example usage:: line, = ax.plot(rand(100), 'o', picker=5) # 5 points tolerance def on_pick(event): thisline = event.artist xdata, ydata = thisline.get_data() ind = event.ind print 'on pick line:', zip(xdata[ind], ydata[ind]) cid = fig.canvas.mpl_connect('pick_event', on_pick) cK s<ti||||||_||_|ii|dS(N(RR t mouseeventtartistt__dict__tupdate(RRRRRRtkwargs((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR s  N(RwRxRyRR (((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRs tKeyEventcB s eZdZddddZRS(sj A key event (key press, key release). Attach additional attributes as defined in :meth:`FigureCanvasBase.mpl_connect`. In addition to the :class:`Event` and :class:`LocationEvent` attributes, the following attributes are defined: *key* the key pressed: None, chr(range(255), shift, win, or control This interface may change slightly when better support for modifier keys is included. Example usage:: def on_key(event): print 'you pressed', event.key, event.xdata, event.ydata cid = fig.canvas.mpl_connect('key_press_event', on_key) icC s,ti|||||d|||_dS(NR(RR R(RRRRRR R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR sN(RwRxRyRR (((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyRstFigureCanvasBasecB s@eZdZddddddddd d d d d dgZdZdZdZdZdMdZ dZ dZ dZ dMdZ dMdZdZdMdZdMdZdMdZdMdZdMdZdMdZdMd Zd!Zd"Zd#Zd$Zh d%d&6d'd(6d)d*6d+d,6d-d.6d/d06d/d16d2d36d2d46Zd5Zd6Zd7Zd8Zd9Z d:Z!e!Z"Z#d;Z$d<Z%d=Z&d>Z'dMd?d?d@dMdAZ(dBZ)dCZ*dDZ+dEZ,dFZ-dGZ.dHZ/dIZ0dJdKZ1dLZ2RS(Ns The canvas the figure renders into. Public attributes *figure* A :class:`matplotlib.figure.Figure` instance t resize_eventt draw_eventtkey_press_eventtkey_release_eventtbutton_press_eventtbutton_release_eventt scroll_eventtmotion_notify_eventt pick_eventt idle_eventtfigure_enter_eventtfigure_leave_eventRRcC s|i|||_ti|i|_ti|_d|_ d|_ d\|_ |_ |id|i|_|id|i|_to|id|indS(NRRR(NN(t set_canvasRRstCallbackRegistryteventsRtwidgetstLockDrawt widgetlockRt_buttont_keyt_lastxt_lastyt mpl_connecttpicktbutton_pick_idtscroll_pick_idRtonHilite(RR((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyR s    cC sd}||ii|}d}|o|d}nxl|oddG|GH|io|iPnd}x,|D]$}||ijo |}PqxqxW|}q?WdS(s Mouse event processor which removes the top artist under the cursor. Connect this to the 'mouse_press_event' using:: canvas.mpl_connect('mouse_press_event',canvas.onRemove) cS sYg}|D]}||i|fq ~}|ig}|D]\}}||q?~S(N(RR(tartistsRthtLt_[2]R((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pyt sort_artistss* itRemovingN(RthitlistRtremovet draw_idlet get_children(RtevRtunderRtparenttp((sK/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/backend_bases.pytonRemoves$     c C st|dpt|_n|ii|}g}|D]!}||ijo ||q=q=~}g}|iD]}||jo ||ququ~}x|D]|}t|do|i|i|nEt|do4|i|i|d|i|i|dn|i|=qWxu|D]m}t|do|i|i|s>$  {a-(c