)Uc@sHdZddlZddlZddlmZmZddlmZmZmZm Z ddlm Z ddl m Z m Z ddlmZddlmZdd lmZdd lmZmZmZdd lmZdd lmZmZmZdd lmZ ddl!m"Z"m#Z#m$Z$ddl%m&Z&ddlm'Z'ddl(m)Z)m*Z*ddlm+Z+ddl,m-Z-m.Z.ddl/Z0ddl1m2Z2m3Z3ddl4m5Z5ddl6m7Z7m8Z8ddl9m:Z:m;Z;m<Z<m=Z=ddl>m?Z?m@Z@mAZAmBZBddlCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQmRZRmSZSmTZTmUZUmVZVdZWeWddlXmYZYeY\aZa[a\e j]ej^dddZ^dZ`dZadZbd Zce j]ejdd!Zde j]ejed"Zed#Zfd$Zge jhe d%Zdddddeie d&Zjd'ZkejljmZnd(Zod)Zpe j]ejqd*Zre j]ejsd+Ztd,Zud-Zvd.Zwe j]e jxd/Zxe j]e jyd0Zye j]e jzd1Zze j]e j{d2Z|e j]e j}d3Z}e j~d4d5e j]e jd6Zd7Zdd8Zd9Zd:Zd;Zd<Zd=Zd>Zd?Zd@d@eeeiddAZddBlmZd@d@dCZddDZddEZdFZddGZddHZdIZdJZdKZdLZdMZdNZe jdOZe jdPZdQZdRZdSZdTZdUZdVZdWZdXZdYZdZZddlZdddd[Zejje_ddd\Zd]Ze j]ed^Ze j]ed_Zdd`ZdaZdddcdbdddedeieidf ZdgZee"jdbdddhddiZee"jddjZee"jddkZee"jdbdbd@ddlZee"jdbd@ddmZee"jdbdbd@ddnZee"jdbd@ddoZee"jdpdddqZee"jdpdddrZee"jddsZee"jdbdtd@duddedddv Zee"jdwdxdbe'je'jdbddydddz Zee"jd{Zee"jd|Zee"jd}Zee"jdwdxdbe'je'jdbddyddd~ Zee"jddddddeeeeedd Zee"jdZee"jdbdeddZee"jdbdddZee"jddddddddddddde0jdeddZee"jddededddddeddddZee"jdddddZee"jddddddddddd@ddddddZee"jdZee"jdZee"jdZee"jdddddedddZee"jdZee"jddeieddZee"jdwdxdbe'je'jdbddyddd Zee"jdZee"jdZee"jdddddddddeiddd Zee"jdZee"jdZee"jdwdxdbe'je'jdddddyddd Zee"jdddddZee"jdZee"jdZee"jdZee"jdZee"jdZee"jdddddZee"jeie'jeidddZee"jdZe j]e"jdZe j]e"jdddZe j]e"jdZe j]e"jdZe j]e"j{dedZ{e j]e"jdZe j]e"jdZe j]e"jdddZe j]e"jddZe j]e"jdZe j]e"jeidddZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdS(sw Provides a MATLAB-like plotting framework. :mod:`~matplotlib.pylab` combines pyplot with numpy into a single namespace. This is convenient for interactive work, but for programming it is recommended that the namespaces be kept separate, e.g.:: import numpy as np import matplotlib.pyplot as plt x = np.arange(0, 5, 0.1); y = np.sin(x) plt.plot(x, y) iN(t_pylab_helperst interactive(tdedentt silent_listtis_string_liket is_numlike(t docstring(tFiguret figaspect(tFigureCanvasBase(timread(timsave(trcParamstrcParamsDefaultt get_backend(tinteractive_bk(tgetptgettArtist(tsetp(tAxestSubplott_string_to_bool(t PolarAxes(tmlab(tget_scale_docstget_scale_names(tcm(tget_cmapt register_cmap(t Normalizet normalize(tLine2D(tTextt Annotation(tPolygont RectangletCircletArrow(t SubplotTooltButtontSlidertWidget(t TickHelpert FormattertFixedFormattert NullFormattert FuncFormattertFormatStrFormattertScalarFormattert LogFormattertLogFormatterExponenttLogFormatterMathtexttLocatort IndexLocatort FixedLocatort NullLocatort LinearLocatort LogLocatort AutoLocatortMultipleLocatort MaxNLocatorc Cstd}td s!|tkr%dStdjd}dtjkr|dkrddl}|jjrdd|tdtis_agg_backendRARDtPyQt4RY((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt_backend_selection9s0        (t pylab_setupcCs%|dkrt}n|j|S(N(tNonetgcftfindobj(totmatch((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRbas  cCsPtdtj|dtttjddlm}|\aa a dS(s  Switch the default backend to newbackend. This feature is **experimental**, and is only expected to work switching to an image backend. Eg, if you have a bunch of PostScript scripts that you want to run from an interactive ipython session, you may want to switch to the PS backend before running them to avoid having a bunch of GUI windows popup. If you try to interactively switch from one GUI backend to another, you will explode. Calling this command will close all open windows. talltwarni(R_N( tcloset matplotlibtusetFalsetreloadtbackendstmatplotlib.backendsR_tnew_figure_managertdraw_if_interactivetshow(t newbackendR_((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytswitch_backendgs  cCs tjS(s' Return the interactive status (Rhtis_interactive(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt isinteractive{scCstjtdS(sTurn interactive mode off.N(RhRRj(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytioffscCstjtdS(sTurn interactive mode on.N(RhRtTrue(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytionscOstj||dS(N(Rhtrc(targstkwargs((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRxscCstjtdS(N(Rht rcdefaultsRo(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR{s cCs tjS(su Get the current :class:`~matplotlib.cm.ScalarMappable` instance (image or patch collection), or *None* if no images or patch collections have been defined. The commands :func:`~matplotlib.pyplot.imshow` and :func:`~matplotlib.pyplot.figimage` create :class:`~matplotlib.image.Image` instances, and the commands :func:`~matplotlib.pyplot.pcolor` and :func:`~matplotlib.pyplot.scatter` create :class:`~matplotlib.collections.Collection` instances. The current image is an attribute of the current axes, or the nearest earlier axes in the current figure that contains an image. (Rat_gci(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytgciscCstj|dS(s Set the current image (target of colormap commands like :func:`~matplotlib.pyplot.jet`, :func:`~matplotlib.pyplot.hot` or :func:`~matplotlib.pyplot.clim`). The current image is an attribute of the current axes. N(tgcat_sci(tim((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytsciscOst||}t|S(N(t_setpRo(RyRztret((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRsc  s|dkrtd}n|dkr2td}n|dkrKtd}n|dkrdtd}n|dkrgtjjD]}|j^q} | rt| d}qd}n t|}tjj|dkrt j dkrd}nt |d|d |d |d |d |d ||fd} j j d| } | _tjj|j j_ntj jS(s call signature:: figure(num=None, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k') Create a new figure and return a :class:`matplotlib.figure.Figure` instance. If *num* = *None*, the figure number will be incremented and a new figure will be created. The returned figure objects have a *number* attribute holding this number. If *num* is an integer, and ``figure(num)`` already exists, make it active and return a reference to it. If ``figure(num)`` does not exist it will be created. Numbering starts at 1, MATLAB style:: figure(1) If you are creating many figures, make sure you explicitly call "close" on the figures you are not using, because this will enable pylab to properly clean up the memory. Optional keyword arguments: ========= ======================================================= Keyword Description ========= ======================================================= figsize width x height in inches; defaults to rc figure.figsize dpi resolution; defaults to rc figure.dpi facecolor the background color; defaults to rc figure.facecolor edgecolor the border color; defaults to rc figure.edgecolor ========= ======================================================= rcParams defines the default values, which can be modified in the matplotlibrc file *FigureClass* is a :class:`~matplotlib.figure.Figure` or derived class that will be passed on to :meth:`new_figure_manager` in the backends which allows you to hook custom Figure classes into the pylab interface. Additional kwargs will be passed on to your figure init function. sfigure.figsizes figure.dpisfigure.facecolorsfigure.edgecoloritpsiHtfigsizetdpit facecolort edgecolortframeont FigureClasscstjjdS(N(RtGcft set_active(tevent(t figManager(sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt make_activestbutton_press_eventN(R`R RRtget_all_fig_managerstnumtmaxtinttget_fig_managerRtlowerRntcanvast mpl_connectt_cidgcfRtfiguretnumberRo( RRRRRRRRztftallnumsRtcid((RsD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs@3     %      cCs0tjj}|dk r%|jjStSdS(s)Return a reference to the current figure.N(RRt get_activeR`RR(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRas  cCs tjjj}|j|S(s)Return a list of existing figure numbers.(RRtfigstkeystsort(tfignums((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt get_fignums(s cCs8tjj}|dkr4ttjj}n|S(N(RRRR`Ra(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytget_current_fig_manager.s  cCstjj||S(N(RRR(tstfunc((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytconnect5scCstjj|S(N(RRtmpl_disconnect(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt disconnect9scGst|dkrGtjj}|dkr1dStjj|jnt|dkr|d}|dkrtjjqt|t rtjj|qt|t rtjj |qt dt |n t ddS(s Close a figure window ``close()`` by itself closes the current figure ``close(num)`` closes figure number *num* ``close(h)`` where *h* is a :class:`Figure` instance, closes that figure ``close('all')`` closes all the figure windows iNiRes&Unrecognized argument type %s to closesclose takes 0 or 1 arguments(tlenRRRR`tdestroyRt destroy_allt isinstanceRRt destroy_figt TypeErrorttype(RyRtarg((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRg=s    cCstjtdS(s" Clear the current figure N(RatclfRo(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR]s cCstjjdS(sredraw the current figureN(RRtdraw(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRdscOst}|j||S(N(Ratsavefig(RyRztfig((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRhs cOstj||S(s Blocking call to interact with the figure. This will wait for *n* clicks from the user and return a list of the coordinates of each click. If *timeout* is negative, does not timeout. (Ratginput(RyRz((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRms cOstj||S(s Blocking call to interact with the figure. This will wait for *n* key or mouse clicks from the user and return a list containing True's for keyboard clicks and False's for mouse clicks. If *timeout* is negative, does not timeout. (Ratwaitforbuttonpress(RyRz((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRys cOs tj||}t|S(N(RattextRo(RyRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytfigtextscOs tj||}t|S(N(RatsuptitleRo(RyRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRssAAddition kwargs: hold = [True|False] overrides default hold states cOs tj||}t|S(N(RatfigimageRo(RyRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRscKs&tj||||}t|S(s& Place a legend in the figure. *labels* a sequence of strings *handles* a sequence of :class:`~matplotlib.lines.Line2D` or :class:`~matplotlib.patches.Patch` instances *loc* can be a string or an integer specifying the legend location A :class:`matplotlib.legend.Legend` instance is returned. Example:: figlegend( (line1, line2, line3), ('label1', 'label2', 'label3'), 'upper right' ) .. seealso:: :func:`~matplotlib.pyplot.legend` (RatlegendRo(thandlestlabelstlocRztl((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt figlegendscCsOt}|j}|j||j||j}tdd|dS(s Set the hold state. If *b* is None (default), toggle the hold state, else set the hold state to boolean value *b*:: hold() # toggle hold hold(True) # hold is on hold(False) # hold is off When *hold* is *True*, subsequent plot commands will be added to the current axes. When *hold* is *False*, the current axes and figure will be cleared on the next plot command. taxestholdN(RaR~RtisholdRx(tbRtax((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs      cCs tjS(s4 Return the hold status of the current axes (R~R(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRscOs.t}tt|||t|dS(sn over calls:: func(*args, **kwargs) with ``hold(True)`` and then restores the hold state. N(RRRv(RRyRzth((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytovers   cOst|}t|dkr+td|S|dkrFtdn|d}t|trttj|}n|}tj||}t|S(s Add an axes at position rect specified by: - ``axes()`` by itself creates a default full ``subplot(111)`` window axis. - ``axes(rect, axisbg='w')`` where *rect* = [left, bottom, width, height] in normalized (0, 1) units. *axisbg* is the background color for the axis, default white. - ``axes(h)`` where *h* is an axes instance makes *h* the current axis. An :class:`~matplotlib.axes.Axes` instance is returned. ======= ============ ================================================ kwarg Accepts Desctiption ======= ============ ================================================ axisbg color the axes background color frameon [True|False] display the frame? sharex otherax current axes shares xaxis attribute with otherax sharey otherax current axes shares yaxis attribute with otherax polar [True|False] use a polar axes? ======= ============ ================================================ Examples: * :file:`examples/pylab_examples/axes_demo.py` places custom axes. * :file:`examples/pylab_examples/shared_axis_demo.py` uses *sharex* and *sharey*. iiois(Only one non keyword arg to axes allowed( RtsubplotRRRRatscatadd_axesRo(RyRztnargsRtatrect((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs    cGs?t|st}n |d}tj|}t|S(s ``delaxes(ax)``: remove *ax* from the current figure. If *ax* doesn't exist, an error will be raised. ``delaxes()``: delete the current axes i(RR~RatdelaxesRo(RyRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR"s    cCsltjj}xJ|D]B}||jjjkrtjj||jjj|dSqWtddS(sj Set the current Axes instance to *ax*. The current Figure is updated to the parent of *ax*. Ns1Axes instance argument was not found in a figure.( RRRRRRRRt ValueError(Rtmanagerstm((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR1s cKstj|}|S(sB Return the current axis instance. This can be used to control axis properties either using set or the :class:`~matplotlib.axes.Axes` methods, for example, setting the xaxis range:: plot(t,s) set(gca(), 'xlim', [0,10]) or:: plot(t,s) a = gca() a.set_xlim([0,10]) (RaR~(RzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR~?scOst}|j||}|j}g}xE|jD]:}||krLq4n|j|jr4|j|q4q4Wx|D]}t|qyWt|S(s Create a subplot command, creating axes with:: subplot(numRows, numCols, plotNum) where *plotNum* = 1 is the first plot number and increasing *plotNums* fill rows first. max(*plotNum*) == *numRows* * *numCols* You can leave out the commas if *numRows* <= *numCols* <= *plotNum* < 10, as in:: subplot(211) # 2 rows, 1 column, first (upper) plot ``subplot(111)`` is the default axis. New subplots that overlap old will delete the old axes. If you do not want this behavior, use :meth:`matplotlib.figure.Figure.add_subplot` or the :func:`~matplotlib.pyplot.axes` command. Eg.:: from pylab import * plot([1,2,3]) # implicitly creates subplot(111) subplot(211) # overlaps, subplot(111) is killed plot(rand(12), rand(12)) subplot(212, axisbg='y') # creates 2nd subplot with yellow background Keyword arguments: *axisbg*: The background color of the subplot, which can be any valid color specifier. See :mod:`matplotlib.colors` for more information. *polar*: A boolean flag indicating whether the subplot plot should be a polar projection. Defaults to False. *projection*: A string giving the name of a custom projection to be used for the subplot. This projection must have been previously registered. See :func:`matplotlib.projections.register_projection` .. seealso:: :func:`~matplotlib.pyplot.axes` For additional information on :func:`axes` and :func:`subplot` keyword arguments. :file:`examples/pylab_examples/polar_scatter.py` For an example **Example:** .. plot:: mpl_examples/pylab_examples/subplot_demo.py (Rat add_subplottbboxRtfully_overlapstappendRRo(RyRzRRRtbyebyetotherR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRVs;    ic Ks|dkri}nt|}||}tj|dt} |j||d|} |rk| |d1 and M>1 are returned as a 2d array. If False, no squeezing at all is done: the returned axis object is always a 2-d array contaning Axis instances, even if it ends up being 1x1. subplot_kw : dict Dict with keywords passed to the add_subplot() call used to create each subplots. fig_kw : dict Dict with keywords passed to the figure() call. Note that all keywords not recognized above will be automatically included here. Returns: fig, ax : tuple - fig is the Matplotlib Figure object - ax can be either a single axis object or an array of axis objects if more than one supblot was created. The dimensions of the resulting array can be controlled with the squeeze keyword, see above. **Examples:** x = np.linspace(0, 2*np.pi, 400) y = np.sin(x**2) # Just a figure and one subplot f, ax = plt.subplots() ax.plot(x, y) ax.set_title('Simple plot') # Two subplots, unpack the output array immediately f, (ax1, ax2) = plt.subplots(1, 2, sharey=True) ax1.plot(x, y) ax1.set_title('Sharing Y axis') ax2.scatter(x, y) # Four polar axes plt.subplots(2, 2, subplot_kw=dict(polar=True)) tdtypeitsharextshareyiN( R`RtnptemptytobjectRtrangetreshapetsqueeze( tnrowstncolsRRRt subplot_kwtfig_kwRtnplotstaxarrtax0ti((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytsubplotss$E       $ (tGridSpeccKst}|\}}t||j|d|d|}|j||} | j} g} xE|jD]:} | | kr|qdn| j| jrd| j| qdqdWx| D]} t| qWt | S(s It creates a subplot in a grid of *shape*, at location of *loc*, spanning *rowspan*, *colspan* cells in each direction. The index for loc is 0-based. :: subplot2grid(shape, loc, rowspan=1, colspan=1) is identical to :: gridspec=GridSpec(shape[0], shape[2]) subplotspec=gridspec.new_subplotspec(loc, rowspan, colspan) subplot(subplotspec) trowspantcolspan( RaRtnew_subplotspecRRRRRRRo(tshapeRRRRzRts1ts2t subplotspecRRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt subplot2grid s"      cCs/|dkrt}n|j}t|S(s! Make a second axes overlay *ax* (or the current axes if *ax* is *None*) sharing the xaxis. The ticks for *ax2* will be placed on the right, and the *ax2* instance is returned. .. seealso:: :file:`examples/api_examples/two_scales.py` For an example N(R`R~ttwinxRo(Rtax1((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR-s   cCs/|dkrt}n|j}t|S(s Make a second axes overlay *ax* (or the current axes if *ax* is *None*) sharing the yaxis. The ticks for *ax2* will be placed on the top, and the *ax2* instance is returned. N(R`R~ttwinyRo(RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR?s    cOs$t}|j||tdS(s call signature:: subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None) Tune the subplot layout via the :class:`matplotlib.figure.SubplotParams` mechanism. The parameter meanings (and suggested defaults) are:: left = 0.125 # the left side of the subplots of the figure right = 0.9 # the right side of the subplots of the figure bottom = 0.1 # the bottom of the subplots of the figure top = 0.9 # the top of the subplots of the figure wspace = 0.2 # the amount of width reserved for blank space between subplots hspace = 0.2 # the amount of height reserved for white space between subplots The actual defaults are controlled by the rc file N(Ratsubplots_adjustRo(RyRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRMs cCstd}dtd<|d kr8t}|jj}n9x6tjjD]}|jj|krEPqEqEWtdtdd }|j ddt ||}|td>> axis() returns the current axes limits ``[xmin, xmax, ymin, ymax]``. >>> axis(v) sets the min and max of the x and y axes, with ``v = [xmin, xmax, ymin, ymax]``. >>> axis('off') turns off the axis lines and labels. >>> axis('equal') changes limits of *x* or *y* axis so that equal increments of *x* and *y* have the same length; a circle is circular. >>> axis('scaled') achieves the same result by changing the dimensions of the plot box instead of the axis data limits. >>> axis('tight') changes *x* and *y* axis limits such that all data is shown. If all data is already shown, it will move it to the center of the figure without modifying (*xmax* - *xmin*) or (*ymax* - *ymin*). Note this is slightly different than in MATLAB. >>> axis('image') is 'scaled' with the axis limits equal to the data limits. >>> axis('auto') and >>> axis('normal') are deprecated. They restore default behavior; axis limits are automatically scaled to make the data fit comfortably within the plot box. if ``len(*v)==0``, you can pass in *xmin*, *xmax*, *ymin*, *ymax* as kwargs selectively to alter just those limits without changing the others. The xmin, xmax, ymin, ymax tuple is returned .. seealso:: :func:`xlim`, :func:`ylim` For setting the x- and y-limits individually. (R~taxisRo(tvRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs: cOs#tj|||}t|S(sw Set the *x* axis label of the current axis to *s* Default override is:: override = { 'fontsize' : 'small', 'verticalalignment' : 'top', 'horizontalalignment' : 'center' } .. seealso:: :func:`~matplotlib.pyplot.text` For information on how override and the optional args work (R~t set_xlabelRo(RRyRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytxlabelscOs#tj|||}t|S(s Set the *y* axis label of the current axis to *s*. Defaults override is:: override = { 'fontsize' : 'small', 'verticalalignment' : 'center', 'horizontalalignment' : 'right', 'rotation'='vertical' : } .. seealso:: :func:`~matplotlib.pyplot.text` For information on how override and the optional args work. (R~t set_ylabelRo(RRyRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytylabelscOs&t}|j||}t|S(s Set/Get the xlimits of the current axes:: xmin, xmax = xlim() # return the current xlim xlim( (xmin, xmax) ) # set the xlim to xmin, xmax xlim( xmin, xmax ) # set the xlim to xmin, xmax If you do not specify args, you can pass the xmin and xmax as kwargs, eg.:: xlim(xmax=3) # adjust the max leaving min unchanged xlim(xmin=1) # adjust the min leaving max unchanged The new axis limits are returned as a length 2 tuple. (R~tset_xlimRo(RyRzRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytxlims cOs&t}|j||}t|S(s Set/Get the ylimits of the current axes:: ymin, ymax = ylim() # return the current ylim ylim( (ymin, ymax) ) # set the ylim to ymin, ymax ylim( ymin, ymax ) # set the ylim to ymin, ymax If you do not specify args, you can pass the *ymin* and *ymax* as kwargs, eg.:: ylim(ymax=3) # adjust the max leaving min unchanged ylim(ymin=1) # adjust the min leaving max unchanged The new axis limits are returned as a length 2 tuple. (R~tset_ylimRo(RyRzRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytylim*s cOs&t}|j||}t|S(s call signature:: xscale(scale, **kwargs) Set the scaling for the x-axis: %(scale)s Different keywords may be accepted, depending on the scale: %(scale_docs)s (R~t set_xscaleRo(RyRzRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytxscale@s cOs&t}|j||}t|S(s call signature:: yscale(scale, **kwargs) Set the scaling for the y-axis: %(scale)s Different keywords may be accepted, depending on the scale: %(scale_docs)s (R~t set_yscaleRo(RyRzRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytyscaleRs cOst}t|dkr6|j}|j}n~t|dkrj|j|d}|j}nJt|dkr|j|d}|j|d|}n tdt|rx|D]}|j|qWnt|t d|fS(sK Set/Get the xlimits of the current ticklocs and labels:: # return locs, labels where locs is an array of tick locations and # labels is an array of tick labels. locs, labels = xticks() # set the locations of the xticks xticks( arange(6) ) # set the locations and labels of the xticks xticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') ) The keyword args, if any, are :class:`~matplotlib.text.Text` properties. For example, to rotate long labels:: xticks( arange(12), calendar.month_name[1:13], rotation=17 ) iiis%Illegal number of arguments to xtickssText xticklabel( R~Rt get_xtickstget_xticklabelst set_xtickstset_xticklabelsRtupdateRoR(RyRzRtlocsRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytxticksds      cOst}t|dkr6|j}|j}n~t|dkrj|j|d}|j}nJt|dkr|j|d}|j|d|}n tdt|rx|D]}|j|qWnt|t d|fS(sK Set/Get the ylimits of the current ticklocs and labels:: # return locs, labels where locs is an array of tick locations and # labels is an array of tick labels. locs, labels = yticks() # set the locations of the yticks yticks( arange(6) ) # set the locations and labels of the yticks yticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') ) The keyword args, if any, are :class:`~matplotlib.text.Text` properties. For example, to rotate long labels:: yticks( arange(12), calendar.month_name[1:13], rotation=45 ) iiis%Illegal number of arguments to ytickssText yticklabel( R~Rt get_ytickstget_yticklabelst set_ytickstset_yticklabelsRRRoR(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytytickss"     cCstjtdS(s Display minor ticks on the current plot. Displaying minor ticks reduces performance; turn them off using minorticks_off() if drawing speed is a problem. N(R~t minorticks_onRo(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR"s cCstjtdS(s3 Remove minor ticks from the current plot. N(R~tminorticks_offRo(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR#s cOst}t|ts'tdnt|dkrZ|jj}|jj}n|j||\}}t t d|t d|fS(s Set/Get the radial locations of the gridlines and ticklabels on a polar plot. call signatures:: lines, labels = rgrids() lines, labels = rgrids(radii, labels=None, angle=22.5, **kwargs) When called with no arguments, :func:`rgrid` simply returns the tuple (*lines*, *labels*), where *lines* is an array of radial gridlines (:class:`~matplotlib.lines.Line2D` instances) and *labels* is an array of tick labels (:class:`~matplotlib.text.Text` instances). When called with arguments, the labels will appear at the specified radial distances and angles. *labels*, if not *None*, is a len(*radii*) list of strings of the labels to use at each angle. If *labels* is None, the rformatter will be used Examples:: # set the locations of the radial gridlines and labels lines, labels = rgrids( (0.25, 0.5, 1.0) ) # set the locations and labels of the radial gridlines and labels lines, labels = rgrids( (0.25, 0.5, 1.0), ('Tom', 'Dick', 'Harry' ) s"rgrids only defined for polar axesisLine2D rgridlinesText rgridlabel( R~RRRRtyaxist get_gridlinestget_ticklabelst set_rgridsRoR(RyRzRtlinesR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytrgridss  cOst}t|ts'tdnt|dkrZ|jj}|jj}n|j||\}}t t d|t d|fS(s Set/Get the theta locations of the gridlines and ticklabels. If no arguments are passed, return a tuple (*lines*, *labels*) where *lines* is an array of radial gridlines (:class:`~matplotlib.lines.Line2D` instances) and *labels* is an array of tick labels (:class:`~matplotlib.text.Text` instances):: lines, labels = thetagrids() Otherwise the syntax is:: lines, labels = thetagrids(angles, labels=None, fmt='%d', frac = 1.1) set the angles at which to place the theta grids (these gridlines are equal along the theta dimension). *angles* is in degrees. *labels*, if not *None*, is a len(angles) list of strings of the labels to use at each angle. If *labels* is *None*, the labels will be ``fmt%angle``. *frac* is the fraction of the polar axes radius at which to place the label (1 is the edge). Eg. 1.05 is outside the axes and 0.95 is inside the axes. Return value is a list of tuples (*lines*, *labels*): - *lines* are :class:`~matplotlib.lines.Line2D` instances - *labels* are :class:`~matplotlib.text.Text` instances. Note that on input, the *labels* argument is a list of strings, and on output it is a list of :class:`~matplotlib.text.Text` instances. Examples:: # set the locations of the radial gridlines and labels lines, labels = thetagrids( range(45,360,90) ) # set the locations and labels of the radial gridlines and labels lines, labels = thetagrids( range(45,360,90), ('NE', 'NW', 'SW','SE') ) s"rgrids only defined for polar axesisLine2D thetagridlinesText thetagridlabel( R~RRRRtxaxist get_ticklinesR&tset_thetagridsRoR(RyRzRR(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt thetagridss/  cCsdS(s* Plotting commands =============== ========================================================= Command Description =============== ========================================================= axes Create a new axes axis Set or return the current axis limits bar make a bar chart boxplot make a box and whiskers chart cla clear current axes clabel label a contour plot clf clear a figure window close close a figure window colorbar add a colorbar to the current figure cohere make a plot of coherence contour make a contour plot contourf make a filled contour plot csd make a plot of cross spectral density draw force a redraw of the current figure errorbar make an errorbar graph figlegend add a legend to the figure figimage add an image to the figure, w/o resampling figtext add text in figure coords figure create or change active figure fill make filled polygons fill_between make filled polygons between two sets of y-values fill_betweenx make filled polygons between two sets of x-values gca return the current axes gcf return the current figure gci get the current image, or None getp get a graphics property hist make a histogram hold set the hold state on current axes legend add a legend to the axes loglog a log log plot imread load image file into array imsave save array as an image file imshow plot image data matshow display a matrix in a new figure preserving aspect pcolor make a pseudocolor plot plot make a line plot plotfile plot data from a flat file psd make a plot of power spectral density quiver make a direction field (arrows) plot rc control the default params savefig save the current figure scatter make a scatter plot setp set a graphics property semilogx log x axis semilogy log y axis show show the figures specgram a spectrogram plot stem make a stem plot subplot make a subplot (numrows, numcols, axesnum) table add a table to the axes text add some text at location x,y to the current axes title add a title to the current axes xlabel add an xlabel to the current axes ylabel add a ylabel to the current axes =============== ========================================================= The following commands will set the default colormap accordingly: * autumn * bone * cool * copper * flag * gray * hot * hsv * jet * pink * prism * spring * summer * winter * spectral N((((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytplotting1sRc5Csd6S(7NRRtbartboxplottclaRRgtcolorbartcoheretcsdRterrorbarRRRRtfillR~RaR}RtgraytbarhtjetthistRR R timshowRtloglogtquiverRxtpcolort pcolormeshtplottpsdRtscattertsettsemilogxtsemilogyRptspecgramtstemRttableRRR R tpietpolar(5saxessaxissbarsboxplotsclasclfsclosescolorbarscoherescsdsdrawserrorbars figlegendsfigtextsfigimagesfiguresfillsgcasgcfsgcisgetsgraysbarhsjetshistsholdsimreadsimsavesimshowslegendsloglogsquiversrcspcolors pcolormeshsplotspsdssavefigsscatterssetssemilogxssemilogysshowsspecgramsstemssubplotstablestextstitlesxlabelsylabelspiespolar((((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytget_plot_commandsscCsdS(sl This is a do-nothing function to provide you with help on how matplotlib handles colors. Commands which take color arguments can use several formats to specify the colors. For the basic builtin colors, you can use a single letter ===== ======= Alias Color ===== ======= 'b' blue 'g' green 'r' red 'c' cyan 'm' magenta 'y' yellow 'k' black 'w' white ===== ======= For a greater range of colors, you have two options. You can specify the color using an html hex string, as in:: color = '#eeefff' or you can pass an R,G,B tuple, where each of R,G,B are in the range [0,1]. You can also use any legal html name for a color, for example:: color = 'red', color = 'burlywood' color = 'chartreuse' The example below creates a subplot with a dark slate gray background subplot(111, axisbg=(0.1843, 0.3098, 0.3098)) Here is an example that creates a pale turqoise title:: title('Is this the best color?', color='#afeeee') N((((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytcolorss.cCsdS(sL matplotlib provides the following colormaps. * autumn * bone * cool * copper * flag * gray * hot * hsv * jet * pink * prism * spring * summer * winter * spectral You can set the colormap for an image, pcolor, scatter, etc, either as a keyword argument:: imshow(X, cmap=cm.hot) or post-hoc using the corresponding pylab interface function:: imshow(X) hot() jet() In interactive mode, this will update the colormap allowing you to see which one works best for your data. N((((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt colormapss"cKs\|dkrt}n|dkr0t}ntj|d|d||}t|S(NtcaxR(R`R}R~RaR2Ro(tmappableRNRtkwR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR2s    !cCs?t}|dkr$tdn|j||tdS(so Set the color limits of the current image To apply clim to all axes images do:: clim(0, 0.5) If either *vmin* or *vmax* is None, the image min/max respectively will be used for color scaling. If you want to set the clim of multiple images, use, for example:: for im in gca().get_images(): im.set_clim(0, 0.05) s.You must first define an image, eg with imshowN(R}R`Rtset_climRo(tvmintvmaxR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytclims   cCsRtj|}tdd|jt}|dk rG|j|ntdS(s set the default colormap to *cmap* and apply to current image if any. See help(colormaps) for more information. *cmap* must be a :class:`colors.Colormap` instance, or the name of a registered colormap. See :func:`register_cmap` and :func:`get_cmap`. timagetcmapN(RRRxtnameR}R`tset_cmapRo(RVR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRX s   cOs t||S(N(t_imread(RyRz((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR !scOs t||S(N(t_imsave(RyRz((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR %scKs~|tks|dkr$t}n3t|dt|}|jddddg}|j||}t|t|S(s Display an array as a matrix in a new figure window. The origin is set at the upper left hand corner and rows (first dimension of the array) are displayed horizontally. The aspect ratio of the figure window is that of the array, unless this would make an excessively short or narrow figure. Tick labels for the xaxis are placed on top. With the exception of fignum, keyword arguments are passed to :func:`~matplotlib.pyplot.imshow`. *fignum*: [ None | integer | False ] By default, :func:`matshow` creates a new figure window with automatic numbering. If *fignum* is given as an integer, the created figure will use this figure number. Because of how :func:`matshow` tries to set the figure aspect ratio to be the one of the array, if you provide the number of an already existing figure, strange things may happen. If *fignum* is *False* or 0, a new figure window will **NOT** be created. iRg333333?g ףp= ?g?(RjR~RRRtmatshowRRo(tAtfignumRPRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR[)s  cOsD|jdd}tdtd|}|j||}t|S(sh call signature:: polar(theta, r, **kwargs) Make a polar plot. Multiple *theta*, *r* arguments are supported, with format strings, as in :func:`~matplotlib.pyplot.plot`. An optional kwarg *resolution* sets the number of vertices to interpolate between each pair of points. The default is 1, which disables interpolation. t resolutionRJN(tpopR`R~RvR@Ro(RyRzR^RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRJOs it#it,c  s| rt} n t} t|dkr<tdn|dkrTt}ntj|d|d|d|d|d|fd} | |d \} }g}t|dkr| jddd}|j |d d }t ||}||| |j | nBt|}x3t d|D]"}|r|dkri| j|dd|}}q| j|dd|d |}n$|dkr| jddd}n|j t| ||\}}|j||j ||d }t ||}|||| |r*|j |n|jrF|j| q1|jd q1W|ss|j|d dn| dkr| jntdS(s Plot the data in *fname* *cols* is a sequence of column identifiers to plot. An identifier is either an int or a string. If it is an int, it indicates the column number. If it is a string, it indicates the column header. matplotlib will make column headers lower case, replace spaces with underscores, and remove all illegal characters; so ``'Adj Close*'`` will have name ``'adj_close'``. - If len(*cols*) == 1, only that column will be plotted on the *y* axis. - If len(*cols*) > 1, the first element will be an identifier for data for the *x* axis and the remaining elements will be the column indexes for multiple subplots if *subplots* is *True* (the default), or for lines in a single subplot if *subplots* is *False*. *plotfuncs*, if not *None*, is a dictionary mapping identifier to an :class:`~matplotlib.axes.Axes` plotting function as a string. Default is 'plot', other choices are 'semilogy', 'fill', 'bar', etc. You must use the same type of identifier in the *cols* vector as you use in the *plotfuncs* dictionary, eg., integer column numbers in both or column names in both. If *subplots* is *False*, then including any function such as 'semilogy' that changes the axis scaling will set the scaling for all columns. *comments*, *skiprows*, *checkrows*, *delimiter*, and *names* are all passed on to :func:`matplotlib.pylab.csv2rec` to load the data into a record array. If *newfig* is *True*, the plot always will be made in a new figure; if *False*, it will be made in the current figure if one exists, else in a new figure. kwargs are passed on to plotting functions. Example usage:: # plot the 2nd and 4th column against the 1st in two subplots plotfile(fname, (0,1,3)) # plot using column names; specify an alternate plot type for volume plotfile(fname, ('date', 'volume', 'adj_close'), plotfuncs={'volume': 'semilogy'}) Note: plotfile is intended as a convenience for quickly plotting data from flat files; it is not intended as an alternative interface to general plotting with pyplot or matplotlib. is%must have at least one column of datatcommentstskiprowst checkrowst delimitertnamescsZt|r||fSt|rJjjt|}||fStddS(s.return the name and column data for identifiers&identifier must be a string or integerN(RRRRfRR(t identifierRW(tr(sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyt getname_vals   iR@RtRtbesttdateN(RRaRRR`tdictRtcsv2recRRtgetattrR RtgridRvRt is_last_rowR Rt autofmt_xdateRo(tfnametcolst plotfuncsRbRcRdReRfRtnewfigRzRRitxnametxt ynamelistRtfuncnameRtNRRtynamety((RhsD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytplotfilebsT8         "      cs(d}tj|dfdS(sZAutogenerated wrappers will get their docstring from a base function with an addendum.sE Additional kwargs: hold = [True|False] overrides default hold states cstj|S(N(Rt copy_dedent(R(taddendumtbase(sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyts(RtAppender(Rtmsg((RRsD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pytautogen_docstringstequalc Kst}|j}|dk r1|j|nz)|j||||||} tWd|j|Xt| tjrt | n| S(N( R~RR`RtspyRoRRtScalarMappableR( tZt precisiontmarkert markersizetaspectRRzRtwasholdR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs     cKsct}|j}|dk r1|j|nz|j||}tWd|j|X|S(N(R~RR`RtacorrRo(RxRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs    c Kslt}|j}|dk r1|j|nz&|j|||||}tWd|j|X|S(N(R~RR`RtarrowRo( RxR}tdxtdyRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs    cKsit}|j}|dk r1|j|nz#|j||||}tWd|j|X|S(N(R~RR`RtaxhlineRo(R}txmintxmaxRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR#s    c Kslt}|j}|dk r1|j|nz&|j|||||}tWd|j|X|S(N(R~RR`RtaxhspanRo( tymintymaxRRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR5s    cKsit}|j}|dk r1|j|nz#|j||||}tWd|j|X|S(N(R~RR`RtaxvlineRo(RxRRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRGs    c Kslt}|j}|dk r1|j|nz&|j|||||}tWd|j|X|S(N(R~RR`RtaxvspanRo( RRRRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRYs    g?c Kslt}|j}|dk r1|j|nz&|j|||||}tWd|j|X|S(N(R~RR`RR/Ro( tlefttheighttwidthtbottomRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR/ks    c Kslt}|j}|dk r1|j|nz&|j|||||}tWd|j|X|S(N(R~RR`RR8Ro( RRRRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR8}s    cKsft}|j}|dk r1|j|nz |j|||}tWd|j|X|S(N(R~RR`Rt broken_barhRo(txrangestyrangeRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs    sb+g?c Csxt} | j} | dk r1| j| nz2| j||||||||| } tWd| j| X| S(N(R~RR`RR0Ro( Rxtnotchtsymtverttwhist positionstwidthst patch_artistt bootstrapRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR0s   ' iitdefaultc  Kst} | j}| dk r1| j| nz;| j|||||||||| | | }tWd| j|X|S(N(R~RR`RR3Ro(RxR}tNFFTtFstFctdetrendtwindowtnoverlaptpad_totsidest scale_by_freqRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR3s   0 cOsxt}|j}|jdd}|dk rC|j|nz |j|||}tWd|j|X|S(NR(R~RR_R`RtclabelRo(tCSRyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs    cOst}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|jdk rt|n|S(NR( R~RR_R`RtcontourRot_AR(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs     cOst}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|jdk rt|n|S(NR( R~RR_R`RtcontourfRoRR(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs     c  Kst} | j}| dk r1| j| nz;| j|||||||||| | | }tWd| j|X|S(N(R~RR`RR4Ro(RxR}RRRRRRRRRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR4s   0 t-icKst}|j}| dk r1|j| nzA|j|||||||||| | | | | }tWd|j|X|S(N(R~RR`RR5Ro(RxR}tyerrtxerrtfmttecolort elinewidthtcapsizet barsabovetlolimstuplimstxlolimstxuplimsRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR5 s   6 cOsut}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|S(NR(R~RR_R`RR6Ro(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR6s    c Ksot}|j}|dk r1|j|nz)|j||||||} tWd|j|X| S(N(R~RR`Rt fill_betweenRo( Rxty1ty2twheret interpolateRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR1s    c Kslt}|j}|dk r1|j|nz&|j|||||}tWd|j|X|S(N(R~RR`Rt fill_betweenxRo( R}tx1tx2RRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRCs    idtlineartnonecKst}|j}|dk r1|j|nzP|j|||||||||| | | | | |||||}tWd|j|Xt||S(N(R~RR`RthexbinRoR(RxR}tCtgridsizetbinsRRtextentRVtnormRRRStalphat linewidthst edgecolorstreduce_C_functiontmincntt marginalsRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRUs   E  i R/tmidtverticalcKst}|j}|dk r1|j|nzD|j|||||||||| | | | | |}tWd|j|X|S(N(R~RR`RR:Ro(RxRRtnormedtweightst cumulativeRthisttypetalignt orientationtrwidthtlogtcolortlabelRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR:gs   9 tktsolidRjc Ksrt}|j} |dk r1|j|nz,|j|||||||} tWd|j| X| S(N(R~RR`RthlinesRo( R}RRRLt linestylesRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRys   ! g@cKst}|j}|dk r1|j|nzJ|j|||||||||| | | | | |||}tWd|j|Xt||S(N(R~RR`RR;RoR(tXRVRRt interpolationRRRRStoriginRRt filternormt filterradtimlimtresampleturlRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR;s   ?  cOsut}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|S(NR(R~RR_R`RR<Ro(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR<s    cOst}|j}|jdd}|dk rC|j|nz|j||}tWd|j|Xt||S(NR(R~RR_R`RR>RoR(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR>s     cOst}|j}|jdd}|dk rC|j|nz|j||}tWd|j|Xt||S(NR(R~RR_R`RR?RoR(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR?s     g333333?g?c Csut} | j} |dk r1| j|nz/| j||||||||} tWd| j| X| S(N(R~RR`RRIRo( RxtexplodeRRLtautopctt pctdistancetshadowt labeldistanceRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRIs   $ cOsut}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|S(NR(R~RR_R`RR@Ro(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR@s    tboc Ksrt}|j} |dk r1|j|nz,|j|||||||} tWd|j| X| S(N(R~RR`Rt plot_dateRo( RxR}RttztxdatetydateRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRs   ! c  Ks~t} | j} | dk r1| j| nz8| j|||||||||| | }tWd| j| X|S(N(R~RR`RRARo(RxRRRRRRRRRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRA s   - cOst}|j}|jdd}|dk rC|j|nz|j||}tWd|j|Xt||S(NR(R~RR_R`RR=RoR(RyRPRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR= s     cOsut}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|S(NR(R~RR_R`Rt quiverkeyRo(RyRPRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR- s    iRRccKst}|j}| dk r1|j| nzA|j|||||||||| | | | | }tWd|j|Xt||S(N(R~RR`RRBRoR(RxR}RtcRRVRRRRSRRtfacetedtvertsRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRB? s   6  cOsut}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|S(NR(R~RR_R`RRDRo(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRDQ s    cOsut}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|S(NR(R~RR_R`RRERo(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyREc s    ic Kst}|j}| dk r1|j| nz>|j|||||||||| | | | }tWd|j|Xt|d|S(Ni(R~RR`RRFRoR(RxRRRRRRRVtxextentRRRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRFu s   3 sb-sr-c Cslt}|j}|dk r1|j|nz&|j|||||}tWd|j|X|S(N(R~RR`RRGRo( RxR}tlinefmtt markerfmttbasefmtRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRG s    cOs{t}|j}|jdd}|dk rC|j|nz#|j||||}tWd|j|X|S(NR(R~RR_R`RtstepRo(RxR}RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s    cOst}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|jdk rt|n|S(NR( R~RR_R`Rt tricontourRoRR(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s     cOst}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|jdk rt|n|S(NR( R~RR_R`Rt tricontourfRoRR(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s     cOst}|j}|jdd}|dk rC|j|nz|j||}tWd|j|Xt||S(NR(R~RR_R`Rt tripcolorRoR(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s     cOsut}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|S(NR(R~RR_R`RttriplotRo(RyRzRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR  s    c Ksrt}|j} |dk r1|j|nz,|j|||||||} tWd|j| X| S(N(R~RR`RtvlinesRo( RxRRRLRRRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR  s   ! c Ksrt}|j} |dk r1|j|nz,|j|||||||} tWd|j| X| S(N(R~RR`RtxcorrRo( RxR}RRt usevlinestmaxlagsRRzRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR  s   ! cOsut}|j}|jdd}|dk rC|j|nz|j||}tWd|j|X|S(NR(R~RR_R`RtbarbsRo(RyRPRRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s    cCstj}t|S(N(R~R1Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR1) stmajorcKs#tj|||}t|S(N(R~RpRo(RtwhichRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRp1 scOs tj||}t|S(N(R~RRo(RyRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR9 scKstj|}t|S(N(R~RHRo(RzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRHA scKs,tj||||||}t|S(N(R~RRo(RxR}RtfontdicttwithdashRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRI s!cOs tj||}t|S(N(R~tannotateRo(RyRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRQ scKstj|}t|S(N(R~tticklabel_formatRo(RzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRY stbothcKs#tj|||}t|S(N(R~tlocator_paramsRo(RttightRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRa scKs tj||}t|S(N(R~t tick_paramsRo(RRzR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRi scOs tj||}t|S(N(R~tmarginsRo(RyRPR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRq scCs#tj|||}t|S(N(R~t autoscaleRo(tenableRRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyRy scCsCtdddt}|dk r8|jtjntdS(s| set the default colormap to autumn and apply to current image if any. See help(colormaps) for more information RURVtautumnN(RxR}R`RXRRRo(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s   cCsCtdddt}|dk r8|jtjntdS(sz set the default colormap to bone and apply to current image if any. See help(colormaps) for more information RURVtboneN(RxR}R`RXRRRo(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s   cCsCtdddt}|dk r8|jtjntdS(sz set the default colormap to cool and apply to current image if any. See help(colormaps) for more information RURVtcoolN(RxR}R`RXRRRo(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s   cCsCtdddt}|dk r8|jtjntdS(s| set the default colormap to copper and apply to current image if any. See help(colormaps) for more information RURVtcopperN(RxR}R`RXRRRo(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR s   cCsCtdddt}|dk r8|jtjntdS(sz set the default colormap to flag and apply to current image if any. See help(colormaps) for more information RURVtflagN(RxR}R`RXRR Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR  s   cCsCtdddt}|dk r8|jtjntdS(sz set the default colormap to gray and apply to current image if any. See help(colormaps) for more information RURVR7N(RxR}R`RXRR7Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR7 s   cCsCtdddt}|dk r8|jtjntdS(sy set the default colormap to hot and apply to current image if any. See help(colormaps) for more information RURVthotN(RxR}R`RXRR!Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR! s   cCsCtdddt}|dk r8|jtjntdS(sy set the default colormap to hsv and apply to current image if any. See help(colormaps) for more information RURVthsvN(RxR}R`RXRR"Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR" s   cCsCtdddt}|dk r8|jtjntdS(sy set the default colormap to jet and apply to current image if any. See help(colormaps) for more information RURVR9N(RxR}R`RXRR9Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR9 s   cCsCtdddt}|dk r8|jtjntdS(sz set the default colormap to pink and apply to current image if any. See help(colormaps) for more information RURVtpinkN(RxR}R`RXRR#Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR# s   cCsCtdddt}|dk r8|jtjntdS(s{ set the default colormap to prism and apply to current image if any. See help(colormaps) for more information RURVtprismN(RxR}R`RXRR$Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR$ s   cCsCtdddt}|dk r8|jtjntdS(s| set the default colormap to spring and apply to current image if any. See help(colormaps) for more information RURVtspringN(RxR}R`RXRR%Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR%& s   cCsCtdddt}|dk r8|jtjntdS(s| set the default colormap to summer and apply to current image if any. See help(colormaps) for more information RURVtsummerN(RxR}R`RXRR&Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR&5 s   cCsCtdddt}|dk r8|jtjntdS(s| set the default colormap to winter and apply to current image if any. See help(colormaps) for more information RURVtwinterN(RxR}R`RXRR'Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR'D s   cCsCtdddt}|dk r8|jtjntdS(s~ set the default colormap to spectral and apply to current image if any. See help(colormaps) for more information RURVtspectralN(RxR}R`RXRR(Ro(R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyR(S s   (i(t__doc__RQRhRRtmatplotlib.cbookRRRRRtmatplotlib.figureRRtmatplotlib.backend_basesR tmatplotlib.imageR RYR RZR R Rtmatplotlib.rcsetupRROtmatplotlib.artistRRRRRtmatplotlib.axesRRRtmatplotlib.projectionsRRtmatplotlib.scaleRRRt matplotlib.cmRRtnumpyRtmatplotlib.colorsRRtmatplotlib.linesR tmatplotlib.textR!R"tmatplotlib.patchesR#R$R%R&tmatplotlib.widgetsR'R(R)R*ttickerR+R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:R;R<R=R^RmR_RnRoRpRRbR`RrRtRuRwRxR{R}RtcopyRvRRaRt has_fignumt fignum_existsRRRRRRRgRRRRRRRRRRRRRRRRRR~RRjRtgridspecRRRRRRRRRR R RRtdedent_interpdRRRR!R"R#R)R-R.RKRLRMtmatplotlib.colorbarR2t colorbar_docRTRXR[RJR~RRRRRRRRR/R8RR0R3t detrend_nonetwindow_hanningRRRR4R5R6RRRtmeanR:RR;R<R>R?RIR@RRAR=RRBRDRERFRGRRRRR R R RR1RpRRHRRRRRRRRRRR R7R!R"R9R#R$R%R&R'R((((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/pyplot.pyts  " ""| !        U       $    -    I h$       ?     & )  - @ U 2 '    & {           ' 0 0 0   B 6  < $  0 0 6