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

1102 lines
127 KiB
Plaintext
Raw Normal View History

Ë
†Rj
ãó¶dZddlZddlZddlZddlmZddlZddlZddl Z
ddl m Z m Z ddl
mZddlmZddlmZddlmZddlmZddlmZddlm Z!ddl"m#Z$ejJe&«Z'dZ(ejRejT«Z+e+jY«Z-e+j\j_«Dcgc]}e0e1|««Œc}Z2e-e2zDcgc]}d|zŒ c}Z3Gddejh«Z5Gd „d
e5«Z6Gd d e5«Z7Gd
d«Z8Gdd«Z9Gddejh«Z:dZ;Gdde:«Z<Gdde:«Z=ycc}wcc}w)z*
Classes for the ticks and x- and y-axis.
éN)ÚReal)Ú_apiÚcbooké´Úgrid_cóòeZdZdZdddddddddddddddddddddœˆfd
ZdZed „«Zd
Zd Z d Z
d
Z dˆfd„ Z dZ
dZdZdZej$d«ZˆfdZdZdZdZdZdZdZˆxZS)ÚTickaÛ
Abstract base class for the axis ticks, grid lines and labels.
Ticks mark a position on an Axis. They contain two lines as markers and
two labels; one each for the bottom and top positions (in case of an
`.XAxis`) or for the left and right positions (in case of a `.YAxis`).
Attributes
----------
tick1line : `~matplotlib.lines.Line2D`
The left/bottom tick marker.
tick2line : `~matplotlib.lines.Line2D`
The right/top tick marker.
gridline : `~matplotlib.lines.Line2D`
The grid line associated with the label position.
label1 : `~matplotlib.text.Text`
The left/bottom tick label.
label2 : `~matplotlib.text.Text`
The right/top tick label.
NTFr)ÚsizeÚwidthÚcolorÚtickdirÚpadÚ labelsizeÚ
labelcolorÚlabelfontfamilyÚzorderÚgridOnÚtick1OnÚtick2OnÚlabel1OnÚlabel2OnÚmajorÚ
labelrotationÚ
grid_colorÚgrid_linestyleÚgrid_linewidthÚ
grid_alphac óöt|«| €Itjd}|r|dvrtjd} n|s|dvrtjd} nd} |j |j d¬««||_||_||_|j}|rdnd }|tj|d
|d }||_
|tj|d
|d }||_ |tj|d
}|tj|d
|d}||_ | €tj|d} tj| d«rtj|d
} |tj|d}|j|«| €:|rt j"j$dz} nt j"j$} | |_tj(|d«}tj(|d«}tj(|d«}|€(t+j,|«stjd}|j/«Dcic] \}}|dd|Œ
}}}t!j"gg|d| |
|||¬« |_t!j"gg|d| ||||¬« |_t!j"ggf||| ||ddœ|¤Ž|_t6|j4j9«_t=j>t@jBt@jB|| ||
|jDd¬«|_#t=j>t@jBt@jB|| ||
|jDd¬«|_$|jK|«|j0|j2|j4|jF|jHfD]}|jM|«Œ|jO|«ycc}}w)
bbox is the Bound2D bounding box in display coords of the Axes
loc is the tick location in data coords
size is the tick size in points
axes.grid.which©Úbothrú axes.grid©r!ÚminorF©Úrootrr$ú.z.sizez.widthz.colorz.padz .labelcolorÚinheritz
.labelsizeg{®Gáz„?z
grid.colorzgrid.linestylezgrid.linewidthz
grid.alphaéÚnone)r Ú linestylerÚvisibleÚmarkeredgecolorÚ
markersizeÚmarkeredgewidthÚ)r Úalphar,r+Ú linewidthÚmarkeré)Úfontsizer r,Ú
fontfamilyÚrotation)(ÚsuperÚ__init__ÚmplÚrcParamsÚ
set_figureÚ
get_figureÚaxesÚ_locÚ_majorÚ__name__Ú_sizeÚ_widthÚ _base_padrÚ
_str_equalÚ_set_labelrotationÚmlinesÚLine2DrÚ_zorderÚ
_val_or_rcÚmcolorsÚ_has_alpha_channelÚitemsÚ tick1lineÚ tick2lineÚgridlineÚGRIDLINE_INTERPOLATION_STEPSÚget_pathÚ_interpolation_stepsÚmtextÚTextÚnpÚnanÚ_labelrotationÚlabel1Úlabel2Ú_apply_tickdirÚ_set_artist_propsÚupdate_position) Úselfr>Úlocr
r r r
rrrrrrrrrrrrrrrrÚkwargsÚwhichÚnameÚ major_minorÚgrid_kwÚartistÚ __class__s €úR/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/axis.pyr9z
Tick.__init__;ø€ô: ÑÔà ˆ>Ü—L‘LÐ!2Ñ3ˆEÙ˜%Ð#4ÑŸ 2Ù %Ð+<Ñ"<ÜŸ 2‘àà ˜Ÿ¨U˜ÓˆŒ àˆŒ ؈Œ à}‰}ˆÙ!&g¨Gˆ à ˆ—<< 4 ¨+¨°eÐ <Ñ=ˆˆŒ
à ˆ=Ü—LL D ¨;¨-°vÐ!>Ñ?ˆE؈Œ à ˆ—L‘L D 6¨ Ñ1ˆEà ˆ;Ü—,‘, $  q¨¨
°TÐ;ˆC؈Œà Ð ÜŸ¨¨¨kÐ&:Ñ;ˆJä × Ñ ˜J¨ Ô Ÿ¨¨¨f oÑ6ˆJà Ð ÜŸ ¨ v¨ZÐ%8Ñ9ˆIà ×Ñ 
Ô ˆ>ÙÜŸ×Ñ4‘äŸ×-؈Œ ä—^‘^ J° Ó
ÜŸ¨Ð8HÓÜŸ¨Ð8HÓØ Ð ¤g×&@Ñ&@ÀÔ&Lô Ÿ 3ˆJØ(.¯ © «×  11QR5˜!‘8ÐÑŸØ Ø 6°&À'Ø!¨dÀEô
ˆŒô
 ŸØ Ø 6°&À'Ø!¨dÀEô
ˆŒô
Ÿ
Ø ð
à J¸ØÀrñ
ðñ 
ˆŒ
ô

×ÑÓ Ô—j‘jÜ F‰F”B—F j¸×1DÑ1DÀQÑ1GôIˆŒ ô—j‘jÜ F‰F”B—F j¸×1DÑ1DÀQÑ1GôIˆŒ ð
×јGÔ—~‘~ t§~¡~°t·}±}Ø—{{ D§K¡Kð +ˆ × "  
×јSÕ!ùóG8sÉO5có²t|t«r|}d}n t|ttf«r|\}}nd}|}t j
ddg|¬«||f|_y)NrÚdefaultÚauto)r)Ú
isinstanceÚstrÚtupleÚlistrÚ
check_in_listrX)r^rÚmodeÚangles rirFzTick._set_labelrotation½sXÜ m¤SÔ  ˆD؉EÜ
˜
¬¬t 
'‰KˆDˆ!ˆ ×јF IÐ.¸dÕ# U˜mˆÕócó<|j|j«zS©N)rDÚget_tick_padding©r^s riÚ_padz Tick._padÉsà~‰~ × 5Ñ 5Ó 7Ñ7rtcó˜|€(tj|jd}||_ytjgd¢|¬«||_y)z;Set tick direction. Valid values are 'out', 'in', 'inout'.Nz
.direction)ÚinÚoutÚinout)r
)r:r;rArrqÚ_tickdir)r^r
s rir[zTick._apply_tickdirÍsEð ˆ—ll d§m¡m _°JÐ#?Ñ@ˆ ˆ
ô
× Ñ Ò5¸wÕ ˆ
rtcó|jSrv)r~rxs riÚ get_tickdirzTick.get_tickdirÙs Ø}‰}ÐrtcóFddddœ}|j||jzS)z/Get the length of the tick outside of the Axes.gçà?çð?)r{r}r|)rBr~)r^Úpaddings rirwzTick.get_tick_paddingÜs.ðØØñ
ˆð
z‰z˜G D§M¡MÑ2rtcóx|j|j|j|j|jg}|Srv)rNrOrPrYrZ)r^Úchildrens riÚ get_childrenzTick.get_childrenås.Ø—NN D§N¡NØ—M‘M 4§;¡;°· ± ðàˆrtcólt|||«|jj||«d|_y©NT)r8Ú
set_clip_pathrPÚstale)r^ÚpathÚ transformrhs €rizTick.set_clip_pathês-ø€ä
јd 
×# D¨)Ôˆ
rtcó
difS)
Test whether the mouse event occurred in the Tick marks.
This function always returns false. It is more useful to test if the
axis as a whole contains the mouse rather than the set of tick marks.
)r^Ú
mouseevents riÚcontainsz
Tick.containsðsðbˆrtcó6|j|¬«d|_y)zm
Set the tick label pad in points
Parameters
----------
val : float
)rTN)Ú
_apply_paramsr©r^Úvals riÚset_padz Tick.set_padùsð
×јsÐÔˆ
rtcó|jS)z.Get the value of the tick label pad in points.)rDrxs riÚget_padz Tick.get_pads à~‰~Ðrtcó|jS)z3Return the tick location (data coords) as a scalar.)r?rxs riÚget_locz Tick.get_locs ày‰yÐrtcól|j«sd|_y|j|j|j «¬«|j
|j |j|j|jfD]}|j|«Œ|j|j«d|_y)NF©Úgid) Ú get_visiblerÚ
open_grouprAÚget_gidrPrNrOrYrZÚdrawÚ close_group)r^Úrendererrgs riz Tick.draw sà×ÑÔˆDŒJØ Ø×јDŸM™M¨t¯|©|«~ÐÔ—}‘} d§n¡n°d·n±nØ—{{ D§K¡Kð "ˆ K‰K˜Õ  ×јTŸ]™]Ôˆ
rtcóžt||«|jj|«|jj|«d|_y)zl
Set the url of label1 and label2.
Parameters
----------
url : str
TN)r8Úset_urlrYrZr)r^Úurlrhs €riz Tick.set_urls<ø€ô ˜ÔØ ×јCÔ Ø ×јCÔ Øˆ
rtcóF|j|jd¬««y©NFr%©r<r=©r^Úas rir\zTick._set_artist_props%sØ T—__¨%1rtcótd«)zX
Return the view limits ``(min, max)`` of the axis the tick belongs to.
úDerived must override©ÚNotImplementedErrorrxs riÚget_view_intervalzTick.get_view_interval(sô"Ð"9Ó:rtc ód|jfd|jfd|jfd|jfd|jffD]*\}}|vsŒ |j j
|««Œ,tˆfddD««r=‰j
d|j«|_j
d |j«|_ j
d
|j«|_
|jj
d |j««|j|jfD]8}|j|j«|j|j«Œ:|j«d }|jj!|«|j#«d }|jj!|«j%«Dcic]
\}}|d
vsŒ ||Œ}}}dvrd|d<|jj&di|¤Ž|jj&di|¤Ž|j%«D]\}}t)|d|z|«Œdvrr|j+j
d««|jj'|j,d¬«|jj'|j,d¬«j%«Dcic]\}}|dvr|dd|Œ} }}|jj&di| ¤Ž|jj&di| ¤Žj%«Dcic]\}}|t.vr|dd|Œ}
}}|jj&di|
¤Žycc}}wcc}}wcc}}w)Nrrrrrc3ó&K|]}|vŒ
y­wrvr)Ú.0rdr`s €riú <genexpr>z%Tick._apply_params.<locals>.<genexpr>6søèø€ÒH˜qˆqFŒ{ÑHùsƒ)r
r rr
r
r rr
r)r rr r-Ú_rr4)r7)rrrr)r)rPrNrOrYrZÚ set_visibleÚpopÚanyrBrCrDr[r~Úset_markersizeÚset_markeredgewidthÚ_get_text1_transformÚ
set_transformÚ_get_text2_transformrMÚsetÚsetattrrFrXÚ_gridline_param_names) r^r`rbÚtargetÚlineÚtransrdreÚtick_kwÚlabel_kwrfs ` rir“zTick._apply_params.s-ø€Ø¯
©
Я©Ð¯©Ð(¨$¯+©+Ð(¨$¯+©+Ð 5‰LˆD
vŠ~Ø×" 6§:¡:¨dÓ#3Õ
 ÓHÐ$GÔ Ÿ F¨D¯J©JÓ7ˆDŒJð!Ÿ*™* W¨d¯k©kÓ:ˆDŒKØ#ŸZ™Z¨¨t¯~©~Ó>ˆDŒNð
× Ñ  §
¡
¨9°d·m±mÓ DÔ Ÿ¨¯©Ð
6Ø×# D§J¡JÔׯ©Õ
×Ñ2ˆEØ K‰K× % eÔ ×Ñ2ˆEØ K‰K× % eÔ ,Ø$*§L¡L£N×O™D˜A˜q°aÐ;NÒ6N1aOˆÑ  Ø)/°©ˆGÐ ˆ×ÑÑ%˜WÒˆ×ÑÑ%˜WÒ—MM“Oò &‰DˆAˆ D˜# ™'   ˜ × # F§J¡J¨Ó$?Ô K‰KO‰O T×%8Ñ%8¸Ñ%;ˆ K‰KO‰O T×%8Ñ%8¸Ñ%;ˆ <à)/¯©«÷L¡  AØÐabE˜1‘HðLˆñLàˆ Ñ#˜(Òˆ Ñ#˜(Ò#à(.¯ © «÷  1ØÔQR5˜!‘8ðñˆ
×ÑÑ$˜GÓ$ùó)PùóLùó
2sÇ M;Ç$M;Ë!NÍNcótd«)ú:Set the location of tick in data coords with scalar *loc*.r­©r^r_s rir]zTick.update_position]óä!Ð"9Ó:rtcótd«©Nr­rxs rizTick._get_text1_transformaóÜ!Ð"9Ó:rtcótd«rxs rizTick._get_text2_transformdrtrv)rAÚ
__module__Ú __qualname__Ú__doc__r9rFÚpropertyryr[r€rwr‡r‘rr˜ÚmartistÚallow_rasterizationr¡r\r“r]Ú
__classcell__©rhs@rir r %ø„ñð.ØØØØ ØØØØØØØØØØØØØØØö+@"òD
ñð
 òòõ
ò ò òòð
× Ñ ñ ó ô ò -%ò^;rtr cóHeZdZdZdZˆfdZdZdZˆfdZdZdZ ˆxZ
S) ÚXTickzq
Contains all the Artists needed to make an x tick - the tick line,
the label text and the grid line
Úxtickcó0t||i|¤Ž|j}|jj dgdgf|j d«¬«|j j dgdgf|j d«¬«|jj ddgddgf|j d«¬«|j«\}}}|jj dd|||¬«|j«\}}}|jj dd|||¬«y©NrÚtick1)Údatarr4Útick2Úgrid©ÚverticalalignmentÚhorizontalalignmentr) r8r9r>rNÚget_xaxis_transformrOrPrYrZ©r^Úargsr`ÚaxrÃÚvaÚharhs €rir9zXTick.__init__oó!ø€Ü
ј) 
Y‰YˆØ ×ÑØ#˜s r×'=Ñ'=¸gÓ'Fð ô Hà ×ÑØ#˜s r×'=Ñ'=¸gÓ'Fð ô Hà
×ÑØa&˜1˜a˜!¨R×-CÑ-CÀFÓ-Kð ô Mð×3‰
ˆˆr Ø °bÀEð ô
ð×3‰
ˆˆr Ø °bÀEð õ
rtcóL|jj|j«Srv)r>Úget_xaxis_text1_transformryrxs rizXTick._get_text1_transform…óØy‰y×2°4·9±9Ó=rtcóL|jj|j«Srv)r>Úget_xaxis_text2_transformryrxs rizXTick._get_text2_transformˆrtcó4t||«tjtjftjtjfddœ|j
\}}|j j|«|jj|«y)N)ú|rñ©r|r{r}) r8r[rGÚTICKDOWNÚTICKUPr~rNÚ
set_markerrO©r^r
Úmark1Úmark2rhs €rir[zXTick._apply_tickdirsrø€ä
ј—O‘O¤V§]¡]З==¤&§/¡/Ðñ
ð -‰-ñ  ˆˆuð
×! %Ô ×! (rtcó4|jj|f«|jj|f«|jj|f«|jj |«|j j |«||_d|_y©TN) rNÚ set_xdatarOrPrYÚset_xrZr?rs rir]zXTick.update_positionópà × Ñ  # Ô × Ñ  # Ô
×Ñ  Ô ×ј#ÔØ ×ј#ÔØˆŒ ؈
rtcóB|jjjSrv)r>ÚviewLimÚ intervalxrxs rizXTick.get_view_interval óày‰y× Ñ ×*rt© rAr9r[r]s@rir×r×hó-ø„ñð€Hô
ò, ö+rtr×cóHeZdZdZdZˆfdZdZdZˆfdZdZdZ ˆxZ
S) ÚYTickzp
Contains all the Artists needed to make a Y tick - the tick line,
the label text and the grid line
Úytickcó0t||i|¤Ž|j}|jj dgdgf|j d«¬«|j j dgdgf|j d«¬«|jj ddgddgf|j d«¬«|j«\}}}|jj dd|||¬«|j«\}}}|jj dd|||¬«y) r8r9r>rNÚget_yaxis_transformrOrPrYrZs €rir9zYTick.__init__¬rtcóL|jj|j«Srv)r>Úget_yaxis_text1_transformryrxs rizYTick._get_text1_transformÂrtcóL|jj|j«Srv)r>Úget_yaxis_text2_transformryrxs rizYTick._get_text2_transformÅrtcó4t||«tjtjftjtjfddœ|j
\}}|j j|«|jj|«y)N)) r8r[rGÚTICKLEFTÚ TICKRIGHTr~rNrOs €rir[zYTick._apply_tickdirÈsvø€ä
ј—OO¤V×%5Ñ%5Ð×#¤V§_¡_Ðñ
ð -‰-ñ  ˆˆuð
×! %Ô ×! (rtcó4|jj|f«|jj|f«|jj|f«|jj |«|j j |«||_d|_y) rNÚ set_ydatarOrPrYÚset_yrZr?rs rir]zYTick.update_positionÓrtcóB|jjjSrv)r>rÿÚ intervalyrxs rizYTick.get_view_intervalÝrrtrs@rirr¥rrtrcó~eZdZdZdZed«Zejd«Zed«Zejd«Zy)ÚTickera4
A container for the objects defining tick position and format.
Attributes
----------
locator : `~matplotlib.ticker.Locator` subclass
Determines the positions of the ticks.
formatter : `~matplotlib.ticker.Formatter` subclass
Determines the format of the tick labels.
có<d|_d|_d|_d|_yr‰)Ú_locatorÚ
_formatterÚ_locator_is_defaultÚ_formatter_is_defaultrxs rir9zTicker.__init__îs ؈Œ
؈ŒØ#'ˆÔ Ø%)ˆÕ"rtcó|jSrv)rrxs riÚlocatorzTicker.locatorôs à}‰}Ðrtcó\t|tj«s td«||_y)Nz7locator must be a subclass of matplotlib.ticker.Locator)rmÚmtickerÚLocatorÚ TypeErrorr©r^rs rirzTicker.locatorøs)ä˜'¤7§?¡?Ôð
ˆ
rtcó|jSrv)rrxs riÚ formatterzTicker.formatterÿó àÐrtcó\t|tj«s td«||_y)Nz;formatter must be a subclass of matplotlib.ticker.Formatter)rmrÚ Formatterr!r©r^r$s rir$zTicker.formatters+ä˜)¤W×%6Ñ%6Ôð
#ˆrtN) rAr9rÚsetterr$rrtrirrâsfñ ò ñóðð
‡^ óð ð ñóðð×Ñññ$rtrcóeZdZdZdZdZy)Ú
_LazyTickListz—
A descriptor for lazy instantiation of tick lists.
See comment above definition of the ``majorTicks`` and ``minorTicks``
attributes.
có||_yrv)r@)r^rs rir9z_LazyTickList.__init__s ؈ rtcóÖ||S|jr-g|_|jd¬«}|g|_|jSg|_|jd¬«}|g|_|jS)NT©rF)r@Ú
majorTicksÚ _get_tickÚ
minorTicks)r^ÚinstanceÚownerÚticks riÚ__get__z_LazyTickList.__get__sxØ Ð Øˆ{Š{Ø&(Ô×Ð5Ø'+ fÔ×*à&(Ô×Ð6Ø'+ fÔ×*rtN)rAr9r5rrtrir+r+ sñòó+rtr+có.eZdZdZdZdZejdd¬«ZdZ dd d
œˆfd
Z
e d «Z e jd
«Z e d«Zejd«Ze d«Zejd«Ze d«Zejd«ZdZdZdZed ¬«Zed¬«ZdZdZe eed¬«ZdzdZdZdZd „Zd!„Zd"„Zd#„Z d$„Z!d%„Z"d&„Z#d'„Z$d(„Z%d)„Z&d*„Z'd+„Z(d{d,„Z)dd-„Z*e+d|d.„«Z,dzˆfd/„ Z-d0„Z.d|d1„Z/d2„Z0d|d3„Z1d4„Z2d5„Z3d6„Z4d d7œd8„Z5d9„Z6d:„Z7dzd;„Z8dzdd<œd=„Z9d>„Z:e;jxd?„«Z=d@„Z>dA„Z?dB„Z@dC„ZAdD„ZBdE„ZCdF„ZDd}dG„ZEdH„ZFdI„ZGd|dJ„ZHdK„ZIdL„ZJddMœdN„ZKd|dO„ZLdP„ZMdQ„ZNdR„ZOdS„ZPdT„ZQdU„ZRdV„ZSdW„ZTdzdX„ZUdzdY„ZVd~dZ„ZWd[„ZXd\„ZYd]„ZZd^„Z[d_„Z\d`„Z]da„Z^db„Z_dc„Z`dzdd„Zade„Zbdf„Zcdg„Zddh„Zedi„Zfdj„Zge eBegdk¬«Zheidl„«Zjdddmœdn„ZkddMœdo„ZldzddMœdp„Zmdq„Zndr„Zods„Zpdzdt„Zqdu„Zrdv„Zsdw„Ztdx„Zudy„ZvˆxZwS)ÚAxisaÁ
Base class for `.XAxis` and `.YAxis`.
Attributes
----------
isDefault_label : bool
axes : `~matplotlib.axes.Axes`
The `~.axes.Axes` to which the Axis belongs.
major : `~matplotlib.axis.Ticker`
Determines the major tick positions and their label format.
minor : `~matplotlib.axis.Ticker`
Determines the minor tick positions and their label format.
callbacks : `~matplotlib.cbook.CallbackRegistry`
label : `~matplotlib.text.Text`
The axis label.
labelpad : float
The distance between the axis label and the tick labels.
Defaults to :rc:`axes.labelpad`.
offsetText : `~matplotlib.text.Text`
A `.Text` object containing the data offset of the ticks (if any).
pickradius : float
The acceptance radius for containment tests. See also `.Axis.contains`.
majorTicks : list of `.Tick`
The major ticks.
.. warning::
Ticks are not guaranteed to be persistent. Various operations
can create, delete and modify the Tick instances. There is an
imminent risk that changes to individual ticks will not
survive if you work on the figure further (including also
panning/zooming on a displayed figure).
Working on the individual ticks is a method of last resort.
Use `.set_tick_params` instead if possible.
minorTicks : list of `.Tick`
The minor ticks.
éNz3.10z'get_converter and set_converter methods)Ú alternativecó”djt|«jg|jjj d«¢­ŽS)Nz {}({},{})©rr)ÚformatÚtyperAr>Ú transAxesrrxs riÚ__str__z Axis.__str__`sDØ!ˆ{× ‹J× Ñ ðIØ"&§)¡)×"5Ñ"5×"?Ñ"?ÀÓ"GòIð IrtéT)Ú
pickradiusÚclearcó¬t|«d|_|j|j d¬««d|_||_t«|_t«|_ tjdg¬«|_ d|_
tjt j"t j"t$j&dt$j&dt$j&d¬ «|_|j+|j(«tjt j"t j"«|_|j+|j,«t$j&d
|_||_t3«|_t3«|_|r|j9«d|_ y d |_d|_d |_d|_ y ) a
Parameters
----------
axes : `~matplotlib.axes.Axes`
The `~.axes.Axes` to which the created Axis belongs.
pickradius : float
The acceptance radius for containment tests. See also
`.Axis.contains`.
clear : bool, default: True
Whether to clear the Axis on creation. This is not required, e.g., when
creating an Axis as part of an Axes, as ``Axes.clear`` will call
``Axis.clear``.
.. versionadded:: 3.8
TFr%Úunits©Úsignalsúaxes.labelsizeúaxes.labelweightúaxes.labelcolor)r5Ú
fontweightr ú
axes.labelpadN)!r8r9Ú_remove_overlapping_locsr<r=ÚisDefault_labelr>rrr$rÚCallbackRegistryÚ callbacksÚ
_autolabelposrTrUrVrWr:r;Úlabelr\Ú
offsetTextÚlabelpadrAÚdictÚ_major_tick_kwÚ_minor_tick_kwrBÚ
_converterÚ_converter_is_explicitrDÚ
_autoscale_on)r^r>rArBrhs €rir9z
Axis.__init__dsSø€ô ÑÔØ(,ˆÔ ˜Ÿ¨U˜ÓÔàˆŒ Ü“XˆŒ
Ü“XˆŒ
Ü׸ ÔŒàÔä—Z‘ZÜ F‰F”B—F—\\Ð"2Ñ—||Ð$6Ñ—,
ˆŒ
ð
×јtŸz™zÔŸ*™*¤R§V¡V¬R¯V©VÓŒØ ×јtŸÔŸ  _ÑŒ
àŒô#›fˆÔÜ"›fˆÔá Ø J‰JŒLð "ˆÕð #ˆDŒOØ*/ˆ ˆDŒJà!ˆÕrtcó.|jjSrv©rrrxs riÚisDefault_majloczAxis.isDefault_majlocóàz‰z×-rtcó&||j_yrvr[©r^Úvalues rir\zAxis.isDefault_majloc¡óà).ˆ
Õ&rtcó.|jjSrv©rrrxs riÚisDefault_majfmtzAxis.isDefault_majfmt¥óàz‰z×/rtcó&||j_yrvrcr_s rirdzAxis.isDefault_majfmt©óà+0ˆ
Õ(rtcó.|jjSrv©r$rrxs riÚisDefault_minloczAxis.isDefault_minloc­r]rtcó&||j_yrvrir_s rirjzAxis.isDefault_minloc±rartcó.|jjSrv©r$rrxs riÚisDefault_minfmtzAxis.isDefault_minfmtµrertcó&||j_yrvrmr_s rirnzAxis.isDefault_minfmt¹rgrtcó‚|jj|j«j|j«S)z/Return Grouper of shared Axes for current axis.)r>Ú _shared_axesÚ_get_axis_nameÚ get_siblingsrxs riÚ_get_shared_axeszAxis._get_shared_axes½s3ày‰y× × Ñ Ó #ß#/¡<°· ± Ó#:ð ;rtcó‚|j«}|j«Dcgc]}|j|Œc}Scc}w)z,Return list of shared axis for current axis.)rrrtÚ _axis_map)r^rbs riÚ_get_shared_axiszAxis._get_shared_axisÂs6à×$ˆØ-1×-BÑ-BÓ-DÖE r ˜EùÒEs£<cóptˆfdjjj«D««S)zReturn the axis name.c3ó0K|]
\}}|ur|Œy­wrvr)rbÚaxisr^s €rir´z&Axis._get_axis_name.<locals>.<genexpr>És#øèø€ò%™Z˜T 4ؘt‘|ôñ%ùsƒ)Únextr>rvrMrxs`rirrzAxis._get_axis_nameÇs/ø€äó%¨4¯9©9×+>Ñ+>×+DÑ+DÓ+Fô %rtr.Fcó|jSrv)rLrxs riÚget_remove_overlapping_locsz Axis.get_remove_overlapping_locsÒsØ×,rtcó$t|«|_yrv)ÚboolrLr”s riÚset_remove_overlapping_locsz Axis.set_remove_overlapping_locsÕsÜ(,¨S« ˆÕ%rtzUIf minor ticker locations that overlap with major ticker locations should be trimmed.)ÚdoccóÀd|_||jj}|jj |«|jj ||f«d|_y)a
Set the coordinates of the label.
By default, the x coordinate of the y label and the y coordinate of the
x label are determined by the tick label bounding boxes, but this can
lead to poor alignment of multiple labels if there are multiple Axes.
You can also specify the coordinate system of the label with the
transform. If None, the default coordinate system will be the axes
coordinate system: (0, 0) is bottom left, (0.5, 0.5) is center, etc.
FNT)rPr>r>rQÚ set_positionr)r^rs riÚset_label_coordszAxis.set_label_coordsÝsPðÔØ Ð ØŸ ™ ×+ˆIà
× Ñ  Ô
×Ñ  A Ôˆ
rtcó6|jj«S)z,Return the transform used in the Axis' scale)Ú_scaleÚ
get_transformrxs rir‡zAxis.get_transformñsà{‰{×*rtcó.|jjS)z#Return this Axis' scale (as a str).)r†rbrxs riÚ get_scalezAxis.get_scaleõsà{‰{×ÑÐrtc óît|tj«stj||fi|¤Ž|_n||_|jj |«d|_d|_d|_d|_ yr‰)
rmÚmscaleÚ ScaleBaseÚ
scale_factoryr†Ú#set_default_locators_and_formattersr\rjrdrn)r^r`r`s riÚ
_set_scalezAxis._set_scaleùsdܘ×!1Ñ!1Ô ×.¨u°dÑE¸fÑEˆDˆDŒKØ ×Ô=à $ˆÔØ $ˆÔØ $ˆÔØ $ˆÕrtc
óP|j«}|j«jtj tj«}|j «D]9}|j |j|fi|¤Ž|j«d|_ Œ;|j«jtj tj«}||k7rF|jjdi|jjDcic] }d|||k(Œ
c}¤Žyycc}w)a;
Set this Axis' scale.
Parameters
----------
value : str or `.ScaleBase`
The axis scale type to apply. Valid string values are the names of scale
classes ("linear", "log", "function",...). These may be the names of any
of the :ref:`built-in scales<builtin_scales>` or of any custom scales
registered using `matplotlib.scale.register_scale`.
**kwargs
If *value* is a string, keywords are passed to the instantiation method of
the respective class.
scaleNr)
rrÚget_major_locatorÚ nonsingularrVÚinfrtrvrÚ_update_transScalerr>Úautoscale_viewÚ _axis_names)r^r`r`rbÚold_default_limsrçÚnew_default_limsrds riÚ_set_axes_scalezAxis._set_axes_scalesð ×$ˆØ ×(™[¬"¯&©&¨´"·&±&Ó à× ˆ )ˆBL‰L˜Ñ × )¨%Ñ :°6Ò × ˆB ð!×(™[¬"¯&©&¨´"·&±&Ó à Ð 
%ˆDI‰I× 
KØ37·9±9×3HÑ3HÖI¨aU˜1˜#;  T¡ Ñ
Kð 0ùòJsÄ D# cóX|jj|||j««S)zs
Return the range *vmin*, *vmax*, restricted to the domain supported by the
current scale.
)r†Úlimit_range_for_scaleÚ
get_minpos)r^ÚvminÚvmaxs rizAxis.limit_range_for_scale%s$ð
{‰{×°t¸T¿_¹_Ó=NÓOrtcó|jS)z'Return whether this Axis is autoscaled.©rYrxs riÚ_get_autoscale_onzAxis._get_autoscale_on,sà×!rtcó|||_yy)
Set whether this Axis is autoscaled when drawing or by `.Axes.autoscale_view`.
If b is None, then the value is not changed.
Parameters
----------
b : bool
Nr¡)r^Úbs riÚ_set_autoscale_onzAxis._set_autoscale_on0sð
ˆ=Ø!"ˆ ð rtcór|j|jg|j«¢|j«¢Srv)rQrRÚget_major_ticksÚget_minor_ticksrxs rir‡zAxis.get_children=s?Ø
˜DŸO™OðBØ×BØ*.×*>Ñ*>Ó*@ðBð Brtcó¦|jj«tjdxrtjddv|jd<y)Nr"rr r)rUrBr:r;rxs riÚ_reset_major_tick_kwzAxis._reset_major_tick_kwAóIØ ×Ñ× ˜[ÑEÜ Ð/Ð3DÐ
×ј%rtcó¦|jj«tjdxrtjddv|jd<y)Nr"rr#r)rVrBr:r;rxs riÚ_reset_minor_tick_kwzAxis._reset_minor_tick_kwGrtcóR|jj«|jjtjd«|jj tjd«|jj
tjd«|jj«tjd|_|j«|jd«tjdg¬«|_
tjdxrtjd d
v|jd <tjdxrtjd d v|jd <|j!«d
|_d|_d
|_d|_y
)zÿ
Clear the axis.
This resets axis properties to their default values:
- the label
- the scale
- locators, formatters and ticks
- major and minor grid
- units
- registered callbacks
rIrGrHrKÚlinearrDrEr"rr rr#NFT)rQÚ_reset_visual_defaultsÚ set_colorr:r;Ú set_fontsizeÚset_fontweightrRrSÚ_initrrrNrOrUrVÚ reset_ticksrWrXrDrrxs rirBz
Axis.clearMsNð
×
×ÑœSŸ\™\Ð*;Ñ
×Ѥ§ ¡ Ð-=Ñ >Ô
×!¤#§,¡,Ð/AÑ"BÔ ×Ÿ  _ÑŒ
à
Œ à ˜Ô׸ ÔŒô ˜[ÑEÜ Ð/Ð3DÐ
×јHÑ ˜[ÑEÜ Ð/Ð3DÐ
×ј
×ÑÔàˆŒØ&+ˆÔˆŒ
؈
rtcó¶ |` |` |j|jj
«y#t$rYŒ5wxYw#t$rYŒAwxYw#t$rYywxYw)zs
Re-initialize the major and minor Tick lists.
Each list starts with a single fresh Tick.
N)r/ÚAttributeErrorr1r>Úpatchrxs rizAxis.reset_ticksxskð Øð Øð Ø × Ñ ˜tŸy™yŸÕ /øôò Ù ð ûôò Ù ð ûôò Ù ð ús,.=ˆ%A ® :¹:½ A ÁA Á AÁAcóš|j«}|dk(rF|j}|jtj|j
|j ««y|dk(rF|j}|jtj|j|j ««y|dk(rR|j}|jtj|j|j|j¬««y|dk(r&|jtjd¬««y|jtj««y) aæ
Display default minor ticks on the Axis, depending on the scale
(`~.axis.Axis.get_scale`).
Scales use specific minor locators:
- log: `~.LogLocator`
- symlog: `~.SymmetricalLogLocator`
- asinh: `~.AsinhLocator`
- logit: `~.LogitLocator`
- default: `~.AutoMinorLocator`
Displaying minor ticks may reduce performance; you may turn them off
using `minorticks_off()` if drawing speed is a problem.
ÚlogÚsymlogÚasinh)ÚbaseÚsubsÚlogitT©r$N)r‰r†Úset_minor_locatorrÚ
LogLocatorr½ÚSymmetricalLogLocatorÚ
_transformÚ AsinhLocatorÚ linear_widthÚ_baseÚ_subsÚ LogitLocatorÚAutoMinorLocator)r^rÚss riÚ
minorticks_onzAxis.minorticks_onŒð Ó ˆØ EŠ>Ø ˆ × "¤7×#5Ñ#5°a·f±f¸a¿f¹fÓ#EÕ

