Files
intellecton/venv/lib/python3.12/site-packages/matplotlib/__pycache__/pyplot.cpython-312.pyc
T

1954 lines
155 KiB
Plaintext
Raw Normal View History

Ë
†RjÕHãó.1—UdZddlmZddlmZmZddlmZddlZddl Z ddl
Z
ddl Z ddl Z ddl
Z
ddlZddlmZmZmZddlmZddlZddlZddlmZdd lmZmZdd
lmZdd lmZdd lmZdd
lmZddlmZddlmZddlm Z m!Z!m"Z"ddl#m$Z$m%Z%m&Z&ddl'm(Z(m)Z)ddlm*Z*m+Z+m,Z,ddl-m.Z.ddl/m0Z0ddl/m1Z1ddl2m3Z3m4Z4ddl5m6Z6ddl7m8Z8m9Z9m:Z:ddlm;Z;ddl<m=Z=ddl>m?Z?ddl@mAZAmBZBddlCZDerâddlEmFZFmGZGmHZHmIZIddlJZJddlKZKddlLZLddlmMZMmNZNmOZOmPZPdd lQmRZRddlSZTdd!lUmVZVddl/Zddl-ZddlZdd"lWmXZXdd#lYmZZZdd$lm[Z[dd%l>m\Z\dd&l]m^Z^m_Z_dd'l`maZambZbmcZcmdZdmeZemfZfmgZgdd(lhmiZidd)ljmkZkmlZlmmZmdd*l#mnZndd+lompZpdd,lqmrZrdd-lmsZsmtZtdd.lumvZvmwZwmxZxdd/lymzZzm{Z{m|Z|dd0l<m}Z}dd1l~mZm€Z€m�Z�m‚Z‚mƒZƒdd2l„m…Z…eRd3«Z†ePd4«Z‡ePd5«Zˆdd6l@m‰Z‰dd7lŠm‹Z‹mŒZŒdd8l�mŽZŽm�Z�dd9lum�Z�m‘Z‘m’Z’dd:lum“Z“dd;l„m”Z”m•Z•m–Z–d<d=l—m˜Z˜m™Z™mšZšm›Z›mœZœm�Z�mžZžmŸZŸm Z m¡Z¡m¢Z¢m£Z£m¤Z¤m¥Z¥m¦Z¦m§Z§m¨Z¨m©Z©mªZªe �jVe¬«Z­e?Z®eAZ¯e �d6 �d7d>„«Z°e �d8d?„«Z° �d6 �d9d@„Z°gdA¢Z±dB„Z²edCgdD¢«Z³e³�jhaµ�d:dE„Z¶�d:dF„Z·�d:dG„Z¸e�jr�jtZºe°e�jv«�d:dH„«Z»e°e.�jx« �d; �d<dJ„«Z¼da½dKe¾dL<�d=dM„Z¿�d>dN„ZÀ�d:dO„ZÁdP„ZÂdQ„ZÃ�d:dR„ZÄ�d?dS„ZÅ�d@dT„ZÆ�d@dU„ZÇ�dAdV„ZÈe°e�j’«�dBdW„«ZÉe°e�j”« �dC �dDdX„«ZÊe°e�j–«�d:dY„«ZËe°e�j˜�jš«dZ„«ZÍe°e�j˜�jœ«d[„«ZÎe°e�j˜�jž«d\„«ZÏ �dE �dFd_„ZÐ �dGdddIe$d`daœ �dHdb„ZÑdc„ZÒ�dIdd„ZÓ�dJde„ZÔ�dKdf„ZÕ�dLdg„ZÖ�dMdh„Z×e°e �j°«�dNdi„«ZÙe°e �j´«�dOdj„«ZÛ�d6�dPdk„ZÜ�d:dl„ZÝ�d:dm„ZÞe°e$�j¾«�d:dn„«Zß�dQdo„Zàe$�jÂjrOe$�jÂj�jÅdpdq«�jÅdrds«�jÅdtdu«eà_e�jÆ �d6 �dRdv„«Zä�d6�dSdw„Zå�dTdx„Zæ�d:dy„Zçe�jÆ�dUdz„«Zèe �dVd{d{d{d{d{d{d{d|œ �dWd}„«Zée �dVd{d{d{d{d{d{d~œ �dXd„«Zée �dVd{d{d{d{d{d{d{d|œ �dYd€„«Zé �dZd`d`dIddddd|œ �dYd�„Zéed{d{d{d{d{d{d{d{d‚œ �d[dƒ„«Zêed{d{d{d{d{d{d{d{d‚œ �d\d„„«Zêed{d{d{d{d{d{d{d{d‚œ �d]d…„«Zêd`d`ddd†dddd‚œ �d^d‡„Zê �d_ �d`dˆ„Zë�d6�dad‰„Zì�d6�dadŠ„Zí�d6�dbd‹„Zî�d6�dcdŒ„Zï�ddd�„Zð�dddŽ„Zñ �dCd`d�œ �ded�„Zò �dCd`d�œ �ded‘„Zó �df �dgd’„Zô �dG �dhd“„Zõe�jìd”dI¬•«�did–„«Z÷�did—„Zøe°e$�jò« �dG �djd˜„«Zù�dC�dkd™„Zú�dC�dldš„Zû�dmd›„Züe°e�jú�jü« �d6 �dndœ„«Zþe°e�jú�jþ« �dod�„«Zÿ�d6�dpdž„�Z�dqdŸ„�Zed r�e�j«�Z�e€dn�e�j «�Ze4�j
e3�j «�Z�e�e�e«d¡d¢hz
vr1e�j«re�jd£e*�j«e°e$�j« �drdd¤œ �dsd¥„«�Z e°e$�j« �d6 �dtd¦„«�Ze°e$�j«�dUd§„«�Ze°e$�j «�dud¨„«�Ze°e$�j$«d<d©dIe"�j&e"�j(e"�j*f �dvdª„«�Ze°e$�j,« �dw �dxd«„«�Ze°e$�j.«�dyd¬„«�Ze°e$�j0«d­dddd®œ �dzd¯„«�Ze°e$�j2«�d{�d|d°„«�Ze°e0�j4«dd±œ �d}d²„«�Ze°e0�j6« �d~dd±œ �dd³„«�Ze°e0�j8« �d€ �d�d´„«�Ze°e0�j:«�d‚dµ„«�Ze°e0�j<« �dƒ �d„d·„«�Ze°e0�j>«�d…�d†d¸„«�Ze°e0�j@« �d‡ �dˆd¹„«�Z e°e0�jB« �d6dIdºœ �d‰d»„«�Z!e°e0�jD« �d6dd¼œ �dŠd½„«�Z"e°e0�jF«�d…�d‹d¾„«�Z#e°e0�jH« �d‡ �dŒd¿„«�Z$e°e0�jJ« �d�dÀddÁœ �dŽd„«�Z%e°e0�jL«dd±œ�d�dÄ«�Z&e°e0�jN« �d�dÀddÁœ �d�dÄ„«�Z'e°e0�jP« �d6dÅdÆddÇœ �d‘dÈ„«�Z(e°e0�jR« �d’dd±œ �d“dÊ„«�Z)e°e0�jT«dd±œ �d”dË„«�Z*e°e0�jV«�d6�d•dÌ„«�Z+e°e0�jX«dÍd^de;�jZe;�j\dddÎdf dd±œ �d–dÏ„«�Z,e°e0�j^«dd±œ�d—dЄ«�Z/e°e0�j`«dd±œ�d—dÑ„«�Z0e°e0�jb« �d˜dd±œ �d™dÒ„«�Z1e°e0�jd« �d6d`dÉd`ddÓœ �dšdÔ„«�Z2e°e0�jf« �d›dd±œ �dœdÕ„«�Z3e°e0�jh« �d�dd±œ �dždÖ„«�Z4e°e0�jj«dd±œ�dŸdׄ«�Z5e°e0�jl« �d dd±œ �d¡dØ„«�Z6e°e0�jn« �d¢dd±œ �d£dÙ„«�Z7e°e0�jp« �d¤ �d¥dÚ„«�Z8e°e0�jr«dd]ddÛdÛddddddddÜeD�jtdd`dfdd±œ �d¦dÝ„«�Z9e°e0�jv« �d§dd±œ �d¨dÞ„«�Z;e°e0�jx« �d6dÉdd`ddßœ �d©dà„«�Z<e°e0�jz« �dªdd±œ
„«�ZVe°e0�j®« �dÅdd±œ�d „«�ZWe°e0�j°« �dÆ�d „«�ZXe°e0�j« �d6 �dt�d
„«�Z
e°e0�j²«�dÇ�dÈ�d„«�ZYe°e0�j´«d¶ddddd�dœ �dÉ�d„«�ZZe°e0�j¶«�d„«�Z[e°e0�j¸«�d„«�Z\e°e0�jº«�ddddd�dd�dœ�d„«�Z]e°e0�j¼«�d„«�Z^e°e0�j¾« �dÊdd±œ �dË�d„«�Z_e°e0�jÀ« �d¬dd±œ �dÌ�d„«�Z`e°e0�j«dIe;�jZdIdáfdd±œ �dÍ�d„«�Zae°e0�jÄ«�dÎ�d„«�Zce°e0�jÈ« �dGd�dœ �dÏ�d„«�Zee°e0�jÌ« �dCd�dœ �dÐ�d„«�Zge°e0�jЫ �dCd�dœ �dÑ�d „«�Zie°e0�jÔ«�dÒ�d!„«�Zke°e0�jØ«�dÒ�d"„«�Zm�d:�d#„�Zn�d:�d$„�Zo�d:�d%„�Zp�d:�d&„�Zq�d:�d'„�Zr�d:�d(„�Zs�d:�d)„�Zt�d:�d*„�Zu�d:�d+„�Zv�d:�d,„�Zw�d:�d-„�Zx�d:�d.„�Zy�d:�d/„�Zz�d:�d0„�Z{�d:�d1„�Z|�d:�d2„�Z}�d:�d3„�Z~�d:�d4„�Z�d:�d5„�Z€y(Óa
`matplotlib.pyplot` is a state-based interface to matplotlib. It provides
an implicit, MATLAB-like, way of plotting. It also opens figures on your
screen, and acts as the figure GUI manager.
pyplot is mainly intended for interactive plots and simple cases of
programmatic plot generation::
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0, 5, 0.1)
y = np.sin(x)
plt.plot(x, y)
plt.show()
The explicit object-oriented API is recommended for complex plots, though
pyplot is still usually used to create the figure and often the Axes in the
figure. See `.pyplot.figure`, `.pyplot.subplots`, and
`.pyplot.subplot_mosaic` to create figures, and
:doc:`Axes API </api/axes_api>` for the plotting methods on an Axes::
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0, 5, 0.1)
y = np.sin(x)
fig, ax = plt.subplots()
ax.plot(x, y)
plt.show()
See :ref:`api_interfaces` for an explanation of the tradeoffs between the
implicit and explicit interfaces.
é)Ú annotations)ÚAbstractContextManagerÚ ExitStack)ÚEnumN)Ú
TYPE_CHECKINGÚcastÚoverload)Úcycler)Ú_api)Ú get_backendÚrcParams)Úcm)Ústyle)Ú_pylab_helpers)Ú interactive)Úcbook)Ú
_docstring)ÚFigureCanvasBaseÚFigureManagerBaseÚ MouseButton)ÚFigureÚ
FigureBaseÚ figaspect)ÚGridSpecÚ SubplotSpec)ÚrcsetupÚrcParamsDefaultÚ rcParamsOrig)ÚArtist)ÚAxes)ÚSubplot)Ú
BackendFilterÚbackend_registry)Ú PolarAxes)Ú_ColorizerInterfaceÚColorizingArtistÚ Colorizer)Úmlab)Úget_scale_names)Ú
_colormaps)Ú_color_sequencesÚColormap)ÚCallableÚHashableÚIterableÚSequence)ÚAnyÚBinaryIOÚLiteralÚTypeVar)Ú ParamSpec)Ú ArrayLike)ÚTick)Ú _AxesBase)ÚEvent)ÚScalarMappable)Ú
ContourSetÚQuadContourSet)Ú
CollectionÚFillBetweenPolyCollectionÚLineCollectionÚPolyCollectionÚPathCollectionÚEventCollectionÚQuadMesh)ÚColorbar)Ú BarContainerÚErrorbarContainerÚ
StemContainer)Ú SubFigure)ÚLegend)Ú GaussianKDE)Ú AxesImageÚ FigureImage)Ú
FancyArrowÚ StepPatchÚWedge)ÚBarbsÚQuiverÚ QuiverKey)Ú ScaleBase)Ú ColorTypeÚ
CoordsTypeÚ HashableListÚ
LineStyleTypeÚ
MarkerType)Ú SubplotToolÚ_PÚ_RÚ_T)Ú Normalize)ÚLine2DÚAxLine)ÚTextÚ
Annotation)ÚArrowÚCircleÚ Rectangle)ÚPolygon)ÚButtonÚSliderÚWidgeté)Ú
TickHelperÚ FormatterÚFixedFormatterÚ
NullFormatterÚ
FuncFormatterÚFormatStrFormatterÚScalarFormatterÚ LogFormatterÚLogFormatterExponentÚLogFormatterMathtextÚLocatorÚ IndexLocatorÚ FixedLocatorÚ NullLocatorÚ
LinearLocatorÚ
LogLocatorÚ AutoLocatorÚMultipleLocatorÚ MaxNLocatorcó—y©N©©ÚmethodÚfuncs úT/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/pyplot.pyÚ_copy_docstring_and_deprecatorsr„£s€ð69ócó—yr~rr€s rƒr„r„ªs€à>Ar…có‚—|€$tdtjt|««St j
|«g}t
|d«rUtjjj|«}|r|j|«|j}t
|d«rŒU|ddd…D]
}||«}Œ t||«|S)Nú.Callable[[Callable[_P, _R]], Callable[_P, _R]]Ú __wrapped__éÿÿÿÿ)rÚ functoolsÚpartialr„rÚcopyÚhasattrr Ú deprecationÚ
DECORATORSÚgetÚappendr‰Ú_add_pyplot_note)r�r‚Ú
decoratorsÚpotential_decoratorÚ decorators rƒr„r„¯sÆ€ð €|ÜÐDÜ×%Ñ%Ô&EÀvÓNóPð Pô �‰˜ÓðH€Jô �&˜-Ô
(Ü"×.Ñ.×9Ñ9×=Ñ=¸fÓEÐÙ Ø × Ñ Ð1Ô 2Ø×#Ñ#ˆô �&˜-Õ
(ð
 ¡ " Ñ%òˆ Ù˜‹‰ðä�T˜6Ô"Ø €Kr…)zFigureBase._gciz_AxesBase._scizArtist.findobjcóÊ—|jsy|j}|tvryd}d|vrd}|j›d|›�}n‡|j d«rd|z}np|j d«r d|d dz}nV|j d
«rd|z}n?|j d «r d |d
dz}n%|j d«rd|z}nt d|›�«‚|rd|›d�}nd|›d�}t
j|j«}d|vr|jdd«\}}nI|jd«x} dk7r |d| || d}}n(|jd«x} dk7r |d| || d}}n|dz}d}|›d|›d|›�|_y)aM
Add a note to the docstring of *func* that it is a pyplot wrapper.
The note is added to the "Notes" section of the docstring. If that does
not exist, a "Notes" section is created. In numpydoc, the "Notes"
section is the third last possible section, only potentially followed by
"References" and "Examples".
NTú.FzAxes.z.axes.z
_AxesBase.z
.axes.Axesé zFigure.z FigureBase.z.Figureé
zFigureCanvasBase.z&Wrapped method from unexpected class: z:This is the :ref:`pyplot wrapper <pyplot_interface>` for `z`.zThis is equivalent to `z
Notes
-----riz
References
----------rŠz
Examples
--------ú
Úz
Notes
-----
.. note::
)
Ú__doc__Ú __qualname__Ú_NO_PYPLOT_NOTEÚ
__module__Ú
startswithÚ RuntimeErrorÚinspectÚcleandocÚsplitÚfind)
r‚Ú wrapped_funcÚqualnameÚwrapped_func_is_methodÚlinkÚmessageÚdocÚbeforeÚafterÚindexs
rƒr“r“Ðs¹€ð �<Š<Øà×(Ñ(€HØ”?Ñ"Øà!ÐØ
�(Ñà!&ÐØ×)Ñ)Ð*¨!¨H¨:Ð6‰Ø × Ñ ˜WÔ %ؘ(Ñ"‰Ø × Ñ ˜\Ô *ؘh q r˜lÑ*‰Ø × Ñ ˜YÔ 'Ø�X‰~‰Ø × Ñ ˜]Ô +ؘ8 B C˜=Ñ(‰Ø × Ñ Ð0Ô 1Ø�X‰~‰äÐCÀHÀ:ÐNÓOÐOáØNÈtÈfÐTVÐW‰à+¨D¨6°Ð4ˆô ×
Ñ
˜4Ÿ<™<Ó
(€Cؘ3ÑØŸ ™ Ð"2°AÓ6‰
ˆ‘Ø—8‘8Ð6Ó7Ð
7ˆ%¸BÒ >ؘF˜U˜  S¨¨ [�‰Ø—8‘8Ð2Ó3Ð
3ˆ%¸Ò :ؘF˜U˜  S¨¨ [�‰ð�t‘ˆØˆà�XÐ@ÀÀ ÈÈEÈ7ÐS€D…Lr…Ú_ReplDisplayHook)ÚNONEÚPLAINÚIPYTHONcóB—tj«r t«yyr~)Ú
matplotlibÚis_interactiveÚdraw_allrr…rƒÚ_draw_all_if_interactiver¸s€Ü× Ñ Ô"Ü�
ð#r…có—ttjurytjj d«}|stj ay|j«}|stj ay|jjdt«tja|jdddkr ddl m
}|j t««}n tj t««\}}|r|j#|«yy)a\
Connect to the display hook of the current shell.
The display hook gets called when the read-evaluate-print-loop (REPL) of
the shell has finished the execution of a command. We use this callback
to be able to automatically update a figure in interactive mode.
This works both with IPython and with vanilla python shells.
NÚIPythonÚ post_executeé)éér)Ú backend2gui)Ú_REPL_DISPLAYHOOKr°r³ÚsysÚmodulesr‘r²Ú get_ipythonÚeventsÚregisterr¸Ú version_infoÚIPython.core.pylabtoolsr¿r r#Úresolve_backendÚ
enable_gui)Ú mod_ipythonÚipr¿Úipython_gui_nameÚ_s rƒÚinstall_repl_displayhookrÎsÕ€ôÔ,×4Ñ4Ñ4Øô
—+‘+—/‘/ )Ó,€KÙ Ü,×2Ñ2ÐØØ × Ñ Ó "€BÙ
Ü,×2Ñ2ÐØà‡I�I×Ñ�~Ô'?Ô@Ü(×0Ñ0Ðà×Ñ  Ð# gÒ-õ
8Ø&Ÿ?™?¬;«=Ó9Ñä.×>Ñ>¼{»}ÓMшРáØ
�
‰
Ð&Õ'ðr…cóª—ttjur-ddlm}|«}|j
j
dt«tjay)z6Disconnect from the display hook of the current shell.r)rÃr»N) rÀr°r³rºrÃrÄÚ
unregisterr¸r±)rÃrËs rƒÚuninstall_repl_displayhookrÑEs>€ôÔ,×4Ñ4Ñ4Ý'Ù
‹]ˆØ
� ‰ ×ј^Ô-EÔFÜ(×-Ñ-Ñr…có,—tj|i|¤ŽSr~)rµÚ set_loglevel©ÚargsÚkwargss rƒrÓrÓSs€ä × "Ñ " DÐ 3¨FÑ 3Ð3r…Tcó@—|€
t«}|j||¬«S)N)Ú include_self)ÚgcfÚfindobj)ÚoÚmatchrØs rƒrÚrÚXs#€ð  €yÜ ‹EˆØ �9‰9�U¨ˆ9Ó 6Ð6r…z.type[matplotlib.backend_bases._Backend] | NoneÚ _backend_modcó¨—t€ttjd««t t
t jjt«S)z€
Ensure that a backend is selected and return it.
This is currently private, but may be made public in the future.
Úbackend) rÝÚswitch_backendr
Ú_getrÚtyperµÚ
backend_basesÚ_Backendrr…rƒÚ_get_backend_modråfs;€ô Ðô ”x—}‘} YÓ/Ô0Ü ””Z×-Ñ-×6Ñ6Ñ7¼Ó FÐFr…có|‡‡‡‡—ddlŠ|tjurltj«}|rt j |«x}r|g}ng}|gd¢z
}|D]} t|«|td<ytd«dtd<ytjd«}t j|«Š‰jЉj}|�9tj«}|r#|r!||k7rtdj|||««‚t!‰dd«}t!‰dd«}Gˆfd „d
‰j"j$«} |€,ˆfd „Št&d œˆfd
„
}dˆfd„ }
‰| _|| _|
| _t!‰dd«} t/j0| dd«} t/j0t2dd«}
|�| �3| |
k7r.| st5d|›d�«‚t7d| «j8}|| _t<j?d|| j@«|dvr+ddl!m"}ddl#m$} |jKd«}||«dkrd}|xtd<tNd<| a(dD]1}t/jRt!| |««tU«|_+Œ3|‰jX_-t]«y#t$rY�ŒNwxYw#|jL$rYŒ‡wxYw)aÔ
Set the pyplot backend.
Switching to an interactive backend is possible only if no event loop for
another interactive backend has started. Switching to and from
non-interactive backends is always possible.
If the new backend is different than the current backend then all open
Figures will be closed via ``plt.close('all')``.
Parameters
----------
newbackend : str
The case-insensitive name of the backend to use.
rN)ÚmacosxÚqtaggÚgtk4aggÚgtk3aggÚtkaggÚwxaggrßÚaggzdCannot load backend {!r} which requires the {!r} interactive framework, as {!r} is currently runningÚnew_figure_managerÚshowcóH•—eZdZe«j eW°««y)ú#switch_backend.<locals>.backend_modN)Ú__name__r ržÚlocalsÚupdateÚvars)Úmodules€rƒÚ backend_modrñÀsø„Ù‹�‰™™V› Õ%r…r÷có(•—‰j||«Sr~)Ú new_manager)ÚnumÚfigureÚ canvas_classs €rƒÚnew_figure_manager_given_figurez7switch_backend.<locals>.new_figure_manager_given_figureÉsø€Ø×+Ñ+¨F°CÓ8Ð 8r…)Ú FigureClasscó&•—||i|¤Ž}‰||«Sr~r)rúrþrÕrÖÚfigrýs €rƒrîz*switch_backend.<locals>.new_figure_managerÌsø€Ù˜tÐ. vÑ.ˆCÙ2°3¸Ó<Ð <r…có •—‰j«r<tjj«}|r|jj «yyyr~)r¶rÚGcfÚ
get_activeÚcanvasÚ draw_idle)Úmanagerrµs €rƒÚdraw_if_interactivez+switch_backend.<locals>.draw_if_interactiveÐsBø€Ø(ˆz×(Ñ(Ô*Ü(×,Ñ,×7Ñ7Ó9�ÙØ—N‘N×,Ñ,Õ.ðð+r…Ú
manager_classÚ pyplot_showzBackend zH defines neither FigureCanvas.manager_class nor a toplevel show functionr1zLoaded backend %s version %s.)ÚipymplÚwidget)Ú_parse_to_version_infor
)rr™ézmodule://ipympl.backend_nbagg)rîrrï©ÚreturnÚNone)/Úmatplotlib.backendsrÚ_auto_backend_sentinelrÚ"_get_running_interactive_frameworkr#Úbackend_for_gui_frameworkràrÚ ImportErrorr
ráÚload_backend_moduleÚ FigureCanvasÚrequired_interactive_frameworkÚformatÚgetattrrãrärrýrîrr£Úgetattr_staticrÚ
ValueErrorrr rïÚ_logÚdebugÚbackend_versionÚimportlib.metadataÚmetadatarµr ÚversionÚPackageNotFoundErrorrrÝÚ signatureÚglobalsÚ
__signature__ÚbackendsrßrÎ)Ú
newbackendÚcurrent_frameworkrßÚ
candidatesÚ candidateÚ old_backendÚrequired_frameworkrîrïr÷rrÚmanager_pyplot_showÚbase_pyplot_showÚ _pyplot_showÚimr Úmodule_versionÚ func_namerürµrörýs @@@@rƒràràtsû€ó&à”W×3Ñ3Ñ3Ü!×DÑDÓFÐá Ü,×FÑFØ%ó'ð'�ð'à!˜‰JàˆJØòGñ Gˆ
ð $ò
ˆIð
ܘyÔ)ð+4” ˜YÑ'Ùð
ô
˜5Ô !Ø&+ŒL˜Ñ #Ø Ü—-‘-  Ó*€Kä
×
1Ñ
1°*Ó
=€FØ×&Ñ&€Là%×DÑDÐØÐ%Ü!×DÑDÓFÐÙ Ñ"4Ø%Ð);Ò;Üð:ß:@¹&ØÐ 2Ð4Eó;GóHð
Hô! Ð)=¸tÓDÐÜ �6˜6 4Ó (€Dö &�j×.Ñ.×7Ñ7ô&ðÐ!ô 9ô8>ö =õ /ð
,ð Ô3ð
ð Ô&ð
ð Ô'ô
˜L¨/¸4Ó@€Mô
"×0Ñ0°À
ÈtÓTÐÜ×-Ñ-Ô.?ÀÐPTÓUÐØ ˆ Ø#Ð/Ø'Ð+;Ò;Ù"ÜØ˜:˜,ð'+ð,ó-ð
-ô˜E =Ó1×=Ñ=ˆ Ø'ˆ Ôä‡J�JÐ.ؘ;×6Ñ6ô8ðÐ)Ñ)õ (Ý5ð ØŸZ™Z¨Ó1ˆNÙ% nÓ5¸ ÒAØ<�
ð8BÐA„HˆYÑœ/¨)Ñ4Ø€LØJò-ˆ Ü-4×->Ñ->Ü �K Ó +ó.-Œ‹ �)ÑÕ*ð-ð #-€J×ÑÔôÕøô_ò
Úð
ûðB×&Ñ&ò Ù ð ús$Á JÈJ)Ê J&Ê%J&Ê)J;Ê:J;có‚—d}tttt«j«}|j
rpt
td«r6tj«tj«jk7r-d}n*tj«tj«urd}|rtjd«yy)NFÚ
get_native_idTzFStarting a Matplotlib GUI outside of the main thread will likely fail.)rrârrårrrŽÚ threadingr5Ú main_threadÚ native_idÚcurrent_threadr Ú
warn_external)Úwarnrüs rƒÚ_warn_if_gui_out_of_main_threadr<
s™€Ø €DÜœÔ-Ñ.Ô0@Ó0B×0OÑ0OÓP€LØ×2Ò2Ü ”9˜oÔ .ô
×&Ñ&Ó(¬I×,AÑ,AÓ,C×,MÑ,MÒMØ‘ô×'Ñ'Ó)´×1FÑ1FÓ1HÑHØ�Ù Ü ×Ñð
õ ð r…cóJ—t«t«j|i|¤ŽS)z%Create a new figure manager instance.)r<rårîrÔs rƒrîrî$s$€ä#Ô%Ø 0Ô Ó × 0Ñ 0°$Ð A¸&Ñ AÐAr…có6—t«j|i|¤ŽS)zË
Redraw the current figure if in interactive mode.
.. warning::
End users will typically not have to call this function because the
the interactive mode takes care of this.
)rårrÔs rƒrr+s €ð 2Ô Ó × 1Ñ 1°4Ð B¸6Ñ BÐBr…cóJ—t«t«j|i|¤ŽS)a®
Display all open figures.
Parameters
----------
block : bool, optional
Whether to wait for all figures to be closed before returning.
If `True` block and run the GUI main loop until all figure windows
are closed.
If `False` ensure that all figure windows are displayed and return
immediately. In this case, you are responsible for ensuring
that the event loop is running to have responsive figures.
Defaults to True in non-interactive mode and to False in interactive
mode (see `.pyplot.isinteractive`).
See Also
--------
ion : Enable interactive mode, which shows / updates the figure after
every plotting command, so that calling ``show()`` is not necessary.
ioff : Disable interactive mode.
savefig : Save the figure to an image file instead of showing it on screen.
Notes
-----
**Saving figures to file and showing a window at the same time**
If you want an image file as well as a user interface window, use
`.pyplot.savefig` before `.pyplot.show`. At the end of (a blocking)
``show()`` the figure is closed and thus unregistered from pyplot. Calling
`.pyplot.savefig` afterwards would save a new and thus empty figure. This
limitation of command order does not apply if the show is non-blocking or
if you keep a reference to the figure and use `.Figure.savefig`.
**Auto-show in jupyter notebooks**
The jupyter backends (activated via ``%matplotlib inline``,
``%matplotlib notebook``, or ``%matplotlib widget``), call ``show()`` at
the end of every cell by default. Thus, you usually don't have to call it
explicitly there.
)r<rårïrÔs rƒrïrï8s'€ôX$Ô%Ø "Ô Ó × "Ñ " DÐ 3¨FÑ 3Ð3r…có*—tj«S)a%
Return whether plots are updated after every plotting command.
The interactive mode is mainly useful if you build plots from the command
line and want to see the effect of each command while you are building the
figure.
In interactive mode:
- newly created figures will be shown immediately;
- figures will automatically redraw on change;
- `.pyplot.show` will not block by default.
In non-interactive mode:
- newly created figures and changes to figures will not be reflected until
explicitly asked to be;
- `.pyplot.show` will block by default.
See Also
--------
ion : Enable interactive mode.
ioff : Disable interactive mode.
show : Show all figures (and maybe block).
pause : Show all figures, and block for a time.
)rµr¶rr…rƒÚ
isinteractiverAhs€ô6 × $Ñ $Ó &Ð&r…có¢—t«}|jt«rtnt«t j d«t«|S)a‘
Disable interactive mode.
See `.pyplot.isinteractive` for more details.
See Also
--------
ion : Enable interactive mode.
isinteractive : Whether interactive mode is enabled.
show : Show all figures (and maybe block).
pause : Show all figures, and block for a time.
Notes
-----
For a temporary change, this can be used as a context manager::
# if interactive mode is on
# then figures will be shown on creation
plt.ion()
# This figure will be shown immediately
fig = plt.figure()
with plt.ioff():
# interactive mode will be off
# figures will not automatically be shown
fig2 = plt.figure()
# ...
To enable optional usage as a context manager, this function returns a
context manager object, which is not intended to be stored or
accessed by the user.
F)rÚcallbackrAÚionÚioffrµrrÑ©Ústacks rƒrErEŠs7€ôB
‹K€EØ ‡N�Nœ-œ/•3¬tÔ4Ü×ј5Ô!ÜÔ Ø €Lr…có¢—t«}|jt«rtnt«t j d«t«|S)a–
Enable interactive mode.
See `.pyplot.isinteractive` for more details.
See Also
--------
ioff : Disable interactive mode.
isinteractive : Whether interactive mode is enabled.
show : Show all figures (and maybe block).
pause : Show all figures, and block for a time.
Notes
-----
For a temporary change, this can be used as a context manager::
# if interactive mode is off
# then figures will not be shown on creation
plt.ioff()
# This figure will not be shown immediately
fig = plt.figure()
with plt.ion():
# interactive mode will be on
# figures will automatically be shown
fig2 = plt.figure()
# ...
To enable optional usage as a context manager, this function returns a
context manager object, which is not intended to be stored or
accessed by the user.
T)rrCrArDrErµrrÎrFs rƒrDrDs7€ôB
‹K€EØ ‡N�Nœ-œ/•3¬tÔ4Ü×ј4Ô ÜÔØ €Lr…có—tjj«}|�P|j}|jj
r|j
«td¬«|j|«ytj|«y)a
Run the GUI event loop for *interval* seconds.
If there is an active figure, it will be updated and displayed before the
pause, and the GUI event loop (if any) will run during the pause.
This can be used for crude animation. For more complex animation use
:mod:`matplotlib.animation`.
If there is no active figure, sleep for *interval* seconds instead.
See Also
--------
matplotlib.animation : Proper animations
show : Show all figures and optional block until all figures are closed.
NF)Úblock) rrrrrûÚstalerrïÚstart_event_loopÚtimeÚsleep)Úintervalrrs rƒÚpauserPÞsb€ô"× Ñ ×+Ñ+Ó-€GØÐØ—‘ˆØ �=‰=× Ò Ø × Ñ Ô Ü �5ÕØ×Ñ Õ)ä �
‰
�8Õr…c ó0—tj|fi|¤Žyr~)rµÚrc)ÚgrouprÖs rƒrRrRús€ä‡M�M�%Ñ"˜6Ó"r…có.—tj||«Sr~)rµÚ
rc_context)rRÚfnames rƒrUrUÿs€ô
× Ñ   UÓ +Ð+r…cój—tj«tj«r t«yyr~)rµÚ
rcdefaultsr¶r·rr…rƒrXrXs$€ä×ÑÔÜ× Ñ Ô"Ü�
ð#r…cóH—tjj|g|¢­i|¤ŽSr~)rµÚartistÚgetp©ÚobjrÕrÖs rƒr[r[ó#€ä × Ñ × !Ñ ! #Ð 7¨Ò 7°Ñ 7Ð7r…cóH—tjj|g|¢­i|¤ŽSr~)rµrZr‘r\s rƒr‘r‘s#€ä × Ñ × Ñ  Ð 6 tÒ 6¨vÑ 6Ð6r…cóH—tjj|g|¢­i|¤ŽSr~)rµrZÚsetpr\s rƒrarar^r…édr¼có*—tdr td«‚t«}|jtjtj
««ddlm}tjgd¢d|||f|jdd¬ «gd
d d d
ddddddddœ«|S)a"
Turn on `xkcd <https://xkcd.com/>`_ sketch-style drawing mode.
This will only have an effect on things drawn after this function is called.
For best results, install the `xkcd script <https://github.com/ipython/xkcd-font/>`_
font; xkcd fonts are not packaged with Matplotlib.
Parameters
----------
scale : float, optional
The amplitude of the wiggle perpendicular to the source line.
length : float, optional
The length of the wiggle along the line.
randomness : float, optional
The scale factor by which the length is shrunken or expanded.
Notes
-----
This function works by a number of rcParams, so it will probably
override others you have set before.
If you want the effects of this function to be temporary, it can
be used as a context manager, for example::
with plt.xkcd():
# This figure will be in XKCD-style
fig1 = plt.figure()
# ...
# This figure will be in regular style
fig2 = plt.figure()
z text.usetexz3xkcd mode is not compatible with text.usetex = Truer)Ú patheffects)Úxkcdz xkcd Scriptz
Comic Neuez
Comic Sans MSg,@r
Úw)Ú linewidthÚ
foregroundgø?g@ÚwhitegFÚblackr½é)z font.familyz font.sizez path.sketchz path.effectszaxes.linewidthzlines.linewidthzfigure.facecolorzgrid.linewidthz axes.gridzaxes.unicode_minuszaxes.edgecolorzxtick.major.sizezxtick.major.widthzytick.major.sizezytick.major.width)
r
r¢rrCÚ _update_rawr�rµrdrôÚ
withStroke)ÚscaleÚlengthÚ
randomnessrGrds rƒrere s§€ôN�
ÒÜØ AóCð Cô
‹K€EØ ‡N�N”8×'Ñ'¬¯©«Ô9å&Ü ‡O�OÚMØØ˜v zÐ2à × "Ñ "¨Q¸3Ð "Ó ?ðAàØØ#ØØØ#Ø!ØØØØñ!ôð& €Lr…F)Ú facecolorÚ edgecolorÚframeonrþÚclearc
óP—t«} t|t«rÛ|jd¬«}
|
jj
€ t
d«‚td„||||fD««s|r|rY|
jj
j| vr7tjd|
jj
j›d�«tjj|
jj
«|
S| rt| «dznd} d} |€| }n–td „||||fD««s|r|r|| vrtjd|›d�«t|t«rD|} t!«}
| |
vr| d
k(rtjd «| }n"|
j#| «}| |}n t%|«}tjj'|«}|�€%t(d }t+| «|cxk(rdk\r!nntjd
|›d�t,«t/|f||||||dœ|¤Ž}|jj0}| r|j3| «t(dD]U}|j5d«\}}t7j8|«}|j5d«D]}t;||«}Œ||«ŒWtjj=|«t?«t@tBjDur tF|_$|r$|jj0jK«|jj0S)aV
Create a new figure, or activate an existing figure.
Parameters
----------
num : int or str or `.Figure` or `.SubFigure`, optional
A unique identifier for the figure.
If a figure with that identifier already exists, this figure is made
active and returned. An integer refers to the ``Figure.number``
attribute, a string refers to the figure label.
If there is no figure with the identifier or *num* is not given, a new
figure is created, made active and returned. If *num* is an int, it
will be used for the ``Figure.number`` attribute, otherwise, an
auto-generated integer value is used (starting at 1 and incremented
for each new figure). If *num* is a string, the figure label and the
window title is set to this value. If num is a ``SubFigure``, its
parent ``Figure`` is activated.
figsize : (float, float), default: :rc:`figure.figsize`
Width, height in inches.
dpi : float, default: :rc:`figure.dpi`
The resolution of the figure in dots-per-inch.
facecolor : :mpltype:`color`, default: :rc:`figure.facecolor`
The background color.
edgecolor : :mpltype:`color`, default: :rc:`figure.edgecolor`
The border color.
frameon : bool, default: True
If False, suppress drawing the figure frame.
FigureClass : subclass of `~matplotlib.figure.Figure`
If set, an instance of this subclass will be created, rather than a
plain `.Figure`.
clear : bool, default: False
If True and the figure already exists, then it is cleared.
layout : {'constrained', 'compressed', 'tight', 'none', `.LayoutEngine`, None}, default: None
The layout mechanism for positioning of plot elements to avoid
overlapping Axes decorations (labels, ticks, etc). Note that layout
managers can measurably slow down figure display.
- 'constrained': The constrained layout solver adjusts Axes sizes
to avoid overlapping Axes decorations. Can handle complex plot
layouts and colorbars, and is thus recommended.
See :ref:`constrainedlayout_guide`
for examples.
- 'compressed': uses the same algorithm as 'constrained', but
removes extra space between fixed-aspect-ratio Axes. Best for
simple grids of Axes.
- 'tight': Use the tight layout mechanism. This is a relatively
simple algorithm that adjusts the subplot parameters so that
decorations do not overlap. See `.Figure.set_tight_layout` for
further details.
- 'none': Do not use a layout engine.
- A `.LayoutEngine` instance. Builtin layout classes are
`.ConstrainedLayoutEngine` and `.TightLayoutEngine`, more easily
accessible by 'constrained' and 'tight'. Passing an instance
allows third parties to provide their own layout engine.
If not given, fall back to using the parameters *tight_layout* and
*constrained_layout*, including their config defaults
:rc:`figure.autolayout` and :rc:`figure.constrained_layout.use`.
**kwargs
Additional keyword arguments are passed to the `.Figure` constructor.
Returns
-------
`~matplotlib.figure.Figure`
Notes
-----
A newly created figure is passed to the `~.FigureCanvasBase.new_manager`
method or the `new_figure_manager` function provided by the current
backend, which install a canvas and a manager on the figure.
Once this is done, :rc:`figure.hooks` are called, one at a time, on the
figure; these hooks allow arbitrary customization of the figure (e.g.,
attaching callbacks) or of associated elements (e.g., modifying the
toolbar). See :doc:`/gallery/user_interfaces/mplcvd` for an example of
toolbar customization.
If you are creating many figures, make sure you explicitly call
`.pyplot.close` on the figures you are not using, because this will
enable pyplot to properly clean up the memory.
`~matplotlib.rcParams` defines the default values, which can be modified
in the matplotlibrc file.
T©Úrootz*The passed figure is not managed by pyplotc3ó$K—|]}|du–—Œ
y­wr~r©Ú.0Úparams rƒú <genexpr>zfigure.<locals>.<genexpr>äsèø€ÒV¨�%˜tÔ#ÑVùó‚zCIgnoring specified arguments in this call because figure with num: z already existsrirœc3ó$K—|]}|du–—Œ
y­wr~rrys rƒr|zfigure.<locals>.<genexpr>ñsèø€ÒT e�˜TÔ!ÑTùr}Úallz)close('all') closes all existing figures.zfigure.max_open_warningz
More than a figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`.)ÚfigsizeÚdpirqrrrsrþz figure.hooksú:r˜)&Ú get_fignumsÚ
isinstancerÚ
get_figurerrrÚanyrúr r:rrÚ
set_activeÚmaxÚstrÚ
get_figlabelsr¯ÚintÚget_fig_managerr
ÚlenÚRuntimeWarningrîrûÚ set_labelr¥Ú importlibÚ
import_modulerÚ_set_new_active_managerrrÀr°r²Ú_auto_draw_if_interactiveÚstale_callbackrt)rúr€r�rqrrrsrþrtrÖÚallnumsÚroot_figÚnext_numÚ fig_labelÚ
all_labelsÚinumrÚmax_open_warningrÚ hookspecsÚ module_nameÚ dotted_namer]Úparts rƒrûrûgsþ€ôl‹m€Gä�#”zÔ"à—>‘> t�>Ó,ˆØ �?‰?× "Ñ "Ð *ÜÐIÓJÐ JÜÑV°'¸3À È9Ð1UÔVÔVÙ¡¨H¯O©O×,CÑ,C×,GÑ,GÈ7Ñ,RÜ × Ñ ðØ%Ÿ_™_×4Ñ4×8Ñ8Ð9¸ðJô
Kô ×Ñ×%Ñ% h§o¡o×&=Ñ&=Ô>؈á#*Œs�7‹|˜aÒ°€HØ€IØ
€{؉ä ÑT°¸¸iÈÐ/SÔTÔ TÙ¡¨C°7©NÜ × Ñ ð,Ø,/¨5°ðAô
Bô �cœ3Ô ØˆIÜ&›ˆJØ 
Ñ*Ø Ò%Ü×&Ñ&Ð'RÔSØ‘à!×'Ñ'¨ Ó2�ؘd‘m‘ä�c“(ˆCô× Ñ ×0Ñ0°Ó5€GØ�Ü#Ð$=Ñ>ÐÜ ˆw‹<Ð+Ô 0¨qÕ 0Ü × Ñ ØÐ-Ð.ð/>ð?ô ô
ô%Ø ð/Ø  cب9¸gØ#ñ/ð(.ñ/ˆð�n‰n×#Ñ#ˆÙ Ø �M‰M˜)Ô $ä! .Ñ1ò ˆIØ'0§¡°sÓ';Ñ $ˆK˜Ü ×.Ñ.¨{Ó;ˆCØ#×)Ñ)¨#Ó.ò
)�ܘc 4Ó(‘ð
)á ��Hð  ô ×Ñ×2Ñ2°7Ô;ô Ôä Ô 0× 6Ñ 6Ñ 6Ü!:ˆCÔ á Ø�‰×Ñ×#Ñ#Ô%à �>‰>× Ñ Ð r…có*—|r…tj«rp|jj«sU|jjs>|jj «5|jj
«ddd«yyyyy#1swYyxYw)zñ
An internal helper function for making sure that auto-redrawing
works as intended in the plain python repl.
Parameters
----------
fig : Figure
A figure object which is assumed to be associated with a canvas
N)rµr¶rÚ is_savingÚ_is_idle_drawingÚ_idle_draw_cntxr)rÚvals rƒr“r“1s|€ñ ”
×)Ñ)Ô+Ø—J‘J×(Ñ(Ô*Ø—J‘J×/Ò/ð
�Z‰Z×
'Ñ
'Ó
)ñ #Ø �J‰J× Ñ Ô "÷ #ð #ð 0ð+ð,ˆ÷ #ð #ús Á!B  Bcó‚—tjj«}|�|jjSt «S)a
Get the current figure.
If there is currently no figure on the pyplot figure stack, a new one is
created using `~.pyplot.figure()`. (To test whether there is currently a
figure on the pyplot figure stack, check whether `~.pyplot.get_fignums()`
is empty.)
)rrrrrû)rs rƒrÙrÙFs5€ô× Ñ ×+Ñ+Ó-€GØÐØ�~‰~×$Ñ$Ð$ä‹xˆr…cóx—t|t«rtjj |«S|t «vS)zæ
Return whether the figure with the given id exists.
Parameters
----------
num : int or str
A figure identifier.
Returns
-------
bool
Whether or not a figure with id *num* exists.
)r„r‹rrÚ
has_fignumrŠ©rús rƒÚ
fignum_existsr©Vs:€ô �cœ3Ô ô ×Ñ×%Ñ% cÓ*ðð”M“OÐ
#ðr…cóH—ttjj«S)z)Return a list of existing figure numbers.)ÚsortedrrÚfigsrr…rƒrƒrƒks€ä ”.×$Ñ$×)Ñ)Ó *Ð*r…cóÒ—tjj«}|jd„¬«|D�cgc]&}|jj
j
«‘Œ(c}Scc}w)z(Return a list of existing figure labels.có—|jSr~r¨)Úms rƒú<lambda>zget_figlabels.<locals>.<lambda>ss
€ §¡€r…)Úkey)rrÚget_all_fig_managersÚsortrrûÚ get_label)Úmanagersr¯s rƒrŠrŠpsI€ä×!Ñ!×6Ñ6Ó8€HØ ‡M�M‘o€MÔ&Ø19Ö :¨AˆA�H‰H�O‰O× %Ñ %Õ 'Ò :Ð:ùÒ :s¶+A$có>—t«jjS)ah
Return the figure manager of the current figure.
The figure manager is a container for the actual backend-depended window
that displays the figure on screen.
If no current figure exists, a new one is created, and its figure
manager is returned.
Returns
-------
`.FigureManagerBase` or backend-dependent subclass thereof
)rÙrrrr…rƒÚget_current_fig_managerr·ws€ô ‹5�<‰<× Ñ Ðr…cóJ—t«jj||«Sr~)rÙrÚ mpl_connect)Úsr‚s rƒÚconnectr»ˆs€ä ‹5�<‰<× #Ñ # A tÓ ,Ð,r…cóJ—t«jj|«yr~)rÙrÚmpl_disconnect)Úcids rƒÚ
disconnectr¿�s€äƒE‡L�L×Ñ Õ$r…cóà—|€Atjj«}|€ytjj|«y|dk(rtjj «yt |t «r tjj|«yt|d«r*tjj|j «yt |t«rKt«}||vr<t«|j|«}tjj|«yyt |t«r tjj|«ytdt|«z«‚)ac
Close a figure window, and unregister it from pyplot.
Parameters
----------
fig : None or int or str or `.Figure`
The figure to close. There are a number of ways to specify this:
- *None*: the current figure
- `.Figure`: the given `.Figure` instance
- ``int``: a figure number
- ``str``: a figure name
- 'all': all figures
Notes
-----
pyplot maintains a reference to figures created with `figure()`. When
work on the figure is completed, it should be closed, i.e. deregistered
from pyplot, to free its memory (see also :rc:figure.max_open_warning).
Closing a figure window created by `show()` automatically deregisters the
figure. For all other use cases, most prominently `savefig()` without
`show()`, the figure must be deregistered explicitly using `close()`.
Nrr‹zDclose() argument must be a Figure, an int, a string, or None, not %s)rrrÚdestroyÚ destroy_allr„r‹rŽr‰rŠrƒr¯rÚ destroy_figÚ TypeErrorrâ)rrr™rús rƒÚcloserÅ’s€ð0 €{Ü ×$Ñ$×/Ñ/Ó1ˆØ ˆ?Ø ä × Ñ × &Ñ & wÕ /Ø �ŠÜ×Ñ×&Ñ&Õ(Ü �CœÔ Ü×Ñ×"Ñ" 3Õ'Ü ��eÔ ô ×Ñ×"Ñ" 3§7¡7Õ+Ü �CœÔ Ü"“_ˆ
Ø �*Ñ Ü“- 
× 0Ñ 0°Ó 5Ñ6ˆCÜ × Ñ × &Ñ & sÕ +ð ô
�CœÔ Ü×Ñ×&Ñ& sÕ+äð*Ü,0°«Iñ6ó7ð 7r…có4—t«j«y)zClear the current figure.N)rÙrtrr…rƒÚclfrÇÄs
€äƒE‡K�K…Mr…cóH—t«jj«y)a
Redraw the current figure.
This is used to update a figure that has been altered, but not
automatically re-drawn. If interactive mode is on (via `.ion()`), this
should be only rarely needed, but there may be ways to modify the state of
a figure without marking it as "stale". Please report these cases as bugs.
This is equivalent to calling ``fig.canvas.draw_idle()``, where ``fig`` is
the current figure.
See Also
--------
.FigureCanvasBase.draw_idle
.FigureCanvasBase.draw
N)rÙrrrr…rƒÚdrawrÉÉs€ô"ƒE‡L�L×ÑÕr…cór—t«}|j|i|¤Ž}|jj«|Sr~)rÙÚsavefigrr)rÕrÖrÚress rƒrËrËÝs5€ä
‹%€Cð ˆ#�+‰+�tÐ
&˜vÑ
&€C؇J�J×ÑÔØ €Jr…có6—t«j|i|¤ŽSr~)rÙÚlegendrÔs rƒÚ figlegendrÏês€Ø Œ3‹5�<‰<˜Ð ( Ñ (Ð(r…z legend(z figlegend(z fig.legend(zplt.figlegend(zax.plot(z plt.plot(c ó²—t«}|jdd«}|€'|€|jdi|¤ŽS|j|fi|¤ŽS|j|fi|¤ŽS)a2
Add an Axes to the current figure and make it the current Axes.
Call signatures::
plt.axes()
plt.axes(rect, projection=None, polar=False, **kwargs)
plt.axes(ax)
Parameters
----------
arg : None or 4-tuple
The exact behavior of this function depends on the type:
- *None*: A new full window Axes is added using
``subplot(**kwargs)``.
- 4-tuple of floats *rect* = ``(left, bottom, width, height)``.
A new Axes is added with dimensions *rect* in normalized
(0, 1) units using `~.Figure.add_axes` on the current figure.
projection : {None, 'aitoff', 'hammer', 'lambert', 'mollweide', 'polar', 'rectilinear', str}, optional
The projection type of the `~.axes.Axes`. *str* is the name of
a custom projection, see `~matplotlib.projections`. The default
None results in a 'rectilinear' projection.
polar : bool, default: False
If True, equivalent to projection='polar'.
sharex, sharey : `~matplotlib.axes.Axes`, optional
Share the x or y `~matplotlib.axis` with sharex and/or sharey.
The axis will have the same limits, ticks, and scale as the axis
of the shared Axes.
label : str
A label for the returned Axes.
Returns
-------
`~.axes.Axes`, or a subclass of `~.axes.Axes`
The returned Axes class depends on the projection used. It is
`~.axes.Axes` if rectilinear projection is used and
`.projections.polar.PolarAxes` if polar projection is used.
Other Parameters
----------------
**kwargs
This method also takes the keyword arguments for
the returned Axes class. The keyword arguments for the
rectilinear Axes class `~.axes.Axes` can be found in
the following table but there might also be other keyword
arguments if another projection is used, see the actual Axes
class.
%(Axes:kwdoc)s
See Also
--------
.Figure.add_axes
.pyplot.subplot
.Figure.add_subplot
.Figure.subplots
.pyplot.subplots
Examples
--------
::
# Creating a new full window Axes
plt.axes()
# Creating a new Axes with specified dimensions and a grey background
plt.axes((left, bottom, width, height), facecolor='grey')
ÚpositionNr)rÙÚpopÚ add_subplotÚadd_axes)ÚargrÖrÚposs rƒÚaxesr×õsf€ô^ ‹%€CØ
�*‰*�Z Ó
&€CØ
€{Ø ˆ;Ø"�3—?‘?Ñ, VÑ,Ð ,à�3—<‘< Ñ. vÑ.Ð .àˆs�|‰|˜CÑ* 6Ñ*Ð*r…có<—|€
t«}|j«y)zS
Remove an `~.axes.Axes` (defaulting to the current Axes) from its figure.
N)ÚgcaÚremove)Úaxs rƒÚdelaxesrÜOs€ð
€zÜ
‹UˆØ‡I�I…Kr…có`—|jd¬«}t|«|j|«y)zT
Set the current Axes to *ax* and the current Figure to the parent of *ax*.
FrvN)r…rûÚsca)rÛrs rƒrÞrÞXs&€ð
�-‰-˜Uˆ-Ó
#€CÜ
ˆ3„K؇G�GˆB…Kr…có2—t«j«S)zClear the current Axes.)rÙÚclarr…rƒràràds€ô ‹5�9‰9‹;Ðr…có€—t«}|jd|«}|jd|«}||ur$|r"||ur|dk7rtd|›d|›d�«‚dx|d<}t |«dk(rd}t |«dk\r(t |d t «rtjd
«d |vsd |vr td
«‚t«}tj||«}|jD]<}|j«|k(sŒ|ik(s |j|j di|¤Žk(sŒ<n|j"|i|¤Ž}|j%|«|S)aº
Add an Axes to the current figure or retrieve an existing Axes.
This is a wrapper of `.Figure.add_subplot` which provides additional
behavior when working with the implicit API (see the notes section).
Call signatures::
subplot(nrows, ncols, index, **kwargs)
subplot(pos, **kwargs)
subplot(**kwargs)
subplot(ax)
Parameters
----------
*args : int, (int, int, *index*), or `.SubplotSpec`, default: (1, 1, 1)
The position of the subplot described by one of
- Three integers (*nrows*, *ncols*, *index*). The subplot will take the
*index* position on a grid with *nrows* rows and *ncols* columns.
*index* starts at 1 in the upper left corner and increases to the
right. *index* can also be a two-tuple specifying the (*first*,
*last*) indices (1-based, and including *last*) of the subplot, e.g.,
``fig.add_subplot(3, 1, (1, 2))`` makes a subplot that spans the
upper 2/3 of the figure.
- A 3-digit integer. The digits are interpreted as if given separately
as three single-digit integers, i.e. ``fig.add_subplot(235)`` is the
same as ``fig.add_subplot(2, 3, 5)``. Note that this can only be used
if there are no more than 9 subplots.
- A `.SubplotSpec`.
projection : {None, 'aitoff', 'hammer', 'lambert', 'mollweide', 'polar', 'rectilinear', str}, optional
The projection type of the subplot (`~.axes.Axes`). *str* is the name
of a custom projection, see `~matplotlib.projections`. The default
None results in a 'rectilinear' projection.
polar : bool, default: False
If True, equivalent to projection='polar'.
sharex, sharey : `~matplotlib.axes.Axes`, optional
Share the x or y `~matplotlib.axis` with sharex and/or sharey. The
axis will have the same limits, ticks, and scale as the axis of the
shared Axes.
label : str
A label for the returned Axes.
Returns
-------
`~.axes.Axes`
The Axes of the subplot. The returned Axes can actually be an instance
of a subclass, such as `.projections.polar.PolarAxes` for polar
projections.
Other Parameters
----------------
**kwargs
This method also takes the keyword arguments for the returned Axes
base class; except for the *figure* argument. The keyword arguments
for the rectilinear base class `~.axes.Axes` can be found in
the following table but there might also be other keyword
arguments if another projection is used.
%(Axes:kwdoc)s
Notes
-----
.. versionchanged:: 3.8
In versions prior to 3.8, any preexisting Axes that overlap with the new Axes
beyond sharing a boundary was deleted. Deletion does not happen in more
recent versions anymore. Use `.Axes.remove` explicitly if needed.
If you do not want this behavior, use the `.Figure.add_subplot` method
or the `.pyplot.axes` function instead.
If no *kwargs* are passed and there exists an Axes in the location
specified by *args* then that Axes will be returned rather than a new
Axes being created.
If *kwargs* are passed and there exists an Axes in the location
specified by *args*, the projection type is the same, and the
*kwargs* match with the existing Axes, then the existing Axes is
returned. Otherwise a new Axes is created with the specified
parameters. We save a reference to the *kwargs* which we use
for this comparison. If any of the values in *kwargs* are
mutable we will not detect the case where they are mutated.
In these cases we suggest using `.Figure.add_subplot` and the
explicit Axes API rather than the implicit pyplot API.
See Also
--------
.Figure.add_subplot
.pyplot.subplots
.pyplot.axes
.Figure.subplots
Examples
--------
::
plt.subplot(221)
# equivalent but more general
ax1 = plt.subplot(2, 2, 1)
# add a subplot with no frame
ax2 = plt.subplot(222, frameon=False)
# add a polar subplot
plt.subplot(223, projection='polar')
# add a red subplot that shares the x-axis with ax1
plt.subplot(224, sharex=ax1, facecolor='red')
# delete ax2 from the figure
plt.delaxes(ax2)
# add ax2 to the figure again
plt.subplot(ax2)
# make the first Axes "current" again
plt.subplot(221)
Ú
projectionÚpolarzpolar=z, yet projection=z1. Only one of these arguments should be supplied.r)riririrkr¼zbThe subplot index argument to subplot() appears to be a boolean. Did you intend to use subplots()?ÚnrowsÚncolszhsubplot() got an unexpected keyword argument 'ncols' and/or 'nrows'. Did you intend to call subplots()?r)Úobjectr‘rÒrr�r„Úboolr r:rÄrÙrÚ_from_subplot_argsr×Úget_subplotspecÚ_projection_initÚ _process_projection_requirementsrÓrÞ)rÕrÖÚunsetrârãrr±rÛs rƒÚsubplotrílsx€ôD
‹H€EØ—‘˜L¨%Ó0€JØ �J‰J�w Ó &€EØ �EÑ™eà ˜UÑ " z°WÒ'<ÜØ˜˜Ð0°°ð?BðBóð
ð-4Ð3ˆˆ|јzô ˆ4ƒy�A‚~؈ô ˆ4ƒy�A‚~œ* T¨!¡W¬dÔ3Ü ×Ñð)ô *ð�&јG vÑ-ÜðNóOð Oô ‹%€Cô ×
(Ñ
(¨¨dÓ
3€Cà�h‰hò
.ˆð
× Ñ Ó  CÓ 'ؘ2’Ø×(Ñ(Ø<˜×<Ñ<ÑF¸vÑFóGá ð
.ðˆS�_‰_˜dÐ
- fÑ
-ˆà‡G�GˆB„Kà
€Ir….)ÚsharexÚshareyÚsqueezeÚ width_ratiosÚ
height_ratiosÚ
subplot_kwÚ gridspec_kwc ó—yr~r©
rärårîrïrðrñròrórôÚfig_kws
rƒÚsubplotsrø"ó€ðr…)rîrïrñròrórôc ó—yr~rrös
rƒrørø3rùr…c ó—yr~rrös
rƒrørøDrùr…c óT—tdi| ¤Ž}
|
j|||||||||¬« } |
| fS)aú
Create a figure and a set of subplots.
This utility wrapper makes it convenient to create common layouts of
subplots, including the enclosing figure object, in a single call.
Parameters
----------
nrows, ncols : int, default: 1
Number of rows/columns of the subplot grid.
sharex, sharey : bool or {'none', 'all', 'row', 'col'}, default: False
Controls sharing of properties among x (*sharex*) or y (*sharey*)
axes:
- True or 'all': x- or y-axis will be shared among all subplots.
- False or 'none': each subplot x- or y-axis will be independent.
- 'row': each subplot row will share an x- or y-axis.
- 'col': each subplot column will share an x- or y-axis.
When subplots have a shared x-axis along a column, only the x tick
labels of the bottom subplot are created. Similarly, when subplots
have a shared y-axis along a row, only the y tick labels of the first
column subplot are created. To later turn other subplots' ticklabels
on, use `~matplotlib.axes.Axes.tick_params`.
When subplots have a shared axis that has units, calling
`.Axis.set_units` will update each axis with the new units.
Note that it is not possible to unshare axes.
squeeze : bool, default: True
- If True, extra dimensions are squeezed out from the returned
array of `~matplotlib.axes.Axes`:
- if only one subplot is constructed (nrows=ncols=1), the
resulting single Axes object is returned as a scalar.
- for Nx1 or 1xM subplots, the returned object is a 1D numpy
object array of Axes objects.
- for NxM, subplots with N>1 and M>1 are returned as a 2D array.
- If False, no squeezing at all is done: the returned Axes object is
always a 2D array containing Axes instances, even if it ends up
being 1x1.
width_ratios : array-like of length *ncols*, optional
Defines the relative widths of the columns. Each column gets a
relative width of ``width_ratios[i] / sum(width_ratios)``.
If not given, all columns will have the same width. Equivalent
to ``gridspec_kw={'width_ratios': [...]}``.
height_ratios : array-like of length *nrows*, optional
Defines the relative heights of the rows. Each row gets a
relative height of ``height_ratios[i] / sum(height_ratios)``.
If not given, all rows will have the same height. Convenience
for ``gridspec_kw={'height_ratios': [...]}``.
subplot_kw : dict, optional
Dict with keywords passed to the
`~matplotlib.figure.Figure.add_subplot` call used to create each
subplot.
gridspec_kw : dict, optional
Dict with keywords passed to the `~matplotlib.gridspec.GridSpec`
constructor used to create the grid the subplots are placed on.
**fig_kw
All additional keyword arguments are passed to the
`.pyplot.figure` call.
Returns
-------
fig : `.Figure`
ax : `~matplotlib.axes.Axes` or array of Axes
*ax* can be either a single `~.axes.Axes` object, or an array of Axes
objects if more than one subplot was created. The dimensions of the
resulting array can be controlled with the squeeze keyword, see above.
Typical idioms for handling the return value are::
# using the variable ax for single a Axes
fig, ax = plt.subplots()
# using the variable axs for multiple Axes
fig, axs = plt.subplots(2, 2)
# using tuple unpacking for multiple Axes
fig, (ax1, ax2) = plt.subplots(1, 2)
fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2)
The names ``ax`` and pluralized ``axs`` are preferred over ``axes``
because for the latter it's not clear if it refers to a single
`~.axes.Axes` instance or a collection of these.
See Also
--------
.pyplot.figure
.pyplot.subplot
.pyplot.axes
.Figure.subplots
.Figure.add_subplot
Examples
--------
::
# First create some toy data:
x = np.linspace(0, 2*np.pi, 400)
y = np.sin(x**2)
# Create just a figure and only one subplot
fig, ax = plt.subplots()
ax.plot(x, y)
ax.set_title('Simple plot')
# Create two subplots and 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)
# Create four polar Axes and access them through the returned array
fig, axs = plt.subplots(2, 2, subplot_kw=dict(projection="polar"))
axs[0, 0].plot(x, y)
axs[1, 1].scatter(x, y)
# Share a X axis with each column of subplots
plt.subplots(2, 2, sharex='col')
# Share a Y axis with each row of subplots
plt.subplots(2, 2, sharey='row')
# Share both X and Y axes with all subplots
plt.subplots(2, 2, sharex='all', sharey='all')
# Note that this is the same as
plt.subplots(2, 2, sharex=True, sharey=True)
# Create figure number 10 with a single subplot
# and clears it if it already exists.
fig, ax = plt.subplots(num=10, clear=True)
) rärårîrïrðrórôròrñr)rûrø) rärårîrïrðrñròrórôr÷rÚaxss rƒrørøUsE€ôv Ñ
�6Ñ
€CØ
�,‰,˜U¨%¸ÀvØ&°:Ø#.¸mØ$0ð ó 2€Cð �ˆ8€Or…)rîrïrñròÚempty_sentinelrórôÚper_subplot_kwc ó—yr~r©
Úmosaicrîrïrñròrþrórôrÿr÷s
rƒÚsubplot_mosaicrøs€ð69r…c ó—yr~rrs
rƒrrs€ð58r…c ó—yr~rrs
rƒrrs€ð;>r…r˜c óT—tdi| ¤Ž}
|
j|||||||||¬« } |
| fS)a×
Build a layout of Axes based on ASCII art or nested lists.
This is a helper function to build complex GridSpec layouts visually.
See :ref:`mosaic`
for an example and full API documentation
Parameters
----------
mosaic : list of list of {hashable or nested} or str
A visual layout of how you want your Axes to be arranged
labeled as strings. For example ::
x = [['A panel', 'A panel', 'edge'],
['C panel', '.', 'edge']]
produces 4 Axes:
- 'A panel' which is 1 row high and spans the first two columns
- 'edge' which is 2 rows high and is on the right edge
- 'C panel' which in 1 row and 1 column wide in the bottom left
- a blank space 1 row and 1 column wide in the bottom center
Any of the entries in the layout can be a list of lists
of the same form to create nested layouts.
If input is a str, then it must be of the form ::
'''
AAE
C.E
'''
where each character is a column and each line is a row.
This only allows only single character Axes labels and does
not allow nesting but is very terse.
sharex, sharey : bool, default: False
If True, the x-axis (*sharex*) or y-axis (*sharey*) will be shared
among all subplots. In that case, tick label visibility and axis units
behave as for `subplots`. If False, each subplot's x- or y-axis will
be independent.
width_ratios : array-like of length *ncols*, optional
Defines the relative widths of the columns. Each column gets a
relative width of ``width_ratios[i] / sum(width_ratios)``.
If not given, all columns will have the same width. Convenience
for ``gridspec_kw={'width_ratios': [...]}``.
height_ratios : array-like of length *nrows*, optional
Defines the relative heights of the rows. Each row gets a
relative height of ``height_ratios[i] / sum(height_ratios)``.
If not given, all rows will have the same height. Convenience
for ``gridspec_kw={'height_ratios': [...]}``.
empty_sentinel : object, optional
Entry in the layout to mean "leave this space empty". Defaults
to ``'.'``. Note, if *layout* is a string, it is processed via
`inspect.cleandoc` to remove leading white space, which may
interfere with using white-space as the empty sentinel.
subplot_kw : dict, optional
Dictionary with keywords passed to the `.Figure.add_subplot` call
used to create each subplot. These values may be overridden by
values in *per_subplot_kw*.
per_subplot_kw : dict, optional
A dictionary mapping the Axes identifiers or tuples of identifiers
to a dictionary of keyword arguments to be passed to the
`.Figure.add_subplot` call used to create each subplot. The values
in these dictionaries have precedence over the values in
*subplot_kw*.
If *mosaic* is a string, and thus all keys are single characters,
it is possible to use a single string instead of a tuple as keys;
i.e. ``"AB"`` is equivalent to ``("A", "B")``.
.. versionadded:: 3.7
gridspec_kw : dict, optional
Dictionary with keywords passed to the `.GridSpec` constructor used
to create the grid the subplots are placed on.
**fig_kw
All additional keyword arguments are passed to the
`.pyplot.figure` call.
Returns
-------
fig : `.Figure`
The new figure
dict[label, Axes]
A dictionary mapping the labels to the Axes objects. The order of
the Axes is left-to-right and top-to-bottom of their position in the
total layout.
)rîrïròrñrórôrþrÿr)rûr) rrîrïrñròrþrórôrÿr÷rÚax_dicts rƒrr(sK€ôj Ñ
�6Ñ
€CØ× Ñ ØØ˜fØ#°,ب;Ø%Ø%ð
!ó€Gð �ˆ<Ðr…c ó —|€
t«}|\}}tj|||«}|j|||¬«} |j| fi|¤ŽS)a‚
Create a subplot at a specific location inside a regular grid.
Parameters
----------
shape : (int, int)
Number of rows and of columns of the grid in which to place axis.
loc : (int, int)
Row number and column number of the axis location within the grid.
rowspan : int, default: 1
Number of rows for the axis to span downwards.
colspan : int, default: 1
Number of columns for the axis to span to the right.
fig : `.Figure`, optional
Figure to place the subplot in. Defaults to the current figure.
**kwargs
Additional keyword arguments are handed to `~.Figure.add_subplot`.
Returns
-------
`~.axes.Axes`
The Axes of the subplot. The returned Axes can actually be an instance
of a subclass, such as `.projections.polar.PolarAxes` for polar
projections.
Notes
-----
The following call ::
ax = subplot2grid((nrows, ncols), (row, col), rowspan, colspan)
is identical to ::
fig = gcf()
gs = fig.add_gridspec(nrows, ncols)
ax = fig.add_subplot(gs[row:row+rowspan, col:col+colspan])
)ÚrowspanÚcolspan)rÙrÚ_check_gridspec_existsÚnew_subplotspecrÓ)
ÚshapeÚlocr r
rrÖÚrowsÚcolsÚgsÚ subplotspecs
rƒÚ subplot2gridr©s[€ðX €{Ü‹eˆØ�J€Dˆ$Ü × (Ñ (¨¨d°DÓ 9€BØ×$Ñ$ S°'À7Ð$ÓK€KØ ˆ3�?‰?˜;Ñ 1¨&Ñ 1Ð1r…có>—|€
t«}|j«}|S)a

Make and return a second Axes that shares the *x*-axis. The new Axes will
overlay *ax* (or the current Axes if *ax* is *None*), and its ticks will be
on the right.
Examples
--------
:doc:`/gallery/subplots_axes_and_figures/two_scales`
)rÙÚtwinx©rÛÚax1s rƒrrÝó €ð
€zÜ
‹UˆØ
�(‰(‹*€CØ €Jr…có>—|€
t«}|j«}|S)a
Make and return a second Axes that shares the *y*-axis. The new Axes will
overlay *ax* (or the current Axes if *ax* is *None*), and its ticks will be
on the top.
Examples
--------
:doc:`/gallery/subplots_axes_and_figures/two_scales`
)rÙÚtwinyrs rƒrrírr…có$—|€
t«}|jjj}t |d«r ddlm}t||«j«St |d«r"ddlm }t||«jd«ytd«‚) zr
Launch a subplot tool window for a figure.
Returns
-------
`matplotlib.widgets.SubplotTool`
NÚconfigure_subplotsr)ÚNavigationToolbar2Ú trigger_tool)ÚToolContainerBaserøzHsubplot_tool can only be launched for figures with an associated toolbar) rÙrrÚtoolbarrŽÚmatplotlib.backend_basesrrrrrr)Ú targetfigÚtbrrs rƒÚ subplot_toolr$ýs…€ðÐÜ“Eˆ Ø × Ñ × !Ñ !× )Ñ )€B܈rÐ'Ô(Ý?ÜÐ&¨Ó+×>Ñ>Ó@Ð@Ü ��^Ô $Ý>Ü Ð
 Ó#×0Ñ0°Ô<Øäð1ó2ð 2r…có`—t«}|€|j« }|j|«y)a@
