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

1954 lines
154 KiB
Plaintext
Raw Normal View History

Ë
†RjÕHãó.1UdZddlmZddlmZmZddlmZddlZddl 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€mZmZmƒZƒdd2l„m…Z…eRd3«Z†ePd4«Z‡ePd5«Zˆdd6l@m‰Z‰dd7lŠmZmŒZŒdd8lmŽZŽmZdd9lumZmZmZdd:lum“Z“dd;l„m”Z”m•Z•mZd<d=l—m˜Z˜m™Z™mšZšmZmœZœmZmž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?„«d6 d9d@„Z°gdA¢Z±dB„edCgdD¢«Z³e³jhd:dE„d:dF„d:dG„Z¸ejrjte°ejv«d:dH„«e°e.jx« d; d<dJ„«Z¼da½dKe¾dL<d=dM„Z¿d>dN„d:dO„ZÁdP„ZÂdQ„d:dR„d?dS„d@dT„d@dU„dAdV„e°ej«dBdW„«e°ej”« dC dDdX„«e°ej–«d:dY„«e°e«dZ„«e°e«d[„«e°e«d\„«dE dFd_„ dGdddIe$d`daœ dHdb„ZÑdc„dIdd„dJde„dKdf„dLdg„dMdh„Z×e°e «dNdi„«e°e «dOdj„«d6dPdk„d:dl„d:dm„e°e$«d:dn„«dQdo„Zàe$jrOe$jdpdq«drds«dtdu«eà_e d6 dRdv„«d6dSdw„dTdx„d:dy„ZçedUdz„«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€„«dZd`d`dIddddd|œ dYdZé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‡„ d_ d`dˆ„d6dad‰„d6dadŠ„d6dbd‹„d6dcdŒ„ddddddŽ„ dCd`dœ ded dCd`dœ ded‘„ df dgd’„ dG dhd“„ed”dI¬•«did–„«did—„e°e$« dG djd˜„«dCdkd™„dCdldš„dmd›„e°e« d6 dndœ„«e°e« dod«Zÿd6dpdž„ZdqdŸ„Zed rej«Zednej «Ze4j
e3j «Zeee«d¡d¢hz
vr1ej«rejd£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°e0j4«dd±œ d}d²„«Ze°e0j6« d~dd±œ dd³„«Ze°e0j8« d€ dd´„«Ze°e0j:«d‚dµ„«Ze°e0j<«  d„d·„«Ze°e0j>«d…d†d¸„«Ze°e0j@« d‡ dˆd¹„«Z e°e0jB« d6dIdºœ d‰d»„«Z!e°e0jD« d6dd¼œ dŠd½„«Z"e°e0jF«d…d‹d¾„«Z#e°e0jH« d‡ dŒd¿„«Z$e°e0jJ« ddÀddÁœ dŽd„«Z%e°e0jL«dd±œddÄ«Z&e°e0jN« ddÀddÁœ ddÄ„«Z'e°e0jP« d6dÅdÆddÇœ ddÈ„«Z(e°e0jR« ddd±œ d“dÊ„«Z)e°e0jT«dd±œ d”dË„«Z*e°e0jV«d6d•dÌ„«Z+e°e0jX«dÍd^de;jZe;j\dddÎdf dd±œ ddÏ„«Z,e°e0j^«dd±œd—dЄ«Z/e°e0j`«dd±œd—dÑ„«Z0e°e0jb« d˜dd±œ d™dÒ„«Z1e°e0jd« d6d`dÉd`ddÓœ dšdÔ„«Z2e°e0jf« ddd±œ dœdÕ„«Z3e°e0jh« ddd±œ dždÖ„«Z4e°e0jj«dd±œdŸdׄ«Z5e°e0jl« d dd±œ d¡dØ„«Z6e°e0jn« d¢dd±œ d£dÙ„«Z7e°e0jp«  d¥dÚ„«Z8e°e0jr«dd]ddÛdÛddddddddÜeDjtdd`dfdd±œ d¦dÝ„«Z9e°e0jv« d§dd±œ d¨dÞ„«Z;e°e0jx« d6dÉdd`ddßœ d©dà„«Z<e°e0jz« dªdd±œ
«ZVe°e0« dÅdd±œd «ZWe°e0« d «ZXe°e0j« d6 dtd
«Z
e°e0«d«ZYe°e0j´«d¶ddddddœ d«ZZe°e0«d«Z[e°e0j¸«d«Z\e°e0«ddddddddœd«Z]e°e0«d«Z^e°e0« dÊdd±œ d«Z_e°e0« d¬dd±œ d«Z`e°e0«dIe;jZdIdáfdd±œ d«Zae°e0«d«Zce°e0« dGddœ d«Zee°e0« dCddœ d«Zge°e0« dCddœ d „«Zie°e0«d!„«Zke°e0«d"„«Zmd:d#„Znd:d$„Zod:d%„Zpd:d&„Zqd:d'„Zrd:d(„Zsd:d)„Ztd:d*„Zud:d+„Zvd:d,„Zwd:d-„Zxd:d.„Zyd:d/„Zzd:d0„Z{d:d1„Z|d:d2„Z}d:d3„Z~d:d4„Zd:d5„Z€ya
`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©©ÚmethodÚfuncs úT/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/pyplot.pyÚ_copy_docstring_and_deprecatorsr„£sð69ócóyr~rr€sr„r„ªsà>Ar…có‚|€$tdtjt|««St j
|«g}t
|d«rUtjjj|«}|r|j|«|j}t
|d«rŒU|dddD]
}||«}Œ t||«|S)Nú.Callable[[Callable[_P, _R]], Callable[_P, _R]]Ú __wrapped__éÿÿÿÿ)rÚ functoolsÚpartialr„rÚcopyÚhasattrr Ú deprecationÚ
DECORATORSÚgetÚappendr‰Ú_add_pyplot_note)rrÚ
decoratorsÚpotential_decoratorÚ decoratorsr„r„¯ð €|ÜÐ×%Ô&EÀvÓPð Pô ˜ÓðH€Jô &˜
"×.×9×=¸fÓÙ Ø × Ñ Ð ×#ˆô &˜
 ¡ Ñˆ Ù˜ðäT˜6Ô €Kr…)zFigureBase._gciz_AxesBase._scizArtist.findobjcóÊ|jsy|j}|tvryd}d|vrd}|jd|}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“Ðð <Š<Øà×(€HØ”?ÑàØ
à!&ÐØ×*¨!¨H¨:Ð6‰Ø × Ñ ˜WÔ %ؘ"‰Ø × Ñ ˜\Ô *ؘh q r˜*‰Ø × Ñ ˜YÔ 'ØX‰~‰Ø × Ñ ˜]Ô +ؘ8 B C˜=Ñ(‰Ø × Ñ Ð0Ô 1ØX‰~‰äÐCÀHÀ:ÐØNÈtÈfÐTVÐW‰à+¨D¨6°Ðô ×
Ñ
˜4Ÿ<™<Ó
(€Cؘ؟ ™ Ð"2°AÓ6‰
ˆØ—8
7ˆ%¸BÒ >ؘF˜U˜  S¨¨ [Ø—8‘8Ð
3ˆ%¸Ò :ؘF˜U˜  S¨¨ [ðt‘ˆØˆàÀ ÈÈEÈ7ÐS€D…Lr…Ú_ReplDisplayHook)ÚNONEÚPLAINÚIPYTHONcóBtj«r t«yyr~)Ú
matplotlibÚis_interactiveÚdraw_allrr…Ú_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.
IPythonÚ post_executeé)éér)Ú backend2gui)Ú_REPL_DISPLAYHOOKr°ÚsysÚmodulesrÚ get_ipythonÚeventsÚregisterr¸Ú version_infoÚIPython.core.pylabtoolsr¿r r#Úresolve_backendÚ
enable_gui)Ú mod_ipythonÚipr¿Úipython_gui_nameÚ_sÚinstall_repl_displayhookrÎôÔô
—+‘+—/‘/ )Ó,€KÙ ÜØØ × Ñ Ó "€BÙ
ÜØà‡II×Ñ~Ô'?Ô(×à×Ñ  Ð# gÒ
&Ÿ?™?¬;«=Óä.×>¼{»}ӈРáØ
Ðr…cóªttjur-ddlm}|«}|j
j
dt«tjay)z6Disconnect from the display hook of the current shell.r)N) rÀÚ
unregisterr¸)sÚuninstall_repl_displayhookrÑEs>ôÔ,×
]ˆØ
‰ ×ј^Ô-EÔr…có,tj|i|¤ŽSr~)Ú set_loglevel©ÚargsÚkwargssSsä × "  3¨FÑ 3r…Tcó@|
t«}|j||¬«S)N)Ú include_self)ÚgcfÚfindobj)ÚmatchrØsXs#ð  €yÜ ‹EˆØ 9‰9ˆ 6r…z.type[matplotlib.backend_bases._Backend] | NoneÚ _backend_modcó¨tttjd««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…Ú_get_backend_modråfs;ô Ðô ”x—}‘} YÓ ”Z×Ó 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)
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óHeZdZe«j eW°««y)ú#switch_backend.<locals>.backend_modN)Ú__name__r ÚlocalsÚupdateÚvars)Úmodules€rƒÚ backend_modrñÀsø„Ù™V› Õ%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Ó 8r…)Ú FigureClasscó&||i|¤Ž}||«Sr~r)Úfigrýs €rƒz*switch_backend.<locals>.new_figure_managerÌsø€Ù˜. vÑ.ˆ2°3¸Ó <r…có j«r<tjj«}|r|jj «yyyr~)rÚGcfÚ
get_activeÚcanvasÚ draw_idle)Úmanagerrµs €rƒÚdraw_if_interactivez+switch_backend.<locals>.draw_if_interactiveÐsBø€Ø(ˆz×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©ÚreturnÚNone)/Úmatplotlib.backendsrÚ_auto_backend_sentinelrÚ"_get_running_interactive_frameworkr#Úbackend_for_gui_frameworkràrÚ ImportErrorr
Úload_backend_moduleÚ FigureCanvasÚrequired_interactive_frameworkÚformatÚgetattrrãrrÚgetattr_staticrÚ
ValueErrorrr Ú_logÚdebugÚbackend_versionÚimportlib.metadataÚmetadatarµr ÚversionÚPackageNotFoundErrorrÚ signatureÚglobalsÚ
__signature__Úbackendsrß)Ú
newbackendÚcurrent_frameworkrßÚ
candidatesÚ candidateÚ old_backendÚrequired_frameworkrîrrÚmanager_pyplot_showÚbase_pyplot_showÚ _pyplot_showÚimr Úmodule_versionÚ func_namerüs @@@@rƒtsû€ó&à”W×á Ü,×'ð!˜‰JàˆòGñ Gˆ
ð 
ˆ
ܘ+4” ˜ð
ô
˜ !Ø&+ŒL˜Ñ Ü—--  Ó*€Kä
×
1°*Ó
=€FØ×&€Là%רÐÙ Ñ"4Ø%Ð);Òð:ß:@¹&ØÐ 2Ð4Eó;GóHð
Hô! Ð)=¸Ü 6˜6  (€Dö &j×.×Ð8>ö
 Ô
ð Ô
ð Ô
˜L¨/¸@€Mô
"×À
ÈtÓÜ×-Ô.?ÀÐPTÓØ ˆ Ø'Ð+;ÒØ˜:˜'+ð
˜E 1×=ˆ Ø'ˆ Ôä‡J˜;×Ð ØŸZ™Z¨Ó1ˆ% 5¸ Ò<
ð8BÐA„HˆYÑœ/¨)Ñ€LØ-ˆ Ü-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.)rrrrÚ threadingr5Ú main_threadÚ native_idÚcurrent_threadr Ú
warn_external)ÚwarnrüsÚ_warn_if_gui_out_of_main_threadr<
s™Ø €DÜœÔ.Ô0@Ó0B×0OÑ0OÓP€LØ× ”9˜oÔ
×(¬I×,AÑ,AÓ,C×,MÑ,MÒô×)´×1FÑ1FÓ1HÑÙ Ü ×Ñð
õ ð r…cóJt«t«j|i|¤ŽS)z%Create a new figure manager instance.)r<s$s$ä Ó × 0°$Ð A¸ Ar…có6t«j|i|¤ŽS)
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.
)rsrr+s ð Ó × 1°4Ð B¸6Ñ Br…cóJt«t«j|i|¤ŽS)
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<s8s'ôX Ó × "  3¨FÑ 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.
)rr…Ú
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µr©ÚstacksrErEŠs7ôB
‹K€EØ ‡NNœ-œ/•3¬tÔ×ј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)rrCrArDrErrFsrDrDs7ôB
‹K€EØ ‡NNœ-œ/•3¬tÔ×ј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) rrrrÚstalerÚstart_event_loopÚtimeÚsleep)ÚintervalrrsÚpauserPÞsbô"× Ñ ×-€GØÐØˆØ =‰=× Ò Ø × Ñ Ô Ü Ø×Ñ Õ
r…c ó0tj|fi|¤Žyr~)Úrc)ÚgrouprÖsrRrRúsä‡MM"˜"r…có.tj||«Sr~)Ú
rc_context)rRÚfnamesrUrUÿsô
× Ñ   UÓ +r…cójtj«tj«r t«yyr~)Ú
rcdefaultsr¶rr…rXrXs$ä×ÑÔÜ× Ñ Ô
ð#r…cóHtjj|g|¢­i|¤ŽSr~)ÚartistÚgetp©ÚobjrÕsr[r[ó#ä × Ñ × ! #Ð Ò Ñ 7r…cóHtjj|g|¢­i|¤ŽSr~)rZrr\srr‘s#ä × Ñ × Ñ  Ð 6 tÒ 6¨vÑ 6r…cóHtjj|g|¢­i|¤ŽSr~)rZÚsetpr\srarar^r…édcó*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ø?gwhitegblackr½é)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
rrCÚ _update_rawrrdÚ
withStroke)ÚscaleÚlengthÚ
randomnessrGrdsrere ôN
ÒÜØ Cð Cô
K€EØ ‡NN”8ׯ©«Ô ‡Oؘv  × "¨Q¸ AàØØØØØØØñ!ôð& €Lr…F)Ú facecolorÚ edgecolorÚframeonrþÚclearc
óPt«} t|t«rÛ|jd¬«}
|
jj
t
d«td||||fD««s|r|rY|
jj
j| vr7tjd|
jj
jd«tjj|
jj
«|
S| rt| «dznd} d} || }ntd „||||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
|dt,«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.
Úrootz*The passed figure is not managed by pyplotc3ó$K|]}|duŒ
y­wr~r©Ú.0Úparamsú <genexpr>zfigure.<locals>.<genexpr>äsèø€Ò%˜tÔVùózCIgnoring specified arguments in this call because figure with num: z already existsric3ó$K|]}|duŒ
y­wr~rrysr|zfigure.<locals>.<genexpr>ñsèø€ÒT e˜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Údpirqrrrsz figure.hooksú:r˜)&Ú get_fignumsÚ
isinstancerÚ
get_figurerrrÚanyrúr r:rrÚ
set_activeÚmaxÚstrÚ
get_figlabelsr¯ÚintÚget_fig_managerr
ÚlenÚRuntimeWarningrîÚ set_labelr¥Ú importlibÚ
import_modulerÚ_set_new_active_managerrÚ_auto_draw_if_interactiveÚstale_callbackrt)r€rrqrrrsrtÚallnumsÚroot_figÚnext_numÚ fig_labelÚ
all_labelsÚinumrÚmax_open_warningrÚ hookspecsÚ module_nameÚ dotted_namer]Úpartsgôlm€Gä#”zÔ—>> t,ˆØ ?‰?× Ð ÑV°'¸3À È9Ð1UÔ¡¨H¯O©O×,CÑ,C×,GÑ,GÈ7Ñ,RÜ × Ñ ðØ%Ÿ_™_×ðJô
Kô ×Ñ×% h§o¡o×&=Ñ&=Ôˆá#*Œs7|˜aÒ°€HØ€IØ
€{Øä Ѹ¸iÈÐ/SÔ ¡¨C°7©NÜ × Ñ ð,Ø,/¨5°ðAô
Bô cœ3Ô Øˆ&ˆ 
Ñ Ò×&Ð'RÔà!×'¨ Ó2ؘdm‘äc“(ˆCô× Ñ ×Ó5€GØÜ#Ð$=ÑÜ ˆw 0¨qÕ × Ñ ØÐ/>ð ô
ô ð  cب9¸gØ(.ñðn‰n×Ù Ø M‰M˜)Ô !  ˆIØ'0§¡°sÓ';Ñ $ˆK˜Ü ×.¨{Ó;ˆCØ)¨#Ó
)ܘc (ð
  ô ×Ñ×2°7Ô Ôä Ô 0× 6Ñ 6Ñ 6Ü!:ˆCÔ á Ø×Ñ× >‰>× Ñ Ð r…có*|r…tj«rp|jj«sU|jjs>|jj «5|jj
«ddd«yyyyy#1swYyxYw)
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Ú is_savingÚ_is_idle_drawingÚ_idle_draw_cntxr)rÚvalsr“r“1s|ñ
×—J‘J×—J‘J×
Z‰Z×
 J‰J× Ñ Ô  ,ˆ÷ #ú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.)
)rrrr)rsFs5ô× Ñ ×-€GØÐØ~‰~׋xˆr…cóxt|t«rtjj |«S|t «vS)
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„rrrÚ
has_fignumrŠ©sÚ
fignum_existsr©Vs:ô cœ3Ô ô ×Ñ×% cÓð”M“OÐ
r…cóHttjj«S)z)Return a list of existing figure numbers.)ÚsortedrrÚfigsrr…ksä ”.× *r…cóÒtjj«}|jd¬«|Dcgc]&}|jj
j
«Œ(c}Scc}w)z(Return a list of existing figure labels.có|jSr~)Úmsú<lambda>zget_figlabels.<locals>.<lambda>ss
 §¡r…)Úkey)rrÚget_all_fig_managersÚsortrÚ get_label)Úmanagersr¯spsIä×!×8€HØ ‡MMo€MÔ&Ø19Ö :¨AˆAH‰HO‰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
)rrrr…Úget_current_fig_managerr·wsô 5<‰<× Ñ Ðr…cóJt«jj||«Sr~)rÚ mpl_connect)ÚsrsÚconnectr»ˆsä 5<‰<× # A  ,r…cóJt«jj|«yr~)rÚmpl_disconnect)ÚcidsÚ
disconnectr¿säƒE‡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()`.
NrrzDclose() argument must be a Figure, an int, a string, or None, not %s)rrrÚdestroyÚ destroy_allr„rr‰rÚ destroy_figÚ TypeErrorrâ)rrr™sÚcloserÅsð0 €{Ü ×Ø ˆ?Ø ä × Ñ × &  ŠÜ×Ñ×Ô Ü×Ñ×" ô ×Ñ×" 3§7¡7ÕÔ Ü"“_ˆ
Ø  Ü“- 
× 0Ñ 0°Ó 5Ñ6ˆCÜ × Ñ × &   ô
Ô Ü×Ñ×& ð*Ü,0°«Iñ 7r…có4t«j«y)zClear the current figure.N)rtrr…ÚclfrÇÄs
äƒE‡KK…Mr…cóHt«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)rrrr…ÚdrawrÉÉsô"ƒE‡LL×ÑÕr…córt«}|j|i|¤Ž}|jj«|Sr~)Úsavefigrr)rÚressÝs5ä
%€Cð ˆ#+‰+
&˜
&€C؇JJ×ÑÔØ €Jr…có6t«j|i|¤ŽSr~)ÚlegendrÔsÚ figlegendrÏêsØ Œ35<‰<˜Ð ( Ñ (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)ÚpopÚ add_subplotÚadd_axes)ÚargrÖrÚpossÚaxesr×õsfô^ ‹%€CØ
*‰*Z Ó
&€CØ
€{Ø ˆ"3—?,  3—<< Ñ.  ˆs|‰|˜* *r…có<|
t«}|j«y)zS
Remove an `~.axes.Axes` (defaulting to the current Axes) from its figure.
N)ÚgcaÚremove)ÚaxsÚdelaxesrÜOsð
€zÜ
‹UˆØ‡II…Kr…có`|jd¬«}t|«|j|«y)zT
Set the current Axes to *ax* and the current Figure to the parent of *ax*.
FrvN)r…Úsca)rsXs&ð
-‰-˜Uˆ
#€CÜ
ˆ3„K؇GGˆB…Kr…có2t«j«S)zClear the current Axes.)Úclarr…dsô ‹59‰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)
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)riririrkzbThe 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)Úobjectrrrr„Úboolr r:rÚ_from_subplot_argsr×Úget_subplotspecÚ_projection_initÚ _process_projection_requirementsrÓ)ÚunsetrârsÚsubplotrílsxôD
‹H€EؘL¨%Ó0€JØ J‰Jw Ó &€EØ ™eà ˜ " z°WÒ'<ÜØ˜˜Ð°ð?BðBóð
ð-4Ј|јzô ˆ4ƒyA‚~؈ô ˆ4ƒyA‚~œ* T¨!¡W¬dÔ ×Ñð˜G ðNóOð Oô ‹%€Cô ×
¨dÓ
3€Càh‰hò
.ˆð
× Ñ Ó  CÓ ˜2Ø×<˜×F¸Gá ð
ˆS_‰_˜
- 
-ˆà‡GGˆB„Kà
€Ir….)ÚsharexÚshareyÚsqueezeÚ width_ratiosÚ
height_ratiosÚ
subplot_kwÚ gridspec_kwc óyr~r©
Úfig_kws
Úsubplotsrø"óðr…)c óyr~rs
3r…c óyr~rs
Dr…c óTtdi| ¤Ž}
|
j|||||||||¬« } |
| fS)
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Úaxss UsEôv Ñ