Ø ˆ × ×-¨a¯l©l¸A¿F¹FÓ
Eà

Ø ˆ × ×¯©¸a¿g¹gØ./¯g©gô

Ø × "¤7×#7Ñ#7¸dÔ#CÕ × "¤7×#;Ñ#;Ó#=Õ >rtcóJ|jtj««y)z!Remove minor ticks from the Axis.N)rÚ NullLocatorrxs riÚminorticks_offzAxis.minorticks_off®sà ×Ñœw×5rtc óXtjgd¢|¬«|j|«}|rv|dvr+|j«|jj |«|dvr+|j
«|jj |«|j«d |_y
|dvr>|jj |«|jD]}|jd i|¤ŽŒ|dvr>|jj |«|jD]}|jd i|¤ŽŒd|vsd|vrS|jj|jjdd«xs|jjdd««d|vr|jj|d«d |_y
) aW
Set appearance parameters for ticks, ticklabels, and gridlines.
For documentation of keyword arguments, see
:meth:`matplotlib.axes.Axes.tick_params`.
See Also
--------
.Axis.get_tick_params
View the current style settings for ticks, ticklabels, and
gridlines.
©rr$r!©ra©rr!©r$r!rrFrTNr)rrqÚ_translate_tick_paramsrªrUÚupdater­rVr/r“r1rRÚgetr±r)r^raÚresetr`Úkwtransr4s riÚset_tick_paramszAxis.set_tick_params²s—ô
×ÑÒ5¸UÕ×-¨fÓñ ØÐ××*¨7ÔÐ××*¨7Ô × Ñ Ô ð$ˆ
ð!Ð×*¨7Ô ŸO™Oò2&D×ÓÐ×*¨7Ô ŸO™Oò2&D×Ó˜WÑ
°gÑ(=Ø××'×+¨J¸ÓBØ×*×.¨z¸5ÓCð˜wÑ×)¨'°,Ñ*?Ôˆ
rtcó²tjddg|¬«|dk(r|j|jd¬«S|j|jd¬«S)au
Get appearance parameters for ticks, ticklabels, and gridlines.
.. versionadded:: 3.7
Parameters
----------
which : {'major', 'minor'}, default: 'major'
The group of ticks for which the parameters are retrieved.
Returns
-------
dict
Properties for styling tick elements added to the axis.
Notes
-----
This method returns the appearance parameters for styling *new*
elements added to this axis and may be different from the values
on current elements if they were modified directly by the user
(e.g., via ``set_*`` methods on individual tick objects).
Examples
--------
::
>>> ax.yaxis.set_tick_params(labelsize=30, labelcolor='red',
... direction='out', which='major')
>>> ax.yaxis.get_tick_params(which='major')
{'direction': 'out',
'left': True,
'right': False,
'labelleft': True,
'labelright': False,
'gridOn': False,
'labelsize': 30,
'labelcolor': 'red'}
>>> ax.yaxis.get_tick_params(which='minor')
{'left': True,
'right': False,
'labelleft': True,
'labelright': False,
'gridOn': False}
rr$Úreverse)rrqrUrV)r^ras riÚget_tick_paramszAxis.get_tick_paramsßscô^
×јG WÐ-°UÕ  Ø××#¨Tðð
ð×*¨4×+>Ñ+>ÈÐMrtcói|¥}ddddddddd d
d d d
ddddddddddddgt¢}dddd d d d d
d
dddœ }|rNi}|jdk(}gd¢}|j«D]%\} }
|
|vsŒ |r| |vrŒ|j|
«|| <Œ'n6|j«D
cic]\} }
| |vr|
|j| «Œ}} }
d|vr|jd«} | |d<| |d<|D]} | |vsŒt d| d|«|j |«|Scc}
} w) a
Translate the kwargs supported by `.Axis.set_tick_params` to kwargs
supported by `.Tick._apply_params`.
In particular, this maps axis specific names like 'top', 'left'
to the generic tick1, tick2 logic of the axis. Additionally, there
are some other name translations.
Returns a new dict of translated kwargs.
Note: Use reverse=True to translate from those supported by
`.Tick._apply_params` back to those supported by
`.Axis.set_tick_params`.
r
r r r
rrrrrrrrrrÚlengthÚ directionÚleftÚbottomÚrightÚtopÚ labelleftÚ labelbottomÚ
labelrightÚlabeltopr) r7)Úcolorszkeyword z' is not recognized; valid keywords are )Ú axis_namerMÚ
ValueErrorrÖ)
ÚclsÚkwrÝÚkw_Ú allowed_keysÚkeymaprÙÚ is_x_axisÚ y_axis_keysÚoldkeyÚnewkeyÚkeys
rizAxis._translate_tick_paramssð ˆfˆð
G˜W Ø ˜Ð'8¸(ÀHØ y *¨jØ k 6¨8°W¸eØ ˜¨ °jØ ð
$ˆ ðØØØØØ

ˆñ ؈Ÿ
¨Ñ,ˆFˆKØ"(§,¡,£.ò
:‘˜Ø˜S’=Ù  V¨{Ñ%:Ø à*-¯'©'°&«/˜ šñ 
'-§l¡l£n÷á"F˜F¸À#¹
𘟠шGñð s‰?ؘÓ!ˆAØ ˆG Ø$%ˆG ò +ˆ˜ â™Lð
؈ùós Dcó”t|||«|j|jzD]}|j||«Œd|_yr‰)r8r/r1r)r^rÚchildrhs €rizAxis.set_clip_path[sEø€Ü
јd IÔ—_‘_ t§¡Ñ 1ˆEØ × Ñ   iÕ ˆ
rtcótd«)z3Return the ``(min, max)`` view limits of this axis.r­rxs rizAxis.get_view_intervalartcótd«)a7
Set the axis view limits. This method is for internal use; Matplotlib
users should typically use e.g. `~.Axes.set_xlim` or `~.Axes.set_ylim`.
If *ignore* is False (the default), this method will never reduce the
preexisting view limits, only expand them if *vmin* or *vmax* are not
within them. Moreover, the order of *vmin* and *vmax* does not matter;
the orientation of the axis will not change.
If *ignore* is True, the view limits will be set exactly to ``(vmin,
vmax)`` in that order.
r­©r^Úignores riÚset_view_intervalzAxis.set_view_intervalesô"Ð"9Ó:rtcótd«)z3Return the ``(min, max)`` data limits of this axis.r­rxs riÚget_data_intervalzAxis.get_data_intervaltrtcótd«)
Set the axis data limits. This method is for internal use.
If *ignore* is False (the default), this method will never reduce the
preexisting data limits, only expand them if *vmin* or *vmax* are not
within them. Moreover, the order of *vmin* and *vmax* does not matter;
the orientation of the axis will not change.
If *ignore* is True, the data limits will be set exactly to ``(vmin,
vmax)`` in that order.
r­s riÚset_data_intervalzAxis.set_data_intervalxsô"Ð"9Ó:rtcó2|j«\}}||kS)a.
Return whether this Axis is oriented in the "inverse" direction.
The "normal" direction is increasing to the right for the x-axis and to
the top for the y-axis; the "inverse" direction is increasing to the
left for the x-axis and to the bottom for the y-axis.
))r^ÚlowÚhighs riÚ get_invertedzAxis.get_inverted†s ð×,‰ ˆˆTØc‰zÐrtcóz|j«\}}|jt||ft|«¬«ddiŽy)a+
Set whether this Axis is oriented in the "inverse" direction.
The "normal" direction is increasing to the right for the x-axis and to
the top for the y-axis; the "inverse" direction is increasing to the
left for the x-axis and to the bottom for the y-axis.
rlN)Ú_set_limÚsortedr)r^Úinvertedr«s riÚ set_invertedzAxis.set_inverteds8ð×'‰ˆˆˆ
”v˜q !˜f¬d°8«nÔIÀDÓIrtcóy)z{
Set the default limits for the axis data and view interval if they
have not been not mutated yet.
Nrrxs riÚset_default_intervalszAxis.set_default_intervalssrt)Úemitcó~|j«}|jj|||ffgd¬«|jj||j«}|jj||j«}|||j «\}}||}||}|j
«dk(r]|dks|dkrS|j «\}}|dkrtjd|d«|}|dkrtjd|d«|}||k(rtjd|d«t||kD«}|j«j||«\}}|j||«\}}t||gt|«¬ «\}}|j||d
¬ «|j«D]} d| j |<Œ|j#|«|rÜ|jj$j'|d |j«|j«D]}
|
|jurŒ|
j(|j+||d|¬
«|r|
j$j'|d |
«|
j-d¬«x} |j-d¬«k7sŒ}| j.j1«Œ˜d
|_||fS)a`
Set view limits.
This method is a helper for the Axes ``set_xlim``, ``set_ylim``, and
``set_zlim`` methods.
Parameters
----------
v0, v1 : float
The view limits. (Passing *v0* as a (low, high) pair is not
supported; normalization must occur in the Axes setters.)
emit : bool, default: True
Whether to notify observers of limit change.
auto : bool or None, default: False
Whether to turn on autoscaling of the x-axis. True turns on, False
turns off, None leaves unchanged.
F)ÚconvertrºrzAttempt to set non-positive z)lim on a log-scaled axis will be ignored.z)Attempting to set identical low and high z<lims makes transformation singular; automatically expanding.rÜÚ lim_changed)rrlr%)rrr>Ú_process_unit_infoÚ_validate_converted_limitsÚ
convert_unitsr°r‰rÚ
warn_externalrrr“r rtÚ_stale_viewlimsr¥rOÚprocessrvrr=ÚcanvasÚ draw_idler) r^Úv0Úv1rrlrbÚold0Úold1rÝÚotherÚ other_figs rirz
Axis._set_lim«ð$×$ˆà ×$ t¨b°"¨XÐ&6Ð%7ÀÐ
Y‰Y×
1°"°d×6HÑ6HÓ
IˆØ
Y‰Y×
1°"°d×6HÑ6HÓ
Iˆà
ˆ:˜˜ð×1‰JˆDˆzØØˆà >‰>Ó ˜ $¨"°ª'°R¸1²Wð×1‰JˆDQŠwÜ×"Ð%AÀ$ÀðHHð$IôJàØQŠwÜ×"Ð%AÀ$ÀðHHð$IôJàØ
Š8Ü × Ñ Ø;¸D¸6ðBJðKô
Lôr˜Bw“-ˆØ×)×5°b¸=‰ˆˆBØ×+¨B°Ó3‰ˆˆBܘ˜R˜¬$¨w«-Ô8‰ˆˆBà ×јr 2¨dÐÔ× -ˆBØ',ˆB× Ñ ˜  ×јtÔ Ø I‰I× Ñ × '¨4¨&° Ð(<¸d¿i¹iÔ ×
1ؘDŸI™IÑØ Ñ.¨r°2¸EÈÐØ—O‘O×+¨t¨f°KÐ,@À%ÔHØ"'×"2Ñ"2¸Ð"2Ó">Ð>Ÿ¨U˜Ó×
ˆŒ
Ø2ˆvˆ
rtcóL|y|j|jd¬««ys rir\zAxis._set_artist_props÷s!Ø ˆ Ø T—__¨%1rtcó¶|j«}|jjj|«}|j t |««}t
|||«D]M\}}}|j|«|jj|«|jj|«ŒO|j«}|jjj|«}|jt |««} t
| ||«D]M\}}}|j|«|jj|«|jj|«ŒOg|¢| ¢}
|j«\} } | | kDr| | } } t|d«rC|j j"dk(r*t$j&drd}
| | z
}| ||
zz
} | ||
zz} |j)«j+| | g«}g}|
D]X} |j)«j+|j-««}t/j0||«sŒH|j3|«ŒZ|S#t4$rYŒhwxYw)z—
Update ticks (position and labels) using the current data interval of
the axes. Return the list of ticks that will be drawn.
r>Ú3dzaxes3d.automargingÇqÇq”?)Úget_majorticklocsrr$Ú format_ticksr§ÚlenÚzipr]rYÚset_textrZÚget_minorticklocsr$Úhasattrr>rbr:r;r‡rÚ mtransformsÚ_interval_contains_closeÚappendÚAssertionError)r^Ú
major_locsÚ major_labelsÚ major_ticksr4r_rQÚ
minor_locsÚ minor_labelsÚ minor_ticksÚticksÚview_lowÚ view_highÚmarginÚdeltaÚ
interval_tÚ
ticks_to_drawÚloc_ts riÚ
_update_tickszAxis._update_ticksüs<ð
×-ˆ
Ø—z‘z×Ó Ø×*¬3¨z«?Ó Ü # K°¸\Ó Jò ˆD# × Ñ  Ô K‰K× Ñ  Ô K‰K× Ñ  Õ ×-ˆ
Ø—z‘z×Ó Ø×*¬3¨z«?Ó Ü # K°¸\Ó Jò ˆD# × Ñ  Ô K‰K× Ñ  Ô K‰K× Ñ  Õ -,  Ð,ˆà"׈  Ø"+¨Xiˆ D˜ ! d§i¡i§n¡n¸Ò&<Ü—LLÐ!4Ò
*ˆFØ Ñ(ˆEØ! E¨F¡NÑ2ˆ %¨&¡.Ñ0ˆ×)×3°X¸yÐ4IÓJˆ
àˆ
Øò /ˆ
×6°t·|±|³~ÓFô ×
ÀEÕÕÐøô
ñð
úsÇ3-I É IÉIcóf|€ |jd¬«j«}|Dcgc]7}|jj«r|jj |«Œ9c}|Dcgc]7}|j
j«r|j
j |«Œ9c}fScc}wcc}w)z8Return lists of bboxes for ticks' label1's and label2's.Tr%)r=Ú
_get_rendererrYÚget_window_extentrZ)r^r5r4s riÚ_get_ticklabel_bboxeszAxis._get_ticklabel_bboxes0à РبDÓAˆAØ d§k¡k×&=Ñ&=Ô&?ð×.¨xÕAðAØ d§k¡k×&=Ñ&=Ô&?ð×.¨xÕAðBð BùòAùòAs §<B)Á)<B.)Úfor_layout_onlycó¼|j«r|r|j«sy€ |jd¬«j«Š|j «}|j «|j
|«\}}|j||«|jj|jjj««gˆfd|jfD«¢|¢|¢}|jj«rÚ|jj«}|r¬|jdk(rG|j dkDr8|j"|j$zdz dz
|_|j"d z|_|jd
k(rG|j&dkDr8|j(|j*zdz dz
|_|j(d z|_|j-|«|Dcgc]P}d|j cxkrt.j0kr+nn(d|j&cxkrt.j0krnn|ŒR}}|rt2j4j7|«Sycc}w) a˜
Return a bounding box that encloses the axis. It only accounts
tick labels, axis label, and offsetText.
If *for_layout_only* is True, then the width of the label (if this
is an x-axis) or the height of the label (if this is a y-axis) is
collapsed to near zero. This allows tight/constrained_layout to ignore
too-long labels when doing their layout.
NTr%c3ó`K|]%}|j«r|j«Œ'y­wrv)r@)s €rir´z%Axis.get_tightbbox.<locals>.<genexpr>Rs-øèø€òØð×! (×"ùsƒ+.rér)Ú
get_in_layoutr=r?r=Ú_update_label_positionrAÚ_update_offset_text_positionrRr(rr$Ú
get_offsetrQr@r Úx0Úx1ÚheightÚy0Úy1r-rVr”r+ÚBboxÚunion) r^rBr;Útlb1Útlb2ÚbboxesÚbbr¤s ` riÚ
get_tightbboxzAxis.get_tightbbox9sø€ð×ÑÔ!¡_¸T×=OÑ=OÔ=QØ Ø Ð Ø¨DÓAˆHØ×
à ×# HÔ×
¸H‰
ˆˆdà ×)¨$°Ô × Ñ  §¡×!5Ñ!5×!@Ñ!@Ó!BÔ
óŸÐ
ðð 
ðð 
ˆð :‰:× ×-¨hÓ7ˆØ—>> (¨R¯X©X¸ª\ØŸU™U R§U¡U™]¨aÑ/°#Ñ5B”EØŸE™E C™KB”EØ—>> (¨R¯Y©Y¸ª]ØŸU™U R§U¡U™]¨aÑ/°#Ñ5B”EØŸE™E C™KB”EØ M‰M˜ ØE˜Ø˜ŸÔ)¤2§6¡6Õ)¨a°!·(±(Ô.C¼R¿V¹VÕ.CòðEˆðEá Ü×)¨&Ó ùò EsÇ AIcó$g}t|j«r,|j|jdj««t|j«r,|j|jdj««t |d¬«S)Nr)rk)r&r/r-rwr1Úmax)r^Úvaluess rirwzAxis.get_tick_paddinglshØˆÜ ˆtÔ Ø M‰M˜$Ÿ/™/¨!Ñ ˆtÔ Ø M‰M˜$Ÿ/™/¨!Ñ 6 %rtcóN|j«sy|jt|j«¬«|j «}|j ||«\}}|D]}|j
|«Œ|j|«|jj
|«|j||«|jj|jjj««|jj
|«|jt«d|_y)NrœF)rAr r=rArGrQrHrRr(rr$rIr)r^r;rQrRr4s riz Axis.drawtð×ÑÔ Ø×ÑœH¨$¯,©,«.ÐÔ×
Ø×
¸H‰
ˆˆdà ˆDØ I‰I ð ð
×# 
˜Ô ×)¨$°Ô × Ñ  §¡×!5Ñ!5×!@Ñ!@Ó!BÔ ×јXÔ×ÑœXÔˆ
rtcóˆ|j«}tjd|Dcgc]}|jŒc}«Scc}w)z6Return this Axis' grid lines as a list of `.Line2D`\s.zLine2D gridline)rÚ silent_listrP)r^r5r4s riÚ
get_gridlineszAxis.get_gridliness=à×&ˆÜ× Ñ Ð!2Ø<AÖ!B°D $§-£-Ò!BóDð DùÚ!Bs¥?
cótd«)z>Assigning legend labels is not supported. Raises RuntimeError.zfA legend label cannot be assigned to an Axis. Did you mean to set the axis label via set_label_text()?)Ú RuntimeError)r^s riÚ set_labelzAxis.set_label“säð
 8rtcó|jS)a 