Turn the Axes box on or off on the current Axes.
Parameters
----------
on : bool or None
The new `~matplotlib.axes.Axes` box state. If ``None``, toggle
the state.
See Also
--------
:meth:`matplotlib.axes.Axes.set_frame_on`
:meth:`matplotlib.axes.Axes.get_frame_on`
N)rÙÚ get_frame_onÚ set_frame_on)ÚonrÛs rƒÚboxr)s+€ô
‹€BØ €zØ—‘Ó"Ð
"ˆØ‡O�O�BÕr…cóf—t«}|s|s|j«S|j|i|¤Ž}|S)až
Get or set the x limits of the current Axes.
Call signatures::
left, right = xlim() # return the current xlim
xlim((left, right)) # set the xlim to left, right
xlim(left, right) # set the xlim to left, right
If you do not specify args, you can pass *left* or *right* as kwargs,
i.e.::
xlim(right=3) # adjust the right leaving left unchanged
xlim(left=1) # adjust the left leaving right unchanged
Setting limits turns autoscaling off for the x-axis.
Returns
-------
left, right
A tuple of the new x-axis limits.
Notes
-----
Calling this function with no arguments (e.g. ``xlim()``) is the pyplot
equivalent of calling `~.Axes.get_xlim` on the current Axes.
Calling this function with arguments is the pyplot equivalent of calling
`~.Axes.set_xlim` on the current Axes. All arguments are passed though.
)rÙÚget_xlimÚset_xlim©rÕrÖrÛÚrets rƒÚxlimr/+ó6€ô<
‹€BÙ ™Ø�{‰{‹}ÐØ
ˆ"�+‰+�tÐ
&˜vÑ
&€CØ €Jr…cóf—t«}|s|s|j«S|j|i|¤Ž}|S)a¬
Get or set the y-limits of the current Axes.
Call signatures::
bottom, top = ylim() # return the current ylim
ylim((bottom, top)) # set the ylim to bottom, top
ylim(bottom, top) # set the ylim to bottom, top
If you do not specify args, you can alternatively pass *bottom* or
*top* as kwargs, i.e.::
ylim(top=3) # adjust the top leaving bottom unchanged
ylim(bottom=1) # adjust the bottom leaving top unchanged
Setting limits turns autoscaling off for the y-axis.
Returns
-------
bottom, top
A tuple of the new y-axis limits.
Notes
-----
Calling this function with no arguments (e.g. ``ylim()``) is the pyplot
equivalent of calling `~.Axes.get_ylim` on the current Axes.
Calling this function with arguments is the pyplot equivalent of calling
`~.Axes.set_ylim` on the current Axes. All arguments are passed though.
)rÙÚget_ylimÚset_ylimr-s rƒÚylimr4Pr0r…©Úminorc ó—t«}|€|j|¬«}|�td«‚|j||¬«}g}|€.|j |¬«}|D]}|j |«Œ||fS|j |fd|i|¤Ž}||fS)az
Get or set the current tick locations and labels of the x-axis.
Pass no arguments to return the current values without modifying them.
Parameters
----------
ticks : array-like, optional
The list of xtick locations. Passing an empty list removes all xticks.
labels : array-like, optional
The labels to place at the given *ticks* locations. This argument can
only be passed if *ticks* is passed as well.
minor : bool, default: False
If ``False``, get/set the major ticks/labels; if ``True``, the minor
ticks/labels.
**kwargs
`.Text` properties can be used to control the appearance of the labels.
.. warning::
This only sets the properties of the current ticks, which is
only sufficient if you either pass *ticks*, resulting in a
fixed list of ticks, or if the plot is static.
Ticks are not guaranteed to be persistent. Various operations
can create, delete and modify the Tick instances. There is an
imminent risk that these settings can get lost if you work on
the figure further (including also panning/zooming on a
displayed figure).
Use `~.pyplot.tick_params` instead if possible.
Returns
-------
locs
The list of xtick locations.
labels
The list of xlabel `.Text` objects.
Notes
-----
Calling this function with no arguments (e.g. ``xticks()``) is the pyplot
equivalent of calling `~.Axes.get_xticks` and `~.Axes.get_xticklabels` on
the current Axes.
Calling this function with arguments is the pyplot equivalent of calling
`~.Axes.set_xticks` and `~.Axes.set_xticklabels` on the current Axes.
Examples
--------
>>> locs, labels = xticks() # Get the current locations and labels.
>>> xticks(np.arange(0, 1, step=0.2)) # Set label locations.
>>> xticks(np.arange(3), ['Tom', 'Dick', 'Sue']) # Set text labels.
>>> xticks([0, 1, 2], ['January', 'February', 'March'],
... rotation=20) # Set text labels and properties.
>>> xticks([]) # Disable xticks.
r5zAxticks(): Parameter 'labels' can't be set without setting 'ticks'r6)rÙÚ
get_xticksrÄÚ
set_xticksÚget_xticklabelsÚ_internal_updateÚset_xticklabels©ÚticksÚlabelsr6rÖrÛÚlocsÚ
labels_outÚls rƒÚxticksrCus¿€ô@
‹€Bð
€}Ø�}‰} 5ˆ}Ó)ˆØ Ð Üð6ó7ð
7ð�}‰}˜U¨%ˆ}Ó0ˆà€JØ
€~Ø×'Ñ'¨eÐ'Ó4ˆ
Øò 'ˆAØ
× Ñ ˜vÕ &ð 'ð
�Ð Ðð(�R×'Ñ'¨ÑF°eÐF¸vÑFˆ
à �Ð Ðr…c ó—t«}|€|j|¬«}|�td«‚|j||¬«}g}|€.|j |¬«}|D]}|j |«Œ||fS|j |fd|i|¤Ž}||fS)ay
Get or set the current tick locations and labels of the y-axis.
Pass no arguments to return the current values without modifying them.
Parameters
----------
ticks : array-like, optional
The list of ytick locations. Passing an empty list removes all yticks.
labels : array-like, optional
The labels to place at the given *ticks* locations. This argument can
only be passed if *ticks* is passed as well.
minor : bool, default: False
If ``False``, get/set the major ticks/labels; if ``True``, the minor
ticks/labels.
**kwargs
`.Text` properties can be used to control the appearance of the labels.
.. warning::
This only sets the properties of the current ticks, which is
only sufficient if you either pass *ticks*, resulting in a
fixed list of ticks, or if the plot is static.
Ticks are not guaranteed to be persistent. Various operations
can create, delete and modify the Tick instances. There is an
imminent risk that these settings can get lost if you work on
the figure further (including also panning/zooming on a
displayed figure).
Use `~.pyplot.tick_params` instead if possible.
Returns
-------
locs
The list of ytick locations.
labels
The list of ylabel `.Text` objects.
Notes
-----
Calling this function with no arguments (e.g. ``yticks()``) is the pyplot
equivalent of calling `~.Axes.get_yticks` and `~.Axes.get_yticklabels` on
the current Axes.
Calling this function with arguments is the pyplot equivalent of calling
`~.Axes.set_yticks` and `~.Axes.set_yticklabels` on the current Axes.
Examples
--------
>>> locs, labels = yticks() # Get the current locations and labels.
>>> yticks(np.arange(0, 1, step=0.2)) # Set label locations.
>>> yticks(np.arange(3), ['Tom', 'Dick', 'Sue']) # Set text labels.
>>> yticks([0, 1, 2], ['January', 'February', 'March'],
... rotation=45) # Set text labels and properties.
>>> yticks([]) # Disable yticks.
r5zAyticks(): Parameter 'labels' can't be set without setting 'ticks'r6)rÙÚ
get_yticksrÄÚ
set_yticksÚget_yticklabelsr;Úset_yticklabelsr=s rƒÚyticksrIËs¿€ô~
‹€Bð
€}Ø�}‰} 5ˆ}Ó)ˆØ Ð Üð6ó7ð
7ð�}‰}˜U¨%ˆ}Ó0ˆà€JØ
€~Ø×'Ñ'¨eÐ'Ó4ˆ
Øò 'ˆAØ
× Ñ ˜vÕ &ð 'ð
�Ð Ðð(�R×'Ñ'¨ÑF°eÐF¸vÑFˆ
à �Ð Ðr…c óB—t«}t|t«s td«‚t d„||||fD««r:|s8|j
j
«}|j
j«}||fS|€ td«‚|j|f|||dœ|¤Ž\}}||fS)a
Get or set the radial gridlines on the current polar plot.
Call signatures::
lines, labels = rgrids()
lines, labels = rgrids(radii, labels=None, angle=22.5, fmt=None, **kwargs)
When called with no arguments, `.rgrids` simply returns the tuple
(*lines*, *labels*). When called with arguments, the labels will
appear at the specified radial distances and angle.
Parameters
----------
radii : tuple with floats
The radii for the radial gridlines
labels : tuple with strings or None
The labels to use at each radial gridline. The
`matplotlib.ticker.ScalarFormatter` will be used if None.
angle : float
The angular position of the radius labels in degrees.
fmt : str or None
Format string used in `matplotlib.ticker.FormatStrFormatter`.
For example '%f'.
Returns
-------
lines : list of `.lines.Line2D`
The radial gridlines.
labels : list of `.text.Text`
The tick labels.
Other Parameters
----------------
**kwargs
*kwargs* are optional `.Text` properties for the labels.
See Also
--------
.pyplot.thetagrids
.projections.polar.PolarAxes.set_rgrids
.Axis.get_gridlines
.Axis.get_ticklabels
Examples
--------
::
# set the locations of the radial gridlines
lines, labels = rgrids( (0.25, 0.5, 1.0) )
# set the locations and labels of the radial gridlines
lines, labels = rgrids( (0.25, 0.5, 1.0), ('Tom', 'Dick', 'Harry' ))
z"rgrids only defined for polar Axesc3ó$K—|]}|du–—Œ
y­wr~r)rzÚps rƒr|zrgrids.<locals>.<genexpr>d sèø€Ò
:˜ˆ1�Œ9Ñ
:ùr}z7'radii' cannot be None when other parameters are passed)r?ÚangleÚfmt)
rÙr„r$r¢rÚyaxisÚ
get_gridlinesÚget_ticklabelsrÄÚ
set_rgrids)Úradiir?rMrNrÖrÛÚ lines_outrAs rƒÚrgridsrU s¹€ôB
‹€BÜ �bœ)Ô $ÜÐ?Ó@Ð@Ü
Ñ
:˜u f¨e°SÐ9Ô
:Ô:Á6Ø"$§(¡(×"8Ñ"8Ó":ˆ Ø!#§¡×!8Ñ!8Ó!:ˆ
ð �jÐ Ð ð
ˆÜÐQÓRÐRà - §
¡
Ø ð!BØ ¨°3ñ!BØ:@ñ!Bш �:à �jÐ Ð r…c ó>—t«}t|t«s td«‚t d„|||fD««r:|s8|j
j
«}|j
j«}||fS|€ td«‚|j|f||dœ|¤Ž\}}||fS)aé
Get or set the theta gridlines on the current polar plot.
Call signatures::
lines, labels = thetagrids()
lines, labels = thetagrids(angles, labels=None, fmt=None, **kwargs)
When called with no arguments, `.thetagrids` simply returns the tuple
(*lines*, *labels*). When called with arguments, the labels will
appear at the specified angles.
Parameters
----------
angles : tuple with floats, degrees
The angles of the theta gridlines.
labels : tuple with strings or None
The labels to use at each radial gridline. The
`.projections.polar.ThetaFormatter` will be used if None.
fmt : str or None
Format string used in `matplotlib.ticker.FormatStrFormatter`.
For example '%f'. Note that the angle in radians will be used.
Returns
-------
lines : list of `.lines.Line2D`
The theta gridlines.
labels : list of `.text.Text`
The tick labels.
Other Parameters
----------------
**kwargs
*kwargs* are optional `.Text` properties for the labels.
See Also
--------
.pyplot.rgrids
.projections.polar.PolarAxes.set_thetagrids
.Axis.get_gridlines
.Axis.get_ticklabels
Examples
--------
::
# set the locations of the angular gridlines
lines, labels = thetagrids(range(45, 360, 90))
# set the locations and labels of the angular gridlines
lines, labels = thetagrids(range(45, 360, 90), ('NE', 'NW', 'SW', 'SE'))
z&thetagrids only defined for polar Axesc3ó$K—|]}|du–—Œ
y­wr~rrys rƒr|zthetagrids.<locals>.<genexpr>¯ sèø€Ò
<˜Uˆ5�DŒ=Ñ
<ùr}z8'angles' cannot be None when other parameters are passed)r?rN)
rÙr„r$r¢rÚxaxisÚ
get_ticklinesrQrÄÚset_thetagrids)Úanglesr?rNrÖrÛrTrAs rƒÚ
thetagridsr\o sµ€ôz
‹€BÜ �bœ)Ô $ÜÐCÓDÐDÜ
Ñ
< v¨v°sÐ&;Ô
<Ô<ÁVØ"$§(¡(×"8Ñ"8Ó":ˆ Ø!#§¡×!8Ñ!8Ó!:ˆ
ð �jÐ Ð ð
ˆÜÐRÓSÐSà 1 × 1Ñ 1°&ð!<Ø9?ÀSñ!<à4:ñ!<ш �:ð �jÐ Ð r…z3.7)ÚpendingcóL—hd£}t«D�cgc]}||vr|‘Œ
c}Scc}w)z<
Get a sorted list of all of the plotting commands.
>Úginputr»r¿rîÚwaitforbuttonpressr·)Ú_get_pyplot_commands)ÚNON_PLOT_COMMANDSÚnames rƒÚget_plot_commandsrd» s7€ò
4Ðô2Ó3ö .�TØÐ,Ñ,ò
ò .ð.ùò .s‘
!c󤇇—dddht£Štjt«Št ˆˆfd„t «j
«D««S)NÚ colormapsÚcolorsrdc3óª•K—|]J\}}|jd«s4|‰vr0tj|«rtj|«‰ur|–—ŒLy­w)rÍN)r¡r£Ú
isfunctionÚ getmodule)rzrcr]ÚexcludeÚ this_modules €€rƒr|z'_get_pyplot_commands.<locals>.<genexpr>Í sQøèø€ò6Ù��sØ�‰˜sÔ#¨°GÑ(;Ü×!Ñ! #Ô&Ü× Ñ  Ó%¨Ñ4ô
ñ6ùsƒAA)rfr£rjrdr«r%Úitems)rkrls@@rƒraraÇ sKù€ð˜HÐ&9ÐF¼IÐF€GÜ×#Ñ#Ô$5Ó6€KÜ ô6Ü%›iŸo™oÓ/ô6ó 6ð6r…c ót—|€t«}|€ td«‚t«j|f||dœ|¤Ž}|S)NzŒNo mappable was found to use for colorbar creation. First define a mappable such as an image (with imshow) or a contour set (with contourf).)ÚcaxrÛ)Úgcir¢rÙÚcolorbar)ÚmappablerorÛrÖr.s rƒrqrq× sN€ðÐÜ“5ˆØ Ð Üð 1ó2ð
2ð Œ#‹%�.‰.˜Ð
< s¨rÑ
<°VÑ
<€CØ €Jr…cóV—t«}|€ td«‚|j||«y)a[
Set the color limits of the current image.
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
`~.ScalarMappable.set_clim` on every image, for example::
for im in gca().get_images():
im.set_clim(0, 0.5)
Nz1You must first define an image, e.g., with imshow)rpr¢Úset_clim)ÚvminÚvmaxr1s rƒÚclimrwé s*€ô
‹€BØ €zÜÐNÓOÐOà‡K�K��dÕr…cóÊ—|€ td}t|t«r|Stjt t «|¬«|€ t |St |j|«S)ah
Get a colormap instance, defaulting to rc values if *name* is None.
Parameters
----------
name : `~matplotlib.colors.Colormap` or str or None, default: None
If a `.Colormap` instance, it will be returned. Otherwise, the name of
a colormap known to Matplotlib, which will be resampled by *lut*. The
default, None, means :rc:`image.cmap`.
lut : int or None, default: None
If *name* is not already a Colormap instance and *lut* is not None, the
colormap will be resampled to have *lut* entries in the lookup table.
Returns
-------
Colormap
z
image.cmap)rc)r
r„r,r Ú
check_in_listr«r*Ú resampled)rcÚluts rƒÚget_cmapr|þ s]€ð$ €|ܘ Ñ%ˆÜ�$œÔ!؈ Ü×Ñ”vœjÓ)°Õ5Ø
€{ܘ$ÑÐä˜$Ñ×)Ñ)¨#Ó.Ð.r…có„—t|«}td|j¬«t«}|�|j |«yy)a
Set the default colormap, and applies it to the current image if any.
Parameters
----------
cmap : `~matplotlib.colors.Colormap` or str
A colormap instance or the name of a registered colormap.
See Also
--------
colormaps
get_cmap
Úimage)ÚcmapN)r|rRrcrpÚset_cmap)rr1s rƒr€r€
s8€ô �D‹>€Dä€w�T—Y‘YÕÜ ‹€Bà €~Ø
� ‰ �DÕðr…cóB—tjj||«Sr~)rµr~Úimread)rVrs rƒr‚r‚2
s€ô × Ñ × "Ñ " 5¨&Ó 1Ð1r…c óF—tjj||fi|¤Žyr~)rµr~Úimsave)rVÚarrrÖs rƒr„r„9
s€ô×Ñ×јE 3Ñ1¨&Ó1r…c óþ—tj|«}|dk(r t«}n9|�t|«rd}n t |«}t ||¬«}|j
d«}|j|fi|¤Ž}t|«|S)u
Display a 2D array as a matrix in a new figure window.
The origin is set at the upper left hand corner.
The indexing is ``(row, column)`` so that the first index runs vertically
and the second index runs horizontally in the figure:
.. code-block:: none
A[0, 0] ⋯ A[0, M-1]
â‹® â‹®
A[N-1, 0] ⋯ A[N-1, M-1]
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.
Parameters
----------
A : 2D array-like
The matrix to be displayed.
fignum : None or int
If *None*, create a new, appropriately sized figure window.
If 0, use the current Axes (creating one if there is none, without ever
adjusting the figure size).
Otherwise, create a new Axes on the figure with the given number
(creating it at the appropriate size if it does not exist, but not
adjusting the figure size otherwise). Note that this will be drawn on
top of any preexisting Axes on the figure.
Returns
-------
`~matplotlib.image.AxesImage`
Other Parameters
----------------
**kwargs : `~matplotlib.axes.Axes.imshow` arguments
rN)r€)g333333Ã?g
×£p=
·?çÍÌÌÌÌÌè?r‡) ÚnpÚ
asanyarrayrÙr©rrûrÔÚmatshowÚsci)ÚAÚfignumrÖrÛr€rr1s rƒrŠrŠ@
sz€ôX �
‰
�aÓ€AØ
�‚{Ü
‹U‰à Ð ¤-°Ô"7à‰Gô  “lˆGÜ�V WÔ-ˆØ
�\‰\Ð4Ó
5ˆØ ˆ�‰�AÑ ˜Ñ €B܈„GØ
€Ir…cóÒ—t«j«r2t«}t|t«s$t j dd¬«n td¬«}|j|i|¤ŽS)a 
Make a polar plot.
call signature::
polar(theta, r, [fmt], **kwargs)
This is a convenience wrapper around `.pyplot.plot`. It ensures that the
current Axes is polar (or creates one if needed) and then passes all parameters
to ``.pyplot.plot``.
.. note::
When making polar plots using the :ref:`pyplot API <pyplot_interface>`,
``polar()`` should typically be the first command because that makes sure
a polar Axes is created. Using other commands such as ``plt.title()``
before this can lead to the implicit creation of a rectangular Axes, in which
case a subsequent ``polar()`` call will fail.
z3.10a There exists a non-polar current Axes. Therefore, the resulting plot from 'polar()' is non-polar. You likely should call 'polar()' before any other pyplot plotting commands. Support for this scenario is deprecated in %(since)s and will raise an error in %(removal)s)r«rã)râ) rÙÚget_axesrÙr„r$r Úwarn_deprecatedr×Úplot)rÕrÖrÛs rƒrãrã}
sY€ô( ƒu‡~�~ÔÜ
‹UˆÜ˜"œiÔ(Ü × Ñ Øð=ö
ô˜WÔ
%ˆØ ˆ2�7‰7�DÐ #˜FÑ #Ð#r…Úbackend_fallbackÚwebaggÚnbaggrß)Ú colorizerc
 óN—t«j|f||||||||| |
dœ
| ¤ŽS)N)
ÚxoÚyoÚalphaÚnormrrurvÚoriginÚresizer•)rÙÚfigimage) ÚXr—r˜r™ršrrurvr›rœr•rÖs rƒr�r�µ
sI€ð Œ3‹5�>‰>Ø ð
à
Ø
ØØ
Ø
Ø
Ø
ØØØñ
ð ñ
ð
r…c ó@—t«j|||fd|i|¤ŽS©NÚfontdict)rÙÚtext©ÚxÚyrºr¡rÖs rƒÚfigtextr¦Ö
ó%€ð Œ3‹5�:‰:�a˜˜AÑ ;¨Ð ;°FÑ ;Ð;r…có2—t«j«Sr~)rÙrÙrr…rƒrÙrÙÞ
s€ä ‹5�9‰9‹;Ðr…có2—t«j«Sr~)rÙÚ_gcirr…rƒrprpä
s€ä ‹5�:‰:‹<Ðr…écó@—t«j||||||¬«S)N©ÚnÚtimeoutÚ show_clicksÚ mouse_addÚ mouse_popÚ
mouse_stop)rÙr_r­s rƒr_r_ê
s.€ô ‹5�<‰<Ø
ØØØØØð
ó ðr…cóB—t«j||||||¬«y)N©ÚleftÚbottomÚrightÚtopÚwspaceÚhspace)rÙÚsubplots_adjustrµs rƒr¼r¼þ
s&€ôƒE×ÑØ
˜&¨°3¸vÈfðõr…c ó8—t«j|fi|¤ŽSr~)rÙÚsuptitle)ÚtrÖs rƒr¾r¾
s€à Œ3‹5�>‰>˜!Ñ &˜vÑ &Ð&r…gHáz®Gñ?©ÚpadÚh_padÚw_padÚrectcó>—t«j||||¬«y)NrÀ)rÙÚ tight_layoutrÀs rƒrÆrÆ s€ôƒE×ј3 e°5¸tÐÕDr…có6—t«j|¬«S)N©r¯)rÙr`rÈs rƒr`r` s€ä ‹5× #Ñ #¨GÐ #Ó 4Ð4r…)Údatac óH—t«j|fi|�d|ini¤|¤ŽS©NrÉ)rÙÚacorr)r¤rÉrÖs rƒrÌrÌ% s,€ð Œ3‹5�;‰;�qÑ S¨tÐ/?˜f d™^ÀRÐ SÈFÑ SÐSr…c óT—t«j|f|||||dœ|�d|ini¤|¤ŽS©N)ÚFsÚFcÚwindowÚpad_toÚsidesrÉ)rÙÚangle_spectrum©r¤rÏrÐrÑrÒrÓrÉrÖs rƒrÔrÔ- óQ€ð Œ3‹5× Ñ Ø ð à
Ø
ØØØñ
ð"Ð-ˆF�D‰>°2ð ð ñ ð r…c óF—t«j||f|||||dœ|¤ŽS)N)ÚxytextÚxycoordsÚ
textcoordsÚ
arrowpropsÚannotation_clip)rÙÚannotate)r¢ÚxyrØrÙrÚrÛrÜrÖs rƒrÝrÝF s?€ð Œ3‹5�>‰>Ø Ø
ð ðØØØØ'ñ ð ñ ð r…c ó>—t«j||||fi|¤ŽSr~)rÙÚarrow)r¤r¥ÚdxÚdyrÖs rƒràrà^ s €à Œ3‹5�;‰;�q˜!˜R Ñ . vÑ .Ð.r…Úbothcó<—t«j|||¬«y)N©ÚenableÚaxisÚtight)rÙÚ autoscalerås rƒréréd s€ô ƒE‡O�O˜6¨°E€OÕ:r…c ó>—t«jd|||dœ|¤ŽS)N)r¥ÚxminÚxmaxr)rÙÚaxhline)r¥rërìrÖs rƒrírín ó!€à Œ3‹5�=‰=Ð =˜1 4¨dÑ =°fÑ =Ð=r…c ó@—t«j||f||dœ|¤ŽS)N)rërì)rÙÚaxhspan)ÚyminÚymaxrërìrÖs rƒrðrðt ó%€ð Œ3‹5�=‰=˜˜tÐ D¨$°TÑ D¸VÑ DÐDr…)Úemitc ó<—t«j|fd|i|¤ŽS)Nrô)rÙrç)rÕrôrÖs rƒrçrç| s!€ð Œ3‹5�:‰:�cÑ / Ð /¨Ñ /Ð/r…)Úslopec ó>—t«j|f||dœ|¤ŽS)N)Úxy2rö)rÙÚaxline)Úxy1rørörÖs rƒrùrùˆ s#€ð Œ3‹5�<‰<˜Ð < ¨EÑ <°VÑ <Ð<r…c ó>—t«jd|||dœ|¤ŽS)N)r¤rñròr)rÙÚaxvline)r¤rñròrÖs rƒrürü” rîr…c ó@—t«j||f||dœ|¤ŽS)N)rñrò)rÙÚaxvspan)rërìrñròrÖs rƒrþrþš rór…Úcenter)ÚalignrÉc óR—t«j||f|||dœ|�d|ini¤|¤ŽS)N)Úwidthr·rrÉ)rÙÚbar)r¤Úheightrr·rrÉrÖs rƒrr¢ sN€ð Œ3‹5�9‰9Ø Øð ðØØñ  ð "Ð-ˆF�D‰>°2ð
 ð ñ ðr…cóF—t«j|i|�d|ini¤|¤ŽSrË)rÙÚbarbs©rÉrÕrÖs rƒrr¹ s+€à Œ3‹5�;‰;˜Ð W°4Ð3C &¨$¡ÈÐ WÐPVÑ WÐWr…c óR—t«j||f|||dœ|�d|ini¤|¤ŽS)N)rr¶rrÉ)rÙÚbarh)r¥rrr¶rrÉrÖs rƒr r ¿ sN€ð Œ3‹5�:‰:Ø Ø
ð ðØ
Øñ  ð "Ð-ˆF�D‰>°2ð
 ð ñ ðr…z%gÚedge)rNÚ
label_typeÚpaddingc óB—t«j|f||||dœ|¤ŽS)N)r?rNr r )rÙÚ bar_label)Ú containerr?rNr r rÖs rƒrrÖ s7€ð Œ3‹5�?‰?Øð àØ ØØñ  ð ñ
 ðr…Úverticalcóð—t«j|fid|“d|“d|“d|“d|“d|“d|“d|“d | “d
|
“d | “d | “d
|
“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“|�d|i¤ŽSi¤ŽS)NÚnotchÚsymÚvertÚ orientationÚwhisÚ positionsÚwidthsÚ patch_artistÚ bootstrapÚ usermediansÚconf_intervalsÚmeanlineÚ showmeansÚshowcapsÚshowboxÚ
showfliersÚboxpropsÚ tick_labelsÚ
flierpropsÚ medianpropsÚ meanpropsÚcappropsÚ whiskerpropsÚ manage_ticksÚ autorangeÚzorderÚ capwidthsÚlabelrÉ)rÙÚboxplot)r¤rrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-rÉs rƒr.r.ë sN€ðD Œ3‹5�=‰=Ø ò áð ñ
ð ñð  ñ
 ð  ñ ð
 ñð ñð ñ"ð ñð ñ ð ñ&ð ñð ñð ñð ñ ð! ñ"ð# ñ$ð% ñ& ð' ñ(ð) ñ* ð+ ñ,ð- ñ.ð/ ñ0"ð1 ñ2"ð3 ñ4ð5 ñ6ð7 ñ8ð9 ñ:Ø!Ð-ˆF�Dˆ>ñ= ðð<46ñ= ðr…c óJ—t«j||fi|�d|ini¤|¤ŽSrË)rÙÚ broken_barh)ÚxrangesÚyrangerÉrÖs rƒr0r00 s;€ð Œ3‹5× Ñ Ø�ñ Ø.2Ð.>˜V T™NÀBð ØKQñ ðr…c ó<—t«j|fd|i|¤ŽS)NÚlevels)rÙÚclabel)ÚCSr4rÖs rƒr5r5> s€à Œ3‹5�<‰<˜Ñ 4 6Ð 4¨VÑ 4Ð4r…éÚdefaultc 
ó^—t«j||f|||||||| |
dœ | �d| ini¤| ¤ŽS)N) ÚNFFTrÏrÐÚdetrendrÑÚnoverlaprÒrÓÚ
scale_by_freqrÉ)rÙÚcohere)
r¤r¥r:rÏrÐr;rÑr<rÒrÓr=rÉrÖs
rƒr>r>D s`€ð& Œ3‹5�<‰<Ø Ø ð ðØ
Ø
ØØØØØØ#ñ ð"Ð-ˆF�D‰>°2ð ð ñ ðr…cóx—t«j|i|�d|ini¤|¤Ž}|j� t|«|SrË)rÙÚcontourÚ_Ar‹©rÉrÕrÖÚ__rets rƒr@r@i sJ€à ŒC‹E�M‰MØ
ð
Ø$(Ð$4�6˜4‘.¸"ð
ØAGñ
€Eð
‡x�xÐÜ ˆEŒ
Ø €Lr…cóx—t«j|i|�d|ini¤|¤Ž}|j� t|«|SrË)rÙÚcontourfrAr‹rBs rƒrErEt sJ€à ŒC‹E�N‰NØ
ð
Ø$(Ð$4�6˜4‘.¸"ð
ØAGñ
€Eð
‡x�xÐÜ ˆEŒ
Ø €Lr…c  ó`—t«j||f|||||||| |
| dœ
| �d| ini¤|
¤ŽS©N)
r:rÏrÐr;rÑr<rÒrÓr=Ú return_linerÉ)rÙÚcsd)r¤r¥r:rÏrÐr;rÑr<rÒrÓr=rHrÉrÖs rƒrIrI sc€ð( Œ3‹5�9‰9Ø Ø ð ðØ
Ø
ØØØØØØ#Øñ ð"Ð-ˆF�D‰>°2ð ð ñ ðr…)Ú
complementaryrÚcompressrÉc óR—t«j|f||||dœ|�d|ini¤|¤ŽS)N)ÚweightsrJrrKrÉ)rÙÚecdf)r¤rMrJrrKrÉrÖs rƒrNrN¦ sL€ð Œ3‹5�:‰:Ø ð àØ#ØØñ  ð "Ð-ˆF�D‰>°2ð
 ð ñ ðr…c óf—t«j||f|||||||| |
| | |
|dœ
|�d|ini¤|¤ŽS)N)
ÚyerrÚxerrrNÚecolorÚ
elinewidthÚcapsizeÚ barsaboveÚlolimsÚuplimsÚxlolimsÚxuplimsÚ
erroreveryÚcapthickrÉ)rÙÚerrorbar)r¤r¥rPrQrNrRrSrTrUrVrWrXrYrZr[rÉrÖs rƒr\r\½ sl€ð* Œ3‹5�>‰>Ø Ø ð ðØ
Ø ØØØØØØØØØØñ ð "Ð-ˆF�D‰>°2ð! ð" ñ# ðr…c óX—t«j|f|||||||dœ|�d|ini¤| ¤ŽS)N)rÚ lineoffsetsÚ linelengthsÚ
linewidthsrgr™Ú
linestylesrÉ)rÙÚ eventplot)
rrr^r_r`rgr™rarÉrÖs
rƒrbrbè sU€ð Œ3‹5�?‰?Øð àØØØØØØñ ð"Ð-ˆF�D‰>°2ð ð ñ ð r…cóF—t«j|i|�d|ini¤|¤ŽSrË)rÙÚfillrs rƒrdrd
s*€à Œ3‹5�:‰:�tÐ V°$Ð2B ¨¡ÈÐ VÈvÑ VÐVr…c óT—t«j||f||||dœ|�d|ini¤|¤ŽS)N)Úy2ÚwhereÚ interpolateÚsteprÉ)rÙÚ fill_between)r¤Úy1rfrgrhrirÉrÖs rƒrjrj
sS€ð Œ3‹5× Ñ Ø Ø
ð ð ØØØ
ñ
ð"Ð-ˆF�D‰>°2ð ð ñ ð r…c óT—t«j||f||||dœ|�d|ini¤|¤ŽS)N)Úx2rgrirhrÉ)rÙÚ
fill_betweenx)r¥Úx1rmrgrirhrÉrÖs rƒrnrn$
sS€ð Œ3‹5× Ñ Ø Ø
ð ð ØØ
Øñ
ð"Ð-ˆF�D‰>°2ð ð ñ ð r…c ó@—t«jd|||dœ|¤Žy)N)ÚvisibleÚwhichrçr)rÙÚgrid)rqrrrçrÖs rƒrsrs=
s €ð„CƒE‡J�JÐA�w e°$ÑA¸&ÓAr…ÚlinearÚfacec óÊ—t«j||fid|“d|“d|“d|“d|“d|“d|“d| “d |
“d
| “d | “d |
“d
|“d|“d|“d|“d|“|�d|ini¤|¤Ž}t|«|S)NÚCÚgridsizeÚbinsÚxscaleÚyscaleÚextentrršrurvr™r`Ú
edgecolorsÚreduce_C_functionÚmincntÚ marginalsr•rÉ)rÙÚhexbinr‹)r¤r¥rwrxryrzr{r|rršrurvr™r`r}r~rr€r•rÉrÖrCs rƒr�r�H
sì€ð2
ŒC‹E�L‰LØ Ø ò
ñ ð
ñð 
ñ
ð 
ñ ð