€CØ
,‰,˜U¨%¸ÀvØ&°:Ø#.¸mØ$0ð ó 2€Cð ˆ8€Or…)Úempty_sentinelróÚper_subplot_kwc óyr~r©
Úmosaicrîrÿs
Úsubplot_mosaicrøsð69r…c óyr~rrs
rrsð58r…c óyr~rrs
rrsð;>r…r˜c óTtdi| ¤Ž}
|
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) rrÿrÚax_dicts rr(sKôj Ñ

€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Ú_check_gridspec_existsÚnew_subplotspecrÓ)
ÚshapeÚlocr r
rÚrowsÚcolsÚgsÚ subplotspecs
Ú subplot2gridr©s[ðX €{Ü‹eˆØJ€Dˆ$Ü × (Ñ (¨¨d°DÓ 9€BØ×$ S°'À7ÐK€KØ ˆ3?‰?˜ 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`
)Útwinx©Úax1srrÝó ð
€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`
)Útwinyrsrrí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`
configure_subplotsr)ÚNavigationToolbar2Ú trigger_tool)ÚToolContainerBaserøzHsubplot_tool can only be launched for figures with an associated toolbar) rrÚtoolbarrŽÚmatplotlib.backend_basesrrrrrr)Ú targetfigÚtbrrsÚ subplot_toolr$ýs…ðÐÜ“Eˆ Ø × Ñ × !Ñ !× )Ñ )€B܈ÐÓ+×^Ô $Ý Ð
 ÓÔäð 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)Ú get_frame_onÚ set_frame_on)ÚonrÛsÚboxr)s+ô