Return the axis label as a Text instance.
.. admonition:: Discouraged
This overrides `.Artist.get_label`, which is for legend labels, with a new
semantic. It is recommended to use the attribute ``Axis.label`` instead.
)rQrxs riÚ get_labelzAxis.get_label™sðz‰zÐrtcó|jS)z.Return the axis offsetText as a Text instance.)rRrxs riÚget_offset_textzAxis.get_offset_text¤r%rtcó|jS)z0Return the depth of the axis used by the picker.)Ú _pickradiusrxs riÚget_pickradiuszAxis.get_pickradius¨sà×ÑÐrtcó0|j«|j«}|Dcgc])}|jj«sŒ|jŒ+}}|Dcgc])}|jj«sŒ|jŒ+}}||zScc}wcc}w)z@Return this Axis' major tick labels, as a list of `~.text.Text`.)r=rYrZ©r^r5r4Úlabels1Úlabels2s riÚget_majorticklabelszAxis.get_majorticklabels¬ó|à ×ÑÔØ×&ˆØ+0ÖN 4°D·K±K×4KÑ4KÕ4M4—;“;ÐNˆÐNØ+0ÖN 4°D·K±K×4KÑ4KÕ4M4—;“;ÐÐ˜Ñ Ð ùòOùÚ¥BÁBÁBÁ9Bcó0|j«|j«}|Dcgc])}|jj«sŒ|jŒ+}}|Dcgc])}|jj«sŒ|jŒ+}}||zScc}wcc}w)z@Return this Axis' minor tick labels, as a list of `~.text.Text`.)r=rYrZrhs riÚget_minorticklabelszAxis.get_minorticklabels´rlrmcó|i|dk(r|j«S|dk(r|j«S|dk(r!|j«|j«zStjgd¢|¬«|r|j«S|j«S)aq
Get this Axis' tick labels.
Parameters
----------
minor : bool
Whether to return the minor or the major ticklabels.
which : None, ('minor', 'major', 'both')
Overrides *minor*.
Selects which ticklabels to return
Returns
-------
list of `~matplotlib.text.Text`
r$rr!)rorkrrq)r^r$ras riÚget_ticklabelszAxis.get_ticklabels¼ð$ Ð Ø˜ÒØ×˜'Òט&Ø×1°D×4LÑ4LÓ4NÑ×"Ò#=ÀUÕ Ø× ×)rtcóÌg}|j«}|D]8}|j|j«|j|j«Œ:t j
d|«S)z<Return this Axis' major tick lines as a list of `.Line2D`\s.úLine2D ticklines)r-rNrOrr[©r^Úlinesr5r4s riÚget_majorticklineszAxis.get_majorticklinesÛóZàˆØ×Øò )ˆDØ L‰L˜ŸÔ L‰L˜ŸÕ × Ñ Ð!3°UÓ;rtcóÌg}|j«}|D]8}|j|j«|j|j«Œ:t j
d|«S)z<Return this Axis' minor tick lines as a list of `.Line2D`\s.rs)r-rNrOrr[rts riÚget_minorticklineszAxis.get_minorticklinesärwrtcóF|r|j«S|j«S)z6Return this Axis' tick lines as a list of `.Line2D`\s.)ryrv©r^r$s riÚ
get_ticklineszAxis.get_ticklinesís#á Ø× ×(rtcó6|jj«S)z;Return this Axis' major tick locations in data coordinates.©rrrxs rir$zAxis.get_majorticklocsósàz‰z×#rtcótj|jj««}|jrÆ|j
j«}|j j«}|j|«}|j|«}t|j|j«««\}}||z
dz}tj|dddf|dddf|d¬«jd¬«} || }|S)z;Return this Axis' minor tick locations in data coordinates.gñh㈵øä>Nr)ÚatolÚrtolr4)rz)
rVÚasarrayr$rÚremove_overlapping_locsrr†r‡rr Úiscloser¸)
r^r2r/rÚ
tr_minor_locsÚ
tr_major_locsÚloÚhiÚtolÚmasks
rir)zAxis.get_minorticklocs÷ô—Z‘Z §
¡
× 2Ñ 2Ó 4Ó5ˆ
Ø × Ÿ×-ˆJØŸ ×3ˆIØ
Ó;ˆ%×
Ó;ˆMܘI××0FÑ0FÓ0HÓJ‰FˆBð˜7˜"ˆ—::˜mªA¨t¨GÑ4°mÀDÊ!ÀGÑ6LØ#&¨Qô0ß03±¸°³ ð
à# T *ˆÐrtcóF|r|j«S|j«S)
Return this Axis' tick locations in data coordinates.
The locations are not clipped to the current axis limits and hence
may contain locations that are not visible in the output.
Parameters
----------
minor : bool, default: False
True to return the minor tick directions,
False to return the major tick directions.
Returns
-------
array of tick locations
)r)r$r{s riÚ get_ticklocszAxis.get_ticklocs s#ñ",1ˆt×N°d×6LÑ6LÓ6NÐNrtcó|r;tj|j«Dcgc]}|jŒc}«Stj|j «Dcgc]}|jŒc}«Scc}wcc}w)a;
Return an array of this Axis' tick directions.
Parameters
----------
minor : bool, default: False
True to return the minor tick directions,
False to return the major tick directions.
Returns
-------
array of tick directions
)rVÚarrayr¨r~)r^r$r4s riÚget_ticks_directionzAxis.get_ticks_directionsqñ Ü—88Ø+/×+?Ñ+?Ó+AÖB 4ÒDð
Dô—88Ø+/×+?Ñ+?Ó+AÖB 4ÒDð
DùòCùòCs ¤A9ÁA>cóÔ|j€#td|jjd«|r |jn |j
}|j|j dfd|i|¤ŽS)z!Return the default tick instance.zThe Axis subclass z3 must define _tick_class or reimplement _get_tick()rr)Ú _tick_classr¯rhrArUrVr>)r^rs rir0zAxis._get_tick1sqà × Ñ Ð $ T§^¡^×%<Ñ%<Ð$=ð>9ð
*/$×%°D×4GÑ4GˆØˆt×Ñ § ¡ ¨1ÑE°EÐE¸Ertcó®|j}|jdtj|d«}t j
|¬«j
«S)
Return the text size of tick labels for this Axis.
This is a convenience function to avoid having to create a `Tick` in
`.get_tick_space`, since it is expensive.
rztick.labelsize)r
)rUr×r:r;rTÚFontPropertiesÚget_size_in_points)r^r
s riÚ_get_tick_label_sizezAxis._get_tick_label_size:sMðר{‰{˜Ÿ<™<¨9¨+°^Ð(DÑGˆä×Ô.×Crtcó||y|jj|j«|jj|j«|jj|j«|jj|j«|j
j|j
«|j|«|j |_|j|_|j|_|j|_ |j|_
|j|_ |j|_ y)z3Copy the properties from *src* tick to *dest* tick.N)
rYÚ update_fromrZrNrOrPr?rBrCrDrXrIr~)r^ÚsrcÚdests riÚ_copy_tick_propszAxis._copy_tick_propsFà ˆ;˜$˜,Ø Ø ×Ñ §
¡
Ô ×Ñ §
¡
Ô ×" 3§=¡=Ô ×" 3§=¡=Ô
×! #§,¡,Ô ×Ñ˜ÔØ—H‘HˆŒ Ø—Y‘YˆŒ
Ø—j‘jˆŒ ØŸˆŒØÔØ—{‘{ˆŒ ØŸ ˆ
rtcó6|jj«S)zGet the text of the label.)rQÚget_textrxs riÚget_label_textzAxis.get_label_textXsàz‰z×$rtcó.|jjS)z$Get the locator of the major ticker.r~rxs rirzAxis.get_major_locator\óàz‰z×!rtcó.|jjS)z$Get the locator of the minor ticker.)r$rrxs riÚget_minor_locatorzAxis.get_minor_locator`rtcó.|jjS)z&Get the formatter of the major ticker.)rr$rxs riÚget_major_formatterzAxis.get_major_formatterdóàz‰z×#rtcó.|jjS)z&Get the formatter of the minor ticker.)r$r$rxs riÚget_minor_formatterzAxis.get_minor_formatterhrtcóP|t|j««}t|j«|kre|jd¬«}|jj |«|j |jd|«t|j«|krŒe|jd|S)a
Return the list of major `.Tick`\s.
.. warning::
Ticks are not guaranteed to be persistent. Various operations
can create, delete and modify the Tick instances. There is an
imminent risk that changes to individual ticks will not
survive if you work on the figure further (including also
panning/zooming on a displayed figure).
Working on the individual ticks is a method of last resort.
Use `.set_tick_params` instead if possible.
NTr.r)r&r$r/r0r-©r^Únumticksr4s rizAxis.get_major_tickslsð Рܘ4×4ˆ$—/" —>-ˆ O‰O× "  × ! $§/¡/°!Ñ"4°dÔ $—/"  ˜y Ð)rtcóP|t|j««}t|j«|kre|jd¬«}|jj |«|j |jd|«t|j«|krŒe|jd|S)a
Return the list of minor `.Tick`\s.
.. warning::
Ticks are not guaranteed to be persistent. Various operations
can create, delete and modify the Tick instances. There is an
imminent risk that changes to individual ticks will not
survive if you work on the figure further (including also
panning/zooming on a displayed figure).
Working on the individual ticks is a method of last resort.
Use `.set_tick_params` instead if possible.
NFr.r)r&r)r1r0r-s rizAxis.get_minor_ticks†sð Рܘ4×4ˆ$—/" —>.ˆ O‰O× "  × ! $§/¡/°!Ñ"4°dÔ $—/"  ˜y Ð)rtc ó¸|r|d}n|stjd«d}|j«}tjgd¢|¬«|j «Dcic] \}}d||Œ
}}}|dvr+||j
d n||d<|j d
d d
i|¤Ž|d vr+||jd n||d<|j d
d d i|¤Žd|_ycc}}w)a•
Configure the grid lines.
Parameters
----------
visible : bool or None
Whether to show the grid lines. If any *kwargs* are supplied, it
is assumed you want the grid on and *visible* will be set to True.
If *visible* is *None* and there are no *kwargs*, this toggles the
visibility of the lines.
which : {'major', 'minor', 'both'}
The grid lines to apply the changes on.
**kwargs : `~matplotlib.lines.Line2D` properties
Define the line properties of the grid, e.g.::
grid(color='r', linestyle='-', linewidth=2)
NTz_First parameter to grid() is false, but line properties are supplied. The grid will be enabled.rÑrrrar$rr) rrÚlowerrqrMrVrUr)r^r,rar`rbr`Úgridkws riz Axis.grid s ñ* ؈ØÙÜ×$;ôØ
ˆÜ ×ÑÒ5¸CØ;A¿<¹<»>×J©K¨D°%E˜$˜. JˆÑ Ð %à#* %)×$7Ñ$7¸Ñ$AÑ AØ8?ð
 à ˆD× Ñ Ñ 9  9°&Ò Ð %à#* %)×$7Ñ$7¸Ñ$AÑ AØ8?ð
 à ˆD× Ñ Ñ 9 wÐ 9°&Ò ˆ
ùóKsÁCcór|js tjj|«}n |j}|y|j|k7}|j |«|jj
||«}|%|j|j|«d|_
y|r|j«d|_
y)z¿
Introspect *data* for units converter and update the
``axis.get_converter`` instance if necessary. Return *True*
if *data* is registered for unit conversion.
FT) rXÚmunitsÚregistryÚ
get_converterrWÚ_set_converterÚ
default_unitsrDÚ set_unitsÚ_update_axisinfor)r^Ú converterÚneednewrks riÚ update_unitszAxis.update_unitsÊð ן×5°dÓ;‰IàŸˆIà Ð Øà—/‘/ YÑØ ×јIÔ—/‘/×°dÓØ Ð  4§:¡:Ð#5Ø N‰N˜7Ô ˆŒ
ØñØ × ˆŒ
Ørtcóì|jy|jj|j|«}|y|jQ|jj
|jk7r.|j r"|j|j«d|_|jQ|jj
|jk7r.|jr"|j|j«d|_
|jQ|jj|jk7r.|jr"|j|j«d|_|j Q|jj|j k7r.|j"r"|j%|j «d|_|j&.|j(r"|j+|j&«d|_|j-«y)zt
Check the axis converter for the stored units to see if the
axis info needs to be updated.
NT)rWÚaxisinforDÚmajlocrrr\Úset_major_locatorÚminlocr$rjÚmajfmtr$rdÚset_major_formatterÚminfmtrnÚset_minor_formatterrQrMÚset_label_textr
)r^Úinfos rizAxis._update_axisinfoãssð
?‰?Ð àׯ
©
°DÓà ˆ Ø ;‰;Ð :‰:× Ñ  §¡Ò ×1FÒ1FØ × " 4§;¡;Ô /Ø$(ˆ ;‰;Ð :‰:× Ñ  §¡Ò ×1FÒ1FØ × " 4§;¡;Ô /Ø$(ˆ ;‰;Ð :‰:× Ñ  4§;¡;Ò .°4×3HÒ3HØ × $ T§[¡[Ô 1Ø$(ˆ ;‰;Ð :‰:× Ñ  4§;¡;Ò .°4×3HÒ3HØ × $ T§[¡[Ô 1Ø$(ˆ :‰:Ð ! d×&:Ò&:Ø × Ñ  §
¡
Ô +Ø#'ˆ à ×$rtcó>|jduxs|jduSrv)rWrDrxs riÚ
have_unitszAxis.have_unitssØ dÐD¨d¯j©jÀÐ.DÐDrtcóhtj|«r|S|j€.|jtjj |««|j|S |jj
||j|«}|S#t$r}tjd|«|d}~wwxYw)Nz*Failed to convert value(s) to axis units: )
Ú_is_natively_supportedrWrrDÚ ExceptionÚConversionError)r^ÚretÚes rirzAxis.convert_unitsä × Ô ˆHà ?‰?Ð × Ñ ¤§¡× =Ñ =¸aÓ @Ô ?‰?Ð ˆ AØ—//×)¨!¨T¯Z©Z¸Ó>ˆˆ
øôò AÜ×*3Ø34°%ð*9ó:Ø?@ð
Aûð AúsÁ!'B
Â
B1ÂB,Â,B1có|jS)z
Get the unit converter for axis.
Returns
-------
`~matplotlib.units.ConversionInterface` or None
)rWrxs rizAxis.get_convertersðÐrtcó4|j|«d|_y)z•
Set the unit converter for axis.
Parameters
----------
converter : `~matplotlib.units.ConversionInterface`
TN)rX©r^s riÚ
set_converterzAxis.set_converter#sð
×ј&Ø&*ˆÕ#rtcó:|j|us|j|k(ry|jr td«|jSt|t |j««s4t|jt |««st j d«||_y)Nz*Axis already has an explicit converter setz]This axis already has a converter set and is updating to a potentially incompatible converter)rWrXr^rmr=rrs rizAxis._set_converter.s}Ø ?‰?˜ '¨4¯?©?¸iÒ+GØ Ø × Ð O‰OÐ ˜9¤d¨4¯?©?Ó&;Ô˜4Ÿ?™?¬D°«OÔ × Ñ ðFô
ð$ˆrtcóÀ||jk(ry|j«D];}||_|j«|jj d«d|_Œ=y)
Set the units for axis.
Parameters
----------
u : units tag
Notes
-----
The units of any shared axis will also be updated.
NrDT)rDrwrOrr)r^Úurzs rir´zAxis.set_units>sVð

Š?Ø Ø× ˆD؈DŒJØ × N‰N× "  ˆD rtcó|jS)zReturn the units for axis.)rDrxs riÚ get_unitszAxis.get_unitsRs àz‰zÐrtc óÜd|_|jj|«||jj|«|jj|«d|_|jS)
Set the text value of the axis label.
Parameters
----------
label : str
Text string.
fontdict : dict
Text properties.
.. admonition:: Discouraged
The use of *fontdict* is discouraged. Parameters should be passed as
individual keyword arguments or using dictionary-unpacking
``set_label_text(..., **fontdict)``.
**kwargs
Merged into fontdict.
FT)rMrQr(r)r^rQÚfontdictr`s rizAxis.set_label_textVsYð( %ˆÔØ
×јEÔ Ð Ø J‰J× Ñ ˜ 
×ј&ÔˆŒ
Øz‰zÐrtcó<|j||j«y)
Set the formatter of the major ticker.
In addition to a `~matplotlib.ticker.Formatter` instance,
this also accepts a ``str`` or function.
For a ``str`` a `~matplotlib.ticker.StrMethodFormatter` is used.
The field used for the value must be labeled ``'x'`` and the field used
for the position must be labeled ``'pos'``.
See the `~matplotlib.ticker.StrMethodFormatter` documentation for
more information.
For a function, a `~matplotlib.ticker.FuncFormatter` is used.
The function must take two inputs (a tick value ``x`` and a
position ``pos``), and return a string containing the corresponding
tick label.
See the `~matplotlib.ticker.FuncFormatter` documentation for
more information.
Parameters
----------
formatter : `~matplotlib.ticker.Formatter`, ``str``, or function
N)Ú_set_formatterrr(s rir¿zAxis.set_major_formatterrsð0
×јI t§z¡zÕ2rtcó<|j||j«y)aZ
Set the formatter of the minor ticker.
In addition to a `~matplotlib.ticker.Formatter` instance,
this also accepts a ``str`` or function.
See `.Axis.set_major_formatter` for more information.
Parameters
----------
formatter : `~matplotlib.ticker.Formatter`, ``str``, or function
N)r$r(s rizAxis.set_minor_formatterŒsð
×јI t§z¡zÕ2rtcó`t|t«rtj|«}n`t |«r0t|tj
«stj |«}n%tjtj|¬«t|tj«rQt|j«dkDr9t|jtj«stjd«||j k(rd|_nd|_||_|j)|«d|_y)N)r$rú=FixedFormatter should only be used together with FixedLocatorFT)rmrnrÚStrMethodFormatterÚcallableÚ
TickHelperÚ
FuncFormatterrÚcheck_isinstancer'ÚFixedFormatterr&ÚseqrÚ FixedLocatorrrrdrnr$Úset_axisr)r^r$Úlevels rizAxis._set_formatteršÜ Ô ×2°9Ó=‰Iô˜Y¬×(:Ñ(:Ô×-¨iÓ8‰Iä × !¤'×"3Ñ"3¸ y¤'×"8Ñ"8Ô ˜ Ÿ
ÓÒ" 5§=¡=´'×2FÑ2FÔ × Ñ ð
 D—J Ø$)ˆDÕ !à$)ˆDÔ ŒØ×ј4Ô Øˆ