ñð
ñð
ñð
ñð
ñð
ñð
ñð
ñð
ñð
ñ ,ð!
ñ"ð#
ñ$ð%
ñ&Ø!Ð-ˆF�D‰>°2ð)
ð* ñ+
€Eô.ˆ„JØ €Lr…c óf—t«j|f||||||||| |
| | |
|dœ|�d|ini¤|¤ŽS)N)ryÚrangeÚdensityrMÚ
cumulativer·ÚhisttyperrÚrwidthÚlogÚcolorr-ÚstackedrÉ)rÙÚhist)r¤ryrƒr„rMr…r·r†rrr‡rˆr‰r-rŠrÉrÖs rƒr‹r‹}
sj€ð2 Œ3‹5�:‰:Ø ð à
ØØØØØØØØØØ ØØØñ ð "Ð-ˆF�D‰>°2ð! ð" ñ# ðr…)rÚbaselinerdrÉc óR—t«j|f||||dœ|�d|ini¤|¤ŽS)N)ÚedgesrrŒrdrÉ)rÙÚstairs)ÚvaluesrŽrrŒrdrÉrÖs rƒr�r�¬
sL€ð Œ3‹5�<‰<Øð àØØØ
ñ  ð "Ð-ˆF�D‰>°2ð
 ð ñ ðr…ršc