€BØ €zØÓ
"ˆØ‡OOr…cóft«}|s|s|j«S|j|i|¤Ž}|S)
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.
)Úget_xlimÚset_xlim©ÚretsÚxlimr/+ó6ô<
€BÙ Ø{‰{‹}ÐØ
ˆ"+‰+
&˜
&€CØ €Jr…cóft«}|s|s|j«S|j|i|¤Ž}|S)
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.
)Úget_ylimÚset_ylimr-sÚ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)Ú
get_xticksrÄÚ
set_xticksÚget_xticklabelsÚ_internal_updateÚset_xticklabels©ÚticksÚlabelsr6ÚlocsÚ
labels_outÚlsÚxticksrCus¿ô@
€Bð
€}Ø}‰} 5ˆ}ÓØ Ð Üð
}‰}˜U¨%ˆ}Óà€JØ
€~Ø×'¨eÐ4ˆ
Øò 'ˆ
× Ñ ˜ 
Ð Ðð(R×ÑF°eÐF¸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)Ú
get_yticksrÄÚ
set_yticksÚget_yticklabelsr;Úset_yticklabelsr=sÚyticksrIËs¿ô~
€Bð
€}Ø}‰} 5ˆ}ÓØ Ð Üð
}‰}˜U¨%ˆ}Óà€JØ
€~Ø×'¨eÐ4ˆ
Øò 'ˆ
× Ñ ˜ 
Ð Ðð(R×ÑF°eÐF¸Fˆ
à Ð Ðr…c óBt«}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Úpsr|zrgrids.<locals>.<genexpr>d sèø€Ò
:˜ˆ1Œ9Ñ
:ùr}z7'radii' cannot be None when other parameters are passed)r?ÚangleÚfmt)
r„r$rÚyaxisÚ
get_gridlinesÚget_ticklabelsrÄÚ
set_rgrids)Úradiir?rMrNÚ lines_outrAsÚrgridsrU ôB
€BÜ bœ)Ô Ð
Ñ
:˜u f¨e°SÐ
:Á6Ø"$§(¡(×"8Ñ"8Ó":ˆ Ø!#§¡×!8Ñ!8Ó!:ˆ
ð  Ð ð
ˆÜÐRà - §
¡
Ø ð!BØ ¨°3ñ!BØ:@ñ!Bш  Ð r…c ó>t«}t|t«s td«t d|||fD««r:|s8|j
j
«}|j
j«}||fS| td«|j|f||dœ|¤Ž\}}||fS)
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~rrysr|zthetagrids.<locals>.<genexpr>¯ sèø€Ò
<˜Uˆ5DŒ=Ñ
<ùr}z8'angles' cannot be None when other parameters are passed)r?rN)
r„r$rÚxaxisÚ
get_ticklinesrQÚset_thetagrids)Úanglesr?rNrTrAsÚ
thetagridsr\o ôz
€BÜ bœ)Ô Ð
Ñ
< v¨v°sÐ&;Ô
<ÁVØ"$§(¡(×"8Ñ"8Ó":ˆ Ø!#§¡×!8Ñ!8Ó!:ˆ
ð  Ð ð
ˆÜÐSà 1 × 1Ñ 1°&ð!<Ø9?ÀSñ!<à4:ñ!<ш   Ð r…z3.7)ÚpendingcóLhd£}t«Dcgc]}||vr|Œ
c}Scc}w)z<
Get a sorted list of all of the plotting commands.
>Úginputr»r¿Úwaitforbuttonpressr·)Ú_get_pyplot_commands)ÚNON_PLOT_COMMANDSÚnamesÚget_plot_commandsrd» s7ò
ô .Ð
ò .ùò .s
!có¤dddht£Štjt«Št ˆˆfdt «j
«D««S)NÚ colormapsÚcolorsrdc3óªK|]J\}}|jd«s4|vr0tj|«rtj|«ur|ŒLy­w)N)Ú
isfunctionÚ getmodule)rzrcr]ÚexcludeÚ this_modules €€rƒr|z'_get_pyplot_commands.<locals>.<genexpr>Í sQøèø€ò˜sÔ°GÑ(;Ü×! × Ñ  ÓÑ
ñ6ùsƒAA)rfrjrdr%Úitems)rkrls@@rƒraraÇ sKù€ð˜HÐ&9ÐF¼IÐF€GÜ×#Ô$5Ó6€KÜ ô%›iŸo™oÓ 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¢Úcolorbar)Úmappableror.srqrq× sNðÐÜ“5ˆØ Ð Üð
 Œ#%.‰.˜Ð
