intellecton/venv/lib/python3.12/site-packages/matplotlib/__pycache__/inset.cpython-312.pyc

125 lines
12 KiB
Text
Raw Normal View History

<EFBFBD>
<00>Rj<>'<00><00>j<00>dZddlmZmZmZddlmZmZmZddl m
Z
dZ Gd<07>dej<00>Z y )
z<EFBFBD>
The inset module defines the InsetIndicator class, which draws the rectangle and
connectors required for `.Axes.indicate_inset` and `.Axes.indicate_inset_zoom`.
<EFBFBD>)<03>_api<70>artist<73>
transforms<EFBFBD>)<03>ConnectionPatch<63> PathPatch<63> Rectangle)<01>Path)<04>alpha<68> edgecolor<6F> linestyle<6C> linewidthc<00><><00><00>eZdZdZdZd<13>fd<03> Zd<04>Zd<05>Zd<06>Zd<07>Z d<08>Z
d <09>Z d
<EFBFBD>Z d <0B>Z ed <0C><00>Zed <0A><00>Zd<0E>Zej&dd<10><11>d<12><00>Z<14>xZS)<14>InsetIndicatora
An artist to highlight an area of interest.
An inset indicator is a rectangle on the plot at the position indicated by
*bounds* that optionally has lines that connect the rectangle to an inset
Axes (`.Axes.inset_axes`).
.. versionadded:: 3.10
g<>(\<5C><><EFBFBD>@c <00>n<00><01>|<01> |<02> td<02><00>||_|<01>d|_|j<00>}nd|_|\}}}}t ||f||fddi|<04><01>|_g|_t<00>
|<00>!<00>|j|<03>tD]0} t|d| <09><00>tj|j
| <09><00><00>2y)aN
Parameters
----------
bounds : [x0, y0, width, height], optional
Lower-left corner of rectangle to be marked, and its width
and height. If not set, the bounds will be calculated from the
data limits of inset_ax, which must be supplied.
inset_ax : `~.axes.Axes`, optional
An optional inset Axes to draw connecting lines to. Two lines are
drawn connecting the indicator box to the inset Axes on corners
chosen so as to not overlap with the indicator box.
zorder : float, default: 4.99
Drawing order of the rectangle and connector lines. The default,
4.99, is just below the default level of inset Axes.
**kwargs
Other keyword arguments are passed on to the `.Rectangle` patch.
Nz3At least one of bounds or inset_ax must be suppliedTF<54>clip_on<6F>_)<0E>
ValueError<EFBFBD> _inset_ax<61>_auto_update_bounds<64>_bounds_from_inset_axr <00>
_rectangle<EFBFBD> _connectors<72>super<65>__init__<5F>
set_zorder<EFBFBD>_shared_properties<65>setattrr<00>getp) <0B>self<6C>bounds<64>inset_ax<61>zorder<65>kwargs<67>x<>y<>width<74>height<68>prop<6F> __class__s <20><>S/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/inset.pyrzInsetIndicator.__init__s<><00><><00>* <12>><3E>h<EFBFBD>.<2E><1C>R<>S<> S<>!<21><04><0E> <11>><3E>'+<2B>D<EFBFBD> $<24><19>/<2F>/<2F>1<>F<EFBFBD>',<2C>D<EFBFBD> $<24>$<24><1B><01>1<EFBFBD>e<EFBFBD>V<EFBFBD>#<23>Q<EFBFBD><01>F<EFBFBD>E<EFBFBD>6<EFBFBD>S<>5<EFBFBD>S<>F<EFBFBD>S<><04><0F><1E><04><18> <0A><07><18><1A> <0C><0F><0F><06><1F>'<27> J<01>D<EFBFBD> <13>D<EFBFBD>A<EFBFBD>d<EFBFBD>V<EFBFBD>*<2A>f<EFBFBD>k<EFBFBD>k<EFBFBD>$<24>/<2F>/<2F>4<EFBFBD>&H<> I<> J<01>c<00><><00>t|d|<01><00>|<02>tj|jg|j<00>||<02>y)z`
Helper function to set the same style property on the artist and its children.
rN)rr<00>setprr)r r)<00>vals r+<00>_shared_setterzInsetIndicator._shared_setterJs8<00><00> <10><04><01>$<24><16>j<EFBFBD>#<23>&<26><0E> <0B> <0B>T<EFBFBD>_<EFBFBD>_<EFBFBD>8<>t<EFBFBD>'7<>'7<>8<>$<24><03>Dr,c<00>(<00>|jd|<01>y)Nr <00>r0)r r s r+<00> set_alphazInsetIndicator.set_alphaRs<00><00> <0C><1B><1B>G<EFBFBD>U<EFBFBD>+r,c<00>(<00>|jd|<01>y)z<>
Set the edge color of the rectangle and the connectors.
Parameters
----------
color : :mpltype:`color` or None
r Nr2)r <00>colors r+<00> set_edgecolorzInsetIndicator.set_edgecolorVs<00><00> <0A><1B><1B>K<EFBFBD><15>/r,c<00>L<00>|jd|<01>|jd|<01>y)z<>
Set the edgecolor of the rectangle and the connectors, and the
facecolor for the rectangle.
Parameters
----------
c : :mpltype:`color`
r <00> facecolorNr2)r <00>cs r+<00> set_colorzInsetIndicator.set_color`s$<00><00> <0A><1B><1B>K<EFBFBD><11>+<2B> <0C><1B><1B>K<EFBFBD><11>+r,c<00>(<00>|jd|<01>y)z<>
Set the linewidth in points of the rectangle and the connectors.
Parameters
----------
w : float or None
rNr2)r <00>ws r+<00> set_linewidthzInsetIndicator.set_linewidthls<00><00> <0A><1B><1B>K<EFBFBD><11>+r,c<00>(<00>|jd|<01>y)a<>
Set the linestyle of the rectangle and the connectors.
========================================== =================
linestyle description
========================================== =================
``'-'`` or ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dashdot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``'none'``, ``'None'``, ``' '``, or ``''`` draw nothing
========================================== =================
Alternatively a dash tuple of the following form can be provided::
(offset, onoffseq)
where ``onoffseq`` is an even length tuple of on and off ink in points.
Parameters
----------
ls : {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}
The line style.
r Nr2)r <00>lss r+<00> set_linestylezInsetIndicator.set_linestylevs<00><00>2 <0A><1B><1B>K<EFBFBD><12>,r,c<00><><00>|jj<00>}|jj<00>}|d|d|d|dz
|d|dz
fS)Nrr)r<00>get_xlim<69>get_ylim)r <00>xlim<69>ylims r+rz$InsetIndicator._bounds_from_inset_ax<61>sW<00><00><13>~<7E>~<7E>&<26>&<26>(<28><04><13>~<7E>~<7E>&<26>&<26>(<28><04><14>Q<EFBFBD><07><14>a<EFBFBD><17>$<24>q<EFBFBD>'<27>D<EFBFBD><11>G<EFBFBD>"3<>T<EFBFBD>!<21>W<EFBFBD>t<EFBFBD>A<EFBFBD>w<EFBFBD>5F<35>G<>Gr,c <00>T<00>|jj<00>\}}|jj<00>}|jj<00>}|jxsdgdz}t gd<02>|<05>D<00>]7\}}|\}} |j jj<00>rd|z
}|j jj<00>rd| z
} |||zz|| |zzf}
|<07><>t||jj|
|j jd|j|j<00>|j |j"<00><05> } |jj%| <0B><00><>||_|
|_|jj|_|j j|_<00><01>:<07><01>w|jj/<00>} | j1|j3d<06><07>j4<00>} t6j8j;||||<04>j1|jj=<00><00>}|j>| j>k}|j@| j@k}|jB| jBk}|jD| jDk}|jdjG||z <00>|jdjG||k(<00>|jd jG||k(<00>|jd
jG||z <00>yy) N<>))rr)rr)rr)rrr<00>-) <09>xyA<79>coordsA<73>xyB<79>coordsB<73>
arrowstyler r r rF)<01>rootr<00><00>)$r<00>get_xy<78> get_width<74>
get_heightr<00>zip<69>axes<65>xaxis<69> get_inverted<65>yaxisrr<00> transAxes<65> transData<74>
_edgecolor<EFBFBD> get_alpha<68>
_linestyle<EFBFBD>
_linewidth<EFBFBD>append<6E>xy1<79>xy2<79>coords1<73>coords2<73> get_position<6F> transformed<65>
get_figure<EFBFBD>transSubfigurer<00>Bbox<6F> from_bounds<64> get_transform<72>x0<78>x1<78>y0<79>y1<79> set_visible)r r%r&r'r(<00>existing_connectors<72> xy_inset_ax<61>existing<6E>ex<65>ey<65>xy_data<74>p<>pos<6F>bboxins<6E>rectbboxrkrlrmrns r+<00>_update_connectorsz!InsetIndicator._update_connectors<72>s<><00><00><15><1F><1F>'<27>'<27>)<29><06><11>A<EFBFBD><14><0F><0F>)<29>)<29>+<2B><05><15><1F><1F>+<2B>+<2B>-<2D><06>"<22>.<2E>.<2E><<3C>4<EFBFBD>&<26>1<EFBFBD>*<2A><1B>&)<29>)I<>)<<3C>&><3E> 7<> !<21>K<EFBFBD><18>
!<21>F<EFBFBD>B<EFBFBD><02><13>y<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD>+<2B>+<2B>-<2D><16><12>V<EFBFBD><02><13>y<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD>+<2B>+<2B>-<2D><16><12>V<EFBFBD><02><17>"<22>u<EFBFBD>*<2A>n<EFBFBD>a<EFBFBD>"<22>v<EFBFBD>+<2B>o<EFBFBD>5<>G<EFBFBD><17><1F>$<24>#<23>T<EFBFBD>^<5E>^<5E>-E<>-E<><1F><14><19><19>)<<3C>)<<3C>"<22>"<22>o<EFBFBD>o<EFBFBD>T<EFBFBD>^<5E>^<5E>5E<35>"<22>o<EFBFBD>o<EFBFBD><14><1F><1F> J<01><01> <15> <20> <20>'<27>'<27><01>*<2A> +<2B><08> <0C>&<26><08> <0C>#'<27>><3E>><3E>#;<3B>#;<3B><08> <20>#'<27>9<EFBFBD>9<EFBFBD>#6<>#6<><08> <20>7 7<>: <14> <1B><16>.<2E>.<2E>-<2D>-<2D>/<2F>C<EFBFBD><19>o<EFBFBD>o<EFBFBD>d<EFBFBD>o<EFBFBD>o<EFBFBD>5<EFBFBD>o<EFBFBD>&A<>&P<>&P<>Q<>G<EFBFBD>!<21><EFBFBD><EFBFBD>2<>2<>1<EFBFBD>a<EFBFBD><15><06>G<>S<>S<><14><0F><0F>-<2D>-<2D>/<2F>1<>H<EFBFBD><19><1B><1B>w<EFBFBD>z<EFBFBD>z<EFBFBD>)<29>B<EFBFBD><19><1B><1B>w<EFBFBD>z<EFBFBD>z<EFBFBD>)<29>B<EFBFBD><19><1B><1B>w<EFBFBD>z<EFBFBD>z<EFBFBD>)<29>B<EFBFBD><19><1B><1B>w<EFBFBD>z<EFBFBD>z<EFBFBD>)<29>B<EFBFBD> <10> <1C> <1C>Q<EFBFBD> <1F> +<2B> +<2B>B<EFBFBD><12>G<EFBFBD> 4<> <10> <1C> <1C>Q<EFBFBD> <1F> +<2B> +<2B>B<EFBFBD>"<22>H<EFBFBD> 5<> <10> <1C> <1C>Q<EFBFBD> <1F> +<2B> +<2B>B<EFBFBD>"<22>H<EFBFBD> 5<> <10> <1C> <1C>Q<EFBFBD> <1F> +<2B> +<2B>B<EFBFBD><12>G<EFBFBD> 4<> r,c<00><00>|jS)z"`.Rectangle`: the indicator frame.)r<00>r s r+<00> rectanglezInsetIndicator.rectangle<6C>s<00><00><14><EFBFBD><EFBFBD>r,c<00><><00>|j<00>y|jr)|jj|j <00><00>|j <00>t |j<00>S)ai
4-tuple of `.patches.ConnectionPatch` or None
The four connector lines connecting to (lower_left, upper_left,
lower_right upper_right) corners of *inset_ax*. Two lines are
set with visibility to *False*, but the user can set the
visibility to True if the automatic choice is not deemed correct.
N)rrr<00>
set_boundsrrz<00>tuplerr|s r+<00>
connectorszInsetIndicator.connectors<72>sR<00><00> <10>><3E>><3E> !<21> <12> <0F> #<23> #<23> <10>O<EFBFBD>O<EFBFBD> &<26> &<26>t<EFBFBD>'A<>'A<>'C<> D<> <0C><1F><1F>!<21><14>T<EFBFBD>%<25>%<25>&<26>&r,c<00><><00>g}|jxsgD]<5D>}|j<00>s<01>d}tD]N}tj|j
|<05>tj||<05>k7s<01>;|j |<01>d}n|r<01>p|j|<03><00><>|r<>|j
g|z}|D<00>cgc]/}|j<00>j|j<00><00><00><02>1}}tj|<08>} t| <09>}
|
j|j
<00>|
jt!j"<00><00>|
j |<01>y|j
j |<01>ycc}w)NFT)r<><00> get_visiblerrrr<00>drawr_rj<00>transform_path<74>get_pathr
<00>make_compound_pathr<00> update_from<6F> set_transformr<00>IdentityTransform) r <00>renderer<65>conn_same_style<6C>conn<6E>drawn<77>s<>artists<74>a<>paths<68>pathrvs r+r<>zInsetIndicator.draw<61>s6<00><00><1C><0F><19>O<EFBFBD>O<EFBFBD>)<29>r<EFBFBD> 1<>D<EFBFBD><13><1F><1F>!<21><1D><05>+<2B><1E>A<EFBFBD><1D>{<7B>{<7B>4<EFBFBD>?<3F>?<3F>A<EFBFBD>6<>&<26>+<2B>+<2B>d<EFBFBD>A<EFBFBD>:N<>N<><1C> <09> <09>(<28>+<2B> $<24><05><1D> <1E><1D>#<23>*<2A>*<2A>4<EFBFBD>0<> 1<> <1B><1C><EFBFBD><EFBFBD>'<27>/<2F>9<>G<EFBFBD>MT<4D>U<><01>Q<EFBFBD>_<EFBFBD>_<EFBFBD>&<26>5<>5<>a<EFBFBD>j<EFBFBD>j<EFBFBD>l<EFBFBD>C<>U<>E<EFBFBD>U<><17>*<2A>*<2A>E<EFBFBD>2<>D<EFBFBD><1A>$<24><0F>A<EFBFBD> <0A>M<EFBFBD>M<EFBFBD>$<24>/<2F>/<2F> *<2A> <0A>O<EFBFBD>O<EFBFBD>J<EFBFBD>8<>8<>:<3A> ;<3B> <0A>F<EFBFBD>F<EFBFBD>8<EFBFBD> <1C> <12> <0A><0F><0F><1C><1C>X<EFBFBD>&<26><>Vs<00>,4E+z3.10z<EFBFBD>Since Matplotlib 3.10 indicate_inset_[zoom] returns a single InsetIndicator artist with a rectangle property and a connectors property. From 3.12 it will no longer be possible to unpack the return value into two elements.)<01>messagec<00>8<00>|j|jg|S)N)rr<>)r <00>keys r+<00> __getitem__zInsetIndicator.__getitem__s<00><00><15><0F><0F><14><1F><1F>1<>#<23>6<>6r,)NNN)<16>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r#rr0r3r6r:r=r@rrz<00>propertyr}r<>r<>r<00>
deprecatedr<EFBFBD><00> __classcell__)r*s@r+rrs<><00><><00><08><12>F<EFBFBD>.J<01>`E<01>,<2C>0<>
,<2C>,<2C>-<2D>6H<01>
25<>h<0E><1F><0E><1F><0E>'<27><0E>'<27> $'<27>L<15>T<EFBFBD>_<EFBFBD>_<EFBFBD><0E>3<>5<> 7<> 5<> 7r,rN)r<><00>rrr<00>matplotlib.patchesrrr <00>matplotlib.pathr
r<00>Artistr<00>r,r+<00><module>r<>s6<00><01><04>
'<27>&<26>D<>D<> <20>F<01><12>7<>V<EFBFBD>]<5D>]<5D>7r,