óx—t«j||f||||||dœ|�d|ini¤| ¤Ž}
t|
d«|
S)N)ryrƒr„rMÚcminÚcmaxrÉrŠ)rÙÚhist2dr‹) r¤r¥ryrƒr„rMr’r“rÉrÖrCs rƒr”r”Ã
sf€ð
ŒC‹E�L‰LØ Ø ð
ðØØØØ
Ø
ñ
ð"Ð-ˆF�D‰>°2ð
ð ñ
€Eôˆˆb‰ „NØ €Lr…c óT—t«j|||f|||dœ|�d|ini¤|¤ŽS©N)rgrar-rÉ)rÙÚhlines)r¥rërìrgrar-rÉrÖs rƒr—r—â
óQ€ð Œ3‹5�<‰<Ø Ø Ø ð ðØØñ
ð"Ð-ˆF�D‰>°2ð ð ñ ð r…ç@)ÚaspectÚ
interpolationr™rurvr•r›r|Úinterpolation_stageÚ
filternormÚ filterradÚresampleÚurlrÉc ó‚—t«j|f||||||||| |
| | |
||dœ|�d|ini¤|¤Ž}t|«|S)N)rršršr›r™rurvr•r›r|rœr�ržrŸr rÉ)rÙÚimshowr‹)ržrršršr›r™rurvr•r›r|rœr�ržrŸr rÉrÖrCs rƒr¢r¢û
sx€ð,
ŒC‹E�L‰LØ ð
à
Ø
ØØ#ØØ
Ø
ØØØØ/ØØØØ ñ!
ð""Ð-ˆF�D‰>°2ð#
ð$ ñ%
€Eô(ˆ„JØ €Lr…có6—t«j|i|¤ŽSr~)rÙrÎrÔs rƒrÎrÎ*ó€à Œ3‹5�<‰<˜Ð ( Ñ (Ð(r…c ó>—t«jd||dœ|¤Žy)N)rçrèr)rÙÚlocator_params)rçrèrÖs rƒr¦r¦0s €ð„CƒE×ÑÐ:˜d¨%Ñ:°6Ó:r…có6—t«j|i|¤ŽSr~)rÙÚloglogrÔs rƒr¨r¨8r¤r…c
óV—t«j|f||||||dœ|�d|ini¤|¤ŽS)N)rÏrÐrÑrÒrÓrnrÉ)rÙÚmagnitude_spectrum) r¤rÏrÐrÑrÒrÓrnrÉrÖs rƒrªrª>sT€ð $Œ3‹5× #Ñ #Ø ð
à
Ø
ØØØØñ
ð"Ð-ˆF�D‰>°2ð
ð ñ
ð
r…©r¤r¥rècó:—t«j||||dœŽS)Nr«)rÙÚmargins)r¤r¥rèr­s rƒr­r­Ys€ð Œ3‹5�=‰=˜' Q¨!°5Ò 9Ð9r…có4—t«j«yr~)rÙÚminorticks_offrr…rƒr¯r¯ds€äƒE×ÑÕr…có4—t«j«yr~)rÙÚ
minorticks_onrr…rƒr±r±js€äƒE×ÑÕr…)Úshadingr™ršrrurvr•rÉc óp—t«j||||||||dœ|�d|ini¤| ¤Ž}
t|
«|
S)N)r²r™ršrrurvr•rÉ)rÙÚpcolorr‹) r²r™ršrrurvr•rÉrÕrÖrCs rƒr´r´ps[€ð
ŒC‹E�L‰LØ
ØØØ
Ø
Ø
Ø
Øñ
ð"Ð-ˆF�D‰>°2ð
ð ñ
€Eôˆ„JØ €Lr…) r™ršrrurvr•r²Ú antialiasedrÉc ór—t«j| ||||||||dœ|�d|ini¤|
¤Ž} t| «| S)N)r™ršrrurvr•r²rµrÉ)rÙÚ
pcolormeshr‹) r™ršrrurvr•r²rµrÉrÕrÖrCs rƒr·r·Žs`€ð
ŒC‹E× Ñ Ø
ØØ
Ø
Ø
Ø
ØØØñ
ð"Ð-ˆF�D‰>°2ð
ð ñ
€Eôˆ„JØ €Lr…c óT—t«j|f|||||dœ|�d|ini¤|¤ŽSrÎ)rÙÚphase_spectrumrÕs rƒr¹r¹®rÖr…)Ú normalizeÚhatchrÉcó®—t«j|fid|“d|“d|“d|“d|“d|“d|“d|“d | “d
|
“d | “d | “d
|
“d|“d|“d|“d|“|�d|i¤ŽSi¤ŽS)NÚexploder?rgÚautopctÚ pctdistanceÚshadowÚ
labeldistanceÚ
startangleÚradiusÚ counterclockÚ
wedgepropsÚ textpropsrÿÚframeÚ rotatelabelsrºr»rÉ)rÙÚpie)r¤r½r?rgr¾r¿rÀrÁrÂrÃrÄrÅrÆrÿrÇrÈrºr»rÉs rƒrÉrÉÇs߀ð. Œ3‹5�9‰9Ø ò áð ñð ñð  ñ
ð  ñ  ð
 ñð ñ$ð ñð ñð ñ"ð ñð ñð ñð ñð ñ "ð! ñ"ð# ñ$Ø!Ð-ˆF�Dˆ>ñ' ðð&46ñ' ðr…)ÚscalexÚscaleyrÉcóL—t«j|||dœ|�d|ini¤|¤ŽS)N)rÊrËrÉ)rÙr‘)rÊrËrÉrÕrÖs rƒr‘r‘ösA€ð Œ3‹5�:‰:Ø
ØØñ ð"Ð-ˆF�D‰>°2ð  ð
ñ  ðr…c óT—t«j||f||||dœ|�d|ini¤|¤ŽS)N)rNÚtzÚxdateÚydaterÉ)rÙÚ plot_date)r¤r¥rNrÎrÏrÐrÉrÖs rƒrÑrÑsQ€ð Œ3‹5�?‰?Ø Ø ð ð
Ø
ØØñ
ð"Ð-ˆF�D‰>°2ð ð ñ ð r…c  ó^—t«j|f||||||||| |
dœ
| �d| ini¤| ¤ŽSrG)rÙÚpsd)
r¤r:rÏrÐr;rÑr<rÒrÓr=rHrÉrÖs
rƒrÓrÓ!s^€ð& Œ3‹5�9‰9Ø ð à
Ø
Ø
ØØØØØØ#Øñ ð"Ð-ˆF�D‰>°2ð ð ñ ðr…có`—t«j|i|�d|ini¤|¤Ž}t|«|SrË)rÙÚquiverr‹rBs rƒrÕrÕFs@€à ŒC‹E�L‰LØ
ð
Ø$(Ð$4�6˜4‘.¸"ð
ØAGñ
€Eôˆ„JØ €Lr…c ó@—t«j|||||fi|¤ŽSr~)rÙÚ quiverkey)ÚQržÚYÚUr-rÖs rƒr×r×Ps$€ð Œ3‹5�?‰?˜1˜a  A uÑ 7°Ñ 7Ð7r…)r}r•Ú
plotnonfiniterÉc  ó~—t«j||f|||||||| |
| | |
dœ |�d|ini¤|¤Ž}t|«|S)N) rºÚcÚmarkerrršrurvr™r`r}r•rÛrÉ)rÙÚscatterr‹)r¤r¥rºrÝrÞrršrurvr™r`r}r•rÛrÉrÖrCs rƒrßrßXst€ð(
ŒC‹E�M‰MØ Ø ð
ð Ø
ØØ
Ø
Ø
Ø
ØØØØØ#ñ
ð"Ð-ˆF�D‰>°2ð
ð ñ!
€Eô$ˆ„JØ €Lr…có6—t«j|i|¤ŽSr~)rÙÚsemilogxrÔs rƒráráƒó€à Œ3‹5�>‰>˜4Ð * 6Ñ *Ð*r…có6—t«j|i|¤ŽSr~)rÙÚsemilogyrÔs rƒrärä‰râr…c óˆ—t«j|f||||||||| |
| | |
||dœ|�d|ini¤|¤Ž}t|d«|S)N)r:rÏrÐr;rÑr<rÚxextentrÒrÓr=ÚmodernrurvrÉrŠ)rÙÚspecgramr‹)r¤r:rÏrÐr;rÑr<rrærÒrÓr=rçrnrurvrÉrÖrCs rƒrèrè�s|€ð0
ŒC‹E�N‰NØ ð
à
Ø
Ø
ØØØØ
ØØØØ#Ø
ØØ
Ø
ñ!
ð""Ð-ˆF�D‰>°2ð#
ð$ ñ%
€Eô(ˆˆb‰ „NØ €Lr…c ó~—t«j|f|||||dœ|¤Ž}t|t«r t |«|S)N)Ú precisionrÞÚ
markersizeršr›)rÙÚspyr„r%r‹)ÚZrêrÞrëršr›rÖrCs rƒrìrìÀsP€ð
ŒC‹E�I‰IØ ð
àØØØØñ