< s¨rÑ
<°VÑ
<€CØ €Jr…cóVt«}| 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)rpÚset_clim)ÚvminÚvmaxr1sÚclimrwé s*ô
€BØ €zÜЇKKr…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Úget_cmapr|þ s]ð$ €|ܘ ÑÜÔˆ Ü×Ñ”vœjÓÕ
€{ܘ$ÑÐä˜$Ñ×)¨#Ó.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)rr1sr€r€
s8ô D>€Dä€wT—YÜ €Bà €~Ø
ðr…cóBtjj||«Sr~)r~Úimread)rVrsrr2
sô × Ñ × " 5¨&Ó 1r…c óFtjj||fi|¤Žyr~)r~Úimsave)rVÚarrrÖsr„r„9
sô×Ñ×јE 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ÚmatshowÚsci)ÚfignumrÖr€rr1s@
szôX
€AØ

‹U‰à Ð ¤-°Ô"7à‰Gô  “lˆV WÔØ
\‰\Ð
Ø ˆ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ÙÚget_axesrÙr„r$r Úwarn_deprecatedr×Úplot)s}
sYô( ƒu‡~Ü
ܘ"œiÔ × Ñ Øð
ô˜
Ø ˆ27‰7 #˜ #r…Úbackend_fallbackÚwebaggÚnbaggrß)Ú colorizerc
 óNt«j|f||||||||| |
dœ
| ¤ŽS)N)
ÚxoÚyoÚalphaÚnormrrurvÚoriginÚresizer•)Úfigimage) ÚXr—r˜r™rrurvrr•s rrµ
sIð Œ35>‰>Ø ð
à
Ø
ØØ
Ø
Ø
Ø
ØØØñ
ð ñ
ð
r…c ó@t«j|||fd|i|¤ŽS©fontdict)Útext©ÚyrºsÚfigtextr¦Ö
ó%ð Œ3‹5:‰:˜AÑ Ð ;°FÑ ;r…có2t«j«Sr~)rr…Þ
sä ‹59‰9‹;Ðr…có2t«j«Sr~)Ú_gcirr…rprpä
sä 5:‰:r…écó@t«j||||||¬«S)ÚtimeoutÚ show_clicksÚ mouse_addÚ mouse_popÚ
mouse_stop)r_r­sr_r_ê
s.ô 5<‰<Ø
ØØØØØð
ó ðr…cóBt«j||||||¬«y)ÚleftÚbottomÚrightÚtopÚwspaceÚhspace)Úsubplots_adjustrµsþ
s&ôƒE×ÑØ
˜°3¸vÈfðõr…c ó8t«j|fi|¤ŽSr~)Úsuptitle)ÚtrÖs
sà Œ35>‰>˜ &˜ &r…gHáz®Gñ?©ÚpadÚh_padÚw_padÚrectcó>t«j||||¬«y)NrÀ)Ú tight_layoutrÀs sôƒE×ј3 e°5¸tÐÕDr…có6t«j|¬«S))r`sr`r` sä  #¨GÐ 4r…)Údatac óHt«j|fi|d|ini¤|¤ŽS©NrÉ)Úacorr)s% s,ð Œ35;‰; S¨tÐ/?˜f d™^ÀRÐ SÈFÑ Sr…c óTt«j|f|||||dœ|d|ini¤|¤ŽS©N)ÚFsÚFcÚwindowÚpad_toÚsidesrÉ)Úangle_spectrum©s- óQð Œ3‹5× Ñ Ø ð à
Ø
ØØØñ
ð-ˆFD‰>°2ð ð ñ ð r…c óFt«j||f|||||dœ|¤ŽS)N)ÚxytextÚxycoordsÚ
textcoordsÚ
arrowpropsÚannotation_clip)Úannotate)ÚxyrØsF s?ð Œ35>‰>Ø Ø
ð ðØØØØ ð ñ ð r…c ó>t«j||||fi|¤ŽSr~)Úarrow)ÚdxÚdyrÖs^ s à Œ35;‰;q˜!˜Ñ .  .r…Úbothcó<t«j|||¬«y)ÚenableÚaxisÚtight)Ú autoscaleråsd sô ƒE‡OO˜6¨°E€OÕ:r…c ó>t«jd|||dœ|¤ŽS)N)ÚxminÚxmaxr)Úaxhline)sn ó!à Œ3‹5=‰=Ð =˜1 4¨dÑ =°fÑ =r…c ó@t«j||f||dœ|¤ŽS)N))Úaxhspan)ÚyminÚymaxrëst ó%ð Œ3‹5=‰=˜˜tÐ D¨$°TÑ D¸ Dr…)Úemitc ó<t«j|fd|i|¤ŽS)Nrô))s| s!ð Œ35:‰: Ð Ñ /r…)Úslopec ó>t«j|f||dœ|¤ŽS)N)Úxy2rö)Úaxline)Úxy1røsˆ s#ð Œ35<‰<˜Ð < ¨EÑ <°VÑ <r…c ó>t«jd|||dœ|¤ŽS)N)r)Úaxvline)s r…c ó@t«j||f||dœ|¤ŽS)N))Úaxvspan)sš r…Úcenter)ÚalignrÉc óRt«j||f|||dœ|d|ini¤|¤ŽS)N)Úwidthr·r)Úbar)Úheightrrsrr¢ sNð Œ3‹59‰9Ø Øð ðØØñ  ð -ˆFD‰>°2ð
 ð ñ ðr…cóFt«j|i|d|ini¤|¤ŽS)Úbarbs©srr¹ s+à Œ35;‰;˜Ð W°4Ð3C &¨$¡ÈÐ WÐPVÑ Wr…c óRt«j||f|||dœ|d|ini¤|¤ŽS)N)rr)Úbarh)rrrsr r ¿ sNð Œ3‹5:‰:Ø Ø
ð ðØ
Øñ  ð -ˆFD‰>°2ð
 ð ñ ðr…z%gÚedge)rNÚ
label_typeÚpaddingc óBt«j|f||||dœ|¤ŽS)N)r?rNr r )Ú bar_label)Ú containerr?rNr r srrÖ 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)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É)Úboxplot)rrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-sr.r.ë sNðD Œ3‹5=‰=Ø ò áð ñ
ð ñð  ñ
 ð  ñ ð
 ñð ñð ñ ñð ñ ð ñ ñð ñð ñð ñ ð! ñ"ð# ñ$ð% ñ& ð' ñ(ð) ñ* ð+ ñ,ð- ñ.ð/ ñ0"ð1 ñ2"ð3 ñ4ð5 ñ6ð7 ñ8ð9 ñ:Ø-ˆFDˆ>ñ= ðð<46ñ= ðr…c óJt«j||fi|d|ini¤|¤ŽS)Ú broken_barh)ÚxrangesÚyrangerÉsr0r00 s;ð Œ3‹5× Ñ Øñ Ø.2Ð.>˜V T™NÀBð ØKQñ ðr…c ó<t«j|fd|i|¤ŽS)levels)Úclabel)ÚCSr4sr5r5> sà Œ35<‰<˜Ñ 4  4¨VÑ 4r…éÚdefaultc 
ó^t«j||f|||||||| |
dœ | d| ini¤| ¤ŽS)N) ÚNFFTrÏÚdetrendrÑÚnoverlaprÒÚ
scale_by_freqrÉ)Úcohere)
r:r;r<r=s
r>r>D s`ð& Œ35<‰<Ø Ø ð ðØ
Ø
ØØØØØØ ð-ˆFD‰>°2ð ð ñ ðr…cóxt«j|i|d|ini¤|¤Ž}|j t|«|S)ÚcontourÚ_Ar©Ú__retsr@r@i sJà ŒCEM‰MØ
ð
Ø$(Ð$46˜4.¸
ØAGñ
€Eð
‡xÜ ˆ
Ø €Lr…cóxt«j|i|d|ini¤|¤Ž}|j t|«|S)ÚcontourfrArrBsrErEt sJà ŒCEN‰NØ
ð
Ø$(Ð$46˜4.¸
ØAGñ
€Eð
‡xÜ ˆ
Ø €Lr…c  ó`t«j||f|||||||| |
| dœ
| d| ini¤|
¤ŽS©N)
r:r;r<r=Ú return_linerÉ)Úcsd)r:r;r<r=rHsrIrI scð( Œ3‹59‰9Ø Ø ð ðØ
Ø
ØØØØØØñ ð-ˆFD‰>°2ð ð ñ ðr…)Ú
complementaryrÚcompressrÉc óRt«j|f||||dœ|d|ini¤|¤ŽS)N)ÚweightsrJrrK)Úecdf)rMrJrrKsrNrN¦ sLð Œ3‹5:‰:Ø ð àØØñ  ð -ˆFD‰>°2ð
 ð ñ ðr…c óft«j||f|||||||| |
| | |
|dœ
|d|ini¤|¤ŽS)N)
ÚyerrÚxerrrNÚecolorÚ
elinewidthÚcapsizeÚ barsaboveÚlolimsÚuplimsÚxlolimsÚxuplimsÚ
erroreveryÚcapthickrÉ)Úerrorbar)rPrQrNrRrSrTrUrVrWrXrYrZr[sr\r\½ slð* Œ35>‰>Ø Ø ð ðØ
Ø ØØØØØØØØØØñ ð -ˆFD‰>°2ð! ð" ñ# ðr…c óXt«j|f|||||||dœ|d|ini¤| ¤ŽS)N)rÚ lineoffsetsÚ linelengthsÚ
linewidthsrgr™Ú
linestylesrÉ)Ú eventplot)
rrr^r_r`rgr™ras
rbrbè sUð Œ3‹5?‰?Øð àØØØØØØñ ð-ˆFD‰>°2ð ð ñ ð r…cóFt«j|i|d|ini¤|¤ŽS)Úfillrsrdrd
s*à Œ35:‰: V°$Ð2B ¨¡ÈÐ VÈvÑ Vr…c óTt«j||f||||dœ|d|ini¤|¤ŽS)N)Úy2ÚwhereÚ interpolateÚsteprÉ)Ú fill_between)Úy1rfrgrhrisrjrj
sSð Œ3‹5× Ñ Ø Ø
ð ð ØØØ
ñ
ð-ˆFD‰>°2ð ð ñ ð r…c óTt«j||f||||dœ|d|ini¤|¤ŽS)N)Úx2rgrirh)Ú
fill_betweenx)Úx1rmrgrirhsrnrn$
sSð Œ3‹5× Ñ Ø Ø
ð ð ØØ
Øñ
ð-ˆFD‰>°2ð ð ñ ð r…c ó@t«jd|||dœ|¤Žy)N)ÚvisibleÚwhichrçr)Úgrid)rqrrsrsrs=
s ð„CƒE‡JAw 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)gridsizeÚbinsÚxscaleÚyscaleÚextentrrurvr™r`Ú
edgecolorsÚreduce_C_functionÚmincntÚ marginalsr•)Úhexbinr)rwrxryrzr{r|rrurvr™r`r}r~rr€r•rCsrrH
ð2
ŒCEL‰LØ Ø ò
ñ ð
ñð 
ñ
ð 
ñ ð