rtcó$tjtj|¬«d|_||j
_|j
jr%|j
jj|«|j|«d|_
y)
Set the locator of the major ticker.
Parameters
----------
locator : `~matplotlib.ticker.Locator`
©rFTN) rrr r\rrr$Ú _set_locatorrärr"s rizAxis.set_major_locator´ófô
×ÑœgŸo™o°wÕ?Ø %ˆÔØ
ÔØ :‰:× Ò Ø J‰J× Ñ × -¨gÔ ×Ñ˜ÔØˆ
rtcó$tjtj|¬«d|_||j
_|j
jr%|j
jj|«|j|«d|_
y)
Set the locator of the minor ticker.
Parameters
----------
locator : `~matplotlib.ticker.Locator`
FTN) rrr rjr$rr$rr"s rizAxis.set_minor_locatorÄrtcóRt|t«r|dkr td«||_y)
Set the depth of the axis used by the picker.
Parameters
----------
pickradius : float
The acceptance radius for containment tests.
See also `.Axis.contains`.
rz pick radius should be a distanceN)rmrre)r^rAs riÚset_pickradiuszAxis.set_pickradiusÔs(ô˜*¤dÔ+¨z¸Aª~ÜÐ %ˆÕrtzGThe acceptance radius for containment tests. See also `.Axis.contains`.có&|j|d«S)Nr0)r×)ÚtickdràÚposs riÚ_format_with_dictzAxis._format_with_dictçsày‰y˜˜Ðrt)r$c óð |Dcgc] }t|d«r|j«n|Œ"}}|r|j«n|j «}|st j «}nt|t
j«r¼t|j«t|«k7r<t|«dk7r.tdt|j«dt|«d«t|j|«D cic]\}} || “Œ
}
}} tj|j|
«} t j | «}n*t#j$d «t j&|«}t)j*«5t)j,d
d ¬ «|r<|j/|«|j1«} |j3t| ««}
n;|j5|«|j7«} |j9t| ««}
ddd«g}||j;|«t=t 
««D\}\}}|j?|«|||«}|j@jC|«|j@jE|«|jFjC|«|jFjE|«|j@jI«r|jK|j@«|jFjI«sŒß|jK|jF«Œûd
|_&|Scc}w#t$rt|dd«dwxYwcc} }w#1swYŒaxYw)
[*Discouraged*] Set this Axis' tick labels with list of string labels.
.. admonition:: Discouraged
The use of this method is discouraged, because of the dependency on
tick positions. In most cases, you'll want to use
``Axes.set_[x/y/z]ticks(positions, labels)`` or ``Axis.set_ticks``
instead.
If you are using this method, you should always fix the tick
positions before, e.g. by using `.Axis.set_ticks` or by explicitly
setting a `~.ticker.FixedLocator`. Otherwise, ticks are free to
move and the labels may end up in unexpected positions.
Parameters
----------
labels : sequence of str or of `.Text`\s
Texts for labeling each tick location in the sequence set by
`.Axis.set_ticks`; the number of labels must match the number of locations.
The labels are used as is, via a `.FixedFormatter` (without further
formatting).
minor : bool
If True, set minor ticks instead of major ticks.
fontdict : dict, optional
.. admonition:: Discouraged
The use of *fontdict* is discouraged. Parameters should be passed as
individual keyword arguments or using dictionary-unpacking
``set_ticklabels(..., **fontdict)``.
A dictionary controlling the appearance of the ticklabels.
The default *fontdict* is::
{'fontsize': rcParams['axes.titlesize'],
'fontweight': rcParams['axes.titleweight'],
'verticalalignment': 'baseline',
'horizontalalignment': loc}
**kwargs
Text properties.
.. warning::
This only sets the properties of the current ticks, which is
only sufficient for static plots.
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 `.set_tick_params` instead if possible.
Returns
-------
list of `.Text`\s
For each tick, includes ``tick.label1`` if it is visible, then
``tick.label2`` if it is visible, in that order.
ú=z must be a sequenceNrz&The number of FixedLocator locations (zJ), usually from a call to set_ticks, does not match the number of labels (z).zrset_ticklabels() should only be used with a fixed number of ticks, i.e. after set_ticks() or using a FixedLocator.rý)ÚmessageT)'r*r!rrÚ
NullFormatterrmr&Úlocsrìr'Ú functoolsÚpartialrðrrÚwarningsÚcatch_warningsÚfilterwarningsrÁr)r¿r$Ú enumerater]rYr(Ú_internal_updaterZr-r)r^Úlabelsr$r`Útrr$r_ÚlabrîÚfuncrõr5r4Ú
tick_labels riÚset_ticklabelszAxis.set_ticklabelsësðB Hàô'.¨a°Ô&<a—jj”lÀ!Ñ'ˆ054×× áä×/ŠIÜ
˜¤×!5Ñ!5Ô
7—< ¤C¨£KÒ/´³KÀ1Ò4DÜ ðܘWŸ\™\Ó,.ä.1°&«k¨]¸
/2°'·,±,ÀÓ.G×H¡( # sS˜#Hˆ×$ T×%;Ñ%;¸UÓCˆ×-¨dÓ3‰Iä × Ñ ðJô
Kô ×.¨vÓ6ˆIä
×
× Ø
YñØ×Ô×/Ø×,¬S°«YÓ7‘à×Ô×/Ø×,¬S°«YÓ7÷ ˆØ Ð Ø M‰M˜(Ô #Ü )¬#¨d°EÓ*:Ó ;ò
ˆC‘# × Ñ  Ô " 3¨Ó,ˆ K‰K× Ñ  Ô K‰K× Ô K‰K× Ñ  Ô K‰K× Ô {‰{×
˜4Ÿ;™;Ô{‰{×
˜4Ÿ;™;Õ
ˆŒ
؈
ùòw'øäò Hܘv a˜jÐ(;Ð=À4Ð  Hüó I÷ 8ús.M†%M«MÃ7
M%Å;BM+ÍMÍM"Í+M5có¨|j|«}tj|«}t|«r9|j «D]&}|j t
|«t|««Œ(d|j_ |r+|j|«|jt|««S|j|«|jt|««Sr‰)rrr&rwÚminrWr>r)r^r5r$rrzs riÚ_set_tick_locationszAxis._set_tick_locationsjð×" )ˆÜ×& -ˆÜ ˆuŒ:Ø×
?à×&¤s¨5£z´3°u³:Õ
ˆ ‰ ŒÙ Ø × "  רE«
Ó × "  רE«
Ó 3rtc ó¨|€%|r#tt|««}td|d«|j||¬«}||j|fd|i|¤Ž|S)al
Set this Axis' tick locations and optionally tick labels.
If necessary, the view limits of the Axis are expanded so that all
given ticks are visible.
Parameters
----------
ticks : 1D array-like
Array of tick locations (either floats or in axis units). The axis
`.Locator` is replaced by a `~.ticker.FixedLocator`.
Pass an empty list (``set_ticks([])``) to remove all ticks.
Some tick formatters will not label arbitrary tick positions;
e.g. log formatters only label decade ticks by default. In
such a case you can set a formatter explicitly on the axis
using `.Axis.set_major_formatter` or provide formatted
*labels* yourself.
labels : list of str, optional
Tick labels for each location in *ticks*; must have the same length as
*ticks*. If set, the labels are used as is, via a `.FixedFormatter`.
If not set, the labels are generated using the axis tick `.Formatter`.
minor : bool, default: False
If ``False``, set only the major ticks; if ``True``, only the minor ticks.