ð ñ
€Eô�%Ô,Ô-Ü ˆEŒ
Ø €Lr…rÚzero)r?rgr»rŒrÉcóX—t«j|g|¢­||||dœ|�d|ini¤|¤ŽS)N)r?rgr»rŒrÉ)rÙÚ stackplot)r¤r?rgr»rŒrÉrÕrÖs rƒrðrðÙsV€ð Œ3‹5�?‰?Ø ð à
ñ ðØØØñ
ð"Ð-ˆF�D‰>°2ð ð ñ ð r…)ÚlinefmtÚ markerfmtÚbasefmtr·r-rrÉc
óT—t«j|||||||dœ|�d|i¤ŽSi¤ŽS)N)rñròrór·r-rrÉ)rÙÚstem)rñròrór·r-rrÉrÕs rƒrõrõêsP€ð Œ3‹5�:‰:Ø
ØØØØØØñ ð"Ð-ˆF�Dˆ>ñ ð ð46ñ ð r…Úpre)rgrÉcóT—t«j||g|¢­d|i|�d|ini¤|¤ŽS)NrgrÉ)rÙri)r¤r¥rgrÉrÕrÖs rƒririsR€ð Œ3‹5�:‰:Ø Ø ð ð
ò ðð  ð
"Ð-ˆF�D‰>°2ð  ð ñ
 ðr…có–—t«j||||f|||||| |
| | |
||||dœ|�d|ini¤Ž}t|j«|S)N)r„rgr‰rršÚ arrowsizeÚ
arrowstyleÚ minlengthÚ transformr+Ú start_pointsÚ maxlengthÚintegration_directionÚbroken_streamlinesrÉ)rÙÚ
streamplotr‹Úlines)r¤r¥ÚuÚvr„rgr‰rršrùrúrûrür+rýrþrÿrrÉrCs rƒrrs}€ð.
ŒC‹E× Ñ Ø Ø Ø Ø ð