ñð
ñð
ñð
ñð
ñð
ñð
ñð
ñð
ñð
ñ ,ð!
ñ"ð#
ñ$ð%
ñ&Ø-ˆFD‰>°2ð)
ð* ñ+
€Eô.ˆ„JØ €Lr…c óft«j|f||||||||| |
| | |
|dœ|d|ini¤|¤ŽS)N)ryÚrangeÚdensityrMÚ
cumulativer·ÚhisttyperrÚrwidthÚlogÚcolorr-ÚstackedrÉ)Úhist)ryr„rMr…r†rrr‡rˆr‰r-srr}
sjð2 Œ35:‰:Ø ð à
ØØØØØØØØØØ ØØØñ ð -ˆFD‰>°2ð! ð" ñ# ðr…)rÚbaselinerdc óRt«j|f||||dœ|d|ini¤|¤ŽS)N)Úedgesrrd)Ústairs)ÚvaluesrŽrrdsrr¬
sLð Œ35<‰<Øð àØØØ
ñ  ð -ˆFD‰>°2ð
 ð ñ ðr…c
óxt«j||f||||||dœ|d|ini¤| ¤Ž}
t|
d«|
S)N)ryr„rMÚcminÚcmaxrÉ)Úhist2dr) ryr„rMrr“rCs r”r”Ã
sfð
ŒCEL‰LØ Ø ð
ðØØØØ
Ø
ñ
ð-ˆFD‰>°2ð
ð ñ
€Eôˆˆb‰ „NØ €Lr…c óTt«j|||f|||dœ|d|ini¤|¤ŽS©N)rgrar-)Úhlines)rgrar-sr—r—â
óQð Œ35<‰<Ø Ø Ø ð ðØØñ
ð-ˆFD‰>°2ð ð ñ ð r…ç@)ÚaspectÚ
interpolationr™rurvr•rr|Úinterpolation_stageÚ
filternormÚ filterradÚresampleÚurlrÉc ó‚t«j|f||||||||| |
| | |
||dœ|d|ini¤|¤Ž}t|«|S)N)rrr™rurvr•rr|rr )Úimshowr)rrr™rurvr•rr|rr rCsû
sxð,
ŒCEL‰LØ ð
à
Ø
ØØØ
Ø
ØØØØØØØ ñ!
ð"-ˆFD‰>°2ð#
ð$ ñ%
€Eô(ˆ„JØ €Lr…có6t«j|i|¤ŽSr~)s*óà Œ35<‰<˜Ð ( Ñ (r…c ó>t«jd||dœ|¤Žy)N)r)Úlocator_params)s0s ð„CƒE×ÑÐ:˜d¨%Ñ:°6Ó:r…có6t«j|i|¤ŽSr~)ÚloglogrÔs8r…c
óVt«j|f||||||dœ|d|ini¤|¤ŽS)N)rn)Úmagnitude_spectrum) r¤rns >sTð $Œ35×  ð
à
Ø
ØØØØñ
ð-ˆFD‰>°2ð
ð ñ
ð
r…©có:t«j||||dœŽS)Nr«)Úmargins)r­sr­r­Ysð Œ35=‰=˜' Q¨!°5Ò 9r…có4t«j«yr~)Úminorticks_offrr…dsäƒE×ÑÕr…có4t«j«yr~)Ú
minorticks_onrr…jsäƒE×ÑÕr…)Úshadingr™rrurvr•c ópt«j||||||||dœ|d|ini¤| ¤Ž}
t|
«|
S)N)r™rrurvr•)Úpcolorr) r™rrurvr•rCs r´r´ps[ð
ŒCEL‰LØ
ØØØ
Ø
Ø
Ø
Øñ
ð-ˆFD‰>°2ð
ð ñ
€Eôˆ„JØ €Lr…) r™rrurvr•Ú antialiasedrÉc órt«j| ||||||||dœ|d|ini¤|
¤Ž} t| «| S)N)r™rrurvr•)Ú
pcolormeshr) r™rrurvr•rCs Žs`ð
ŒCE× Ñ Ø
ØØ
Ø
Ø
Ø
ØØØñ
ð-ˆFD‰>°2ð
ð ñ
€Eôˆ„JØ €Lr…c óTt«j|f|||||dœ|d|ini¤|¤ŽS)Úphase_spectrumrÕs®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)exploder?rgÚautopctÚ pctdistanceÚshadowÚ
labeldistanceÚ
startangleÚradiusÚ counterclockÚ
wedgepropsÚ textpropsrÿÚframeÚ rotatelabelsrº)Úpie)r?rgr¿rÿsÇð. Œ3‹59‰9Ø ò áð ñð ñð  ñ
ð  ñ  ð
 ñð ñ ñð ñð ñ ñð ñð ñð ñð ñ "ð! ñ"ð# ñ$Ø-ˆFDˆ>ñ' ðð&46ñ' ðr…)ÚscalexÚscaleyrÉcóLt«j|||dœ|d|ini¤|¤ŽS)N))r)sr‘r‘ösAð Œ35:‰:Ø
ØØñ ð-ˆFD‰>°2ð  ð
ñ  ðr…c óTt«j||f||||dœ|d|ini¤|¤ŽS)N)rNÚtzÚxdateÚydaterÉ)Ú plot_date)rNssQð Œ3‹5?‰?Ø Ø ð ð
Ø
ØØñ
ð-ˆFD‰>°2ð ð ñ ð r…c  ó^t«j|f||||||||| |
dœ
| d| ini¤| ¤ŽSrG)Úpsd)
r:r;r<r=rHs
!s^ð& Œ359‰9Ø ð à
Ø
Ø
ØØØØØØñ ð-ˆFD‰>°2ð ð ñ ðr…có`t«j|i|d|ini¤|¤Ž}t|«|S)ÚquiverrrBsFs@à ŒCEL‰LØ
ð
Ø$(Ð$46˜4.¸
ØAGñ
€Eôˆ„JØ €Lr…c ó@t«j|||||fi|¤ŽSr~)Ú quiverkey)ÚQržÚUr-sr×r×Ps$ð Œ35?‰?˜1˜ A  Ñ 7r…)r}r•Ú
plotnonfiniterÉc  ó~t«j||f|||||||| |
| | |
dœ |d|ini¤|¤Ž}t|«|S)N) Úmarkerrrurvr™r`r}r•)Úscatterr)rrurvr™r`r}r•rCsXstð(
ŒCEM‰MØ Ø ð
ð Ø
ØØ
Ø
Ø
Ø
ØØØØØ
ð-ˆFD‰>°2ð
ð ñ!
€Eô$ˆ„JØ €Lr…có6t«j|i|¤ŽSr~)ÚsemilogxrÔsƒóà Œ35>‰>˜ *  *r…có6t«j|i|¤ŽSr~)ÚsemilogyrÔsr…c óˆt«j|f||||||||| |
| | |
||dœ|d|ini¤|¤Ž}t|d«|S)N)r:r;r<rÚxextentrÒr=Úmodernrurv)Úspecgramr)r:r;r<rr=rnrurvrCss|ð0
ŒCEN‰NØ ð
à
Ø
Ø
ØØØØ
ØØØØ
ØØ
Ø
ñ!
ð"-ˆFD‰>°2ð#
ð$ ñ%
€Eô(ˆˆb‰ „NØ €Lr…c ó~t«j|f|||||dœ|¤Ž}t|t«r t |«|S)N)Ú precisionrÞÚ
markersizeršr)Úspyr„r%r)ÚZrêrrCsÀsPð
ŒCEI‰IØ ð
àØØØØñ

ð ñ
€Eô ˆEŒ
Ø €Lr…rÚzero)r?rgcóXt«j|g|¢­||||dœ|d|ini¤|¤ŽS)N)r?rg)Ú stackplot)r?rgsÙsVð Œ35?‰?Ø ð à
ñ ðØØØñ
ð-ˆFD‰>°2ð ð ñ ð r…)ÚlinefmtÚ markerfmtÚbasefmtr·r-rc
óTt«j|||||||dœ|d|i¤ŽSi¤ŽS)N)r-r)Ústem)r-rsêsPð Œ35:‰:Ø
ØØØØØØñ ð-ˆFDˆ ð ð46ñ ð r…Úpre)rgcóTt«j||g|¢­d|i|d|ini¤|¤ŽS)Nrg)ri)rgsririsRð Œ3‹5:‰:Ø Ø ð ð
ò ðð  ð
-ˆFD‰>°2ð  ð ñ
 ðr…có–t«j||||f|||||| |
| | |
||||dœ|d|ini¤Ž}t|j«|S)N)r„rgr‰rÚ arrowsizeÚ
arrowstyleÚ minlengthÚ transformr+Ú start_pointsÚ maxlengthÚintegration_directionÚbroken_streamlinesrÉ)Ú
streamplotrÚlines)Úvr„rgr‰rr+rÿrrCsrrs}ð.
ŒC‹E× Ñ Ø Ø Ø Ø ð