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

1678 lines
189 KiB
Text
Raw Normal View History

<EFBFBD>
<00>Rj<>T<00><00>&<00>dZddlmZddlZddlZddlmZmZddlmZddl Z
ddl Z ddl mZmZmZmZmZmZmZmZmZddlmZdd lmZmZmZdd
lmZmZGd <0B>d <0C>Z Gd <0A>d<0E>Z!Gd<0F>de!<21>Z"Gd<11>de"<22>Z#Gd<13>de"<22>Z$Gd<15>de$<24>Z%Gd<17>de$<24>Z&d<19>Z'Gd<1A>de"<22>Z(Gd<1C>de"<22>Z)Gd<1E>de"<22>Z*Gd <20>d!e!<21>Z+Gd"<22>d#e"<22>Z,Gd$<24>d%e!<21>Z-Gd&<26>d'e"<22>Z.Gd(<28>d)e.<2E>Z/Gd*<2A>d+<2B>Z0Gd,<2C>d-<2D>Z1d.Z2ejfe2jid/d0<64><00>Gd1<64>d2e.<2E><00>Z5ejfe2jid/d3<64><00>Gd4<64>d5e5<65><00>Z6Gd6<64>d7e.<2E>Z7Gd8<64>d9e.<2E>Z8Gd:<3A>d;e"<22>Z9y)<a|
GUI neutral widgets
===================
Widgets that are designed to work for any of the GUI backends.
All of these widgets require you to predefine an `~.axes.Axes`
instance and pass that as the first parameter. Matplotlib doesn't try to
be too smart with respect to layout -- you will have to figure out how
wide and tall you want your Axes to be to accommodate your widget.
<EFBFBD>)<01> ExitStackN)<02>Integral<61>Number)<01>cycler<65>) <09>_api<70>
_docstring<EFBFBD> backend_tools<6C>cbook<6F> collections<6E>colors<72>text<78>ticker<65>
transforms)<01>Line2D)<03> Rectangle<6C>Ellipse<73>Polygon)<02>TransformedPatchPath<74>Affine2Dc<00>4<00>eZdZdZd<02>Zd<03>Zd<04>Zd<05>Zd<06>Zd<07>Z y) <09>LockDrawa<77>
Some widgets, like the cursor, draw onto the canvas, and this is not
desirable under all circumstances, like when the toolbar is in zoom-to-rect
mode and drawing a rectangle. To avoid this, a widget can acquire a
canvas' lock with ``canvas.widgetlock(widget)`` before drawing on the
canvas; this will prevent other widgets from doing so at the same time (if
they also try to acquire the lock first).
c<00><00>d|_y<00>N<><01>_owner<65><01>selfs <20>U/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/widgets.py<70>__init__zLockDraw.__init__&s <00><00><1A><04> <0B>c<00>J<00>|j|<01>s td<01><00>||_y)zReserve the lock for *o*.zalready lockedN<64><03> available<6C>
ValueErrorr<00>r<00>os r<00>__call__zLockDraw.__call__)s!<00><00><13>~<7E>~<7E>a<EFBFBD> <20><1C>-<2D>.<2E> .<2E><17><04> r!c<00>J<00>|j|<01>s td<01><00>d|_y)zRelease the lock from *o*.zyou do not own this lockNr#r&s r<00>releasezLockDraw.release/s!<00><00><13>~<7E>~<7E>a<EFBFBD> <20><1C>7<>8<> 8<><1A><04> r!c<00>J<00>|j<00> xs|j|<01>S)z+Return whether drawing is available to *o*.)<02>locked<65>isownerr&s rr$zLockDraw.available5s<00><00><17>;<3B>;<3B>=<3D> <20>3<>D<EFBFBD>L<EFBFBD>L<EFBFBD><11>O<EFBFBD>3r!c<00><00>|j|uS)z"Return whether *o* owns this lock.rr&s rr-zLockDraw.isowner9s<00><00><13>{<7B>{<7B>a<EFBFBD><1F>r!c<00><00>|jduS)z6Return whether the lock is currently held by an owner.Nrrs rr,zLockDraw.locked=s<00><00><13>{<7B>{<7B>$<24>&<26>&r!N)
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r r(r*r$r-r,<00>r!rrrs%<00><00><08><1B><18> <1B> 4<> <20>'r!rc<00>D<00>eZdZdZdZdZdZd<03>Zd<04>Ze eed<05><06>Z
d<07>Z y) <09>Widgetz6
Abstract base class for GUI neutral widgets.
Tc<00><00>||_y)z!Set whether the widget is active.N<><01>_active)r<00>actives r<00>
set_activezWidget.set_activeJs <00><00><1D><04> r!c<00><00>|jS)z!Get whether the widget is active.r8rs r<00>
get_activezWidget.get_activeNs <00><00><13>|<7C>|<7C>r!zIs the widget active?)<01>docc<00><00>|j S)z<>
Return whether *event* should be ignored.
This method should be called at the beginning of any event callback.
)r:<00>r<00>events r<00>ignorez Widget.ignoreUs<00><00> <18>;<3B>;<3B><EFBFBD>r!N) r0r1r2r3<00>drawon<6F>eventsonr9r;r=<00>propertyr:rBr4r!rr6r6Bs8<00><00><08><12>F<EFBFBD><13>H<EFBFBD><12>G<EFBFBD><1E><1C>
<16>j<EFBFBD>*<2A>2I<32> J<>F<EFBFBD>r!r6c<00>:<00>eZdZdZd<02>Zed<03><00>Zd<04>Zd<05>Zd<06>Z y)<08>
AxesWidgeta<EFBFBD>
Widget connected to a single `~matplotlib.axes.Axes`.
To guarantee that the widget remains responsive and not garbage-collected,
a reference to the object should be maintained by the user.
This is necessary because the callback registry
maintains only weak-refs to the functions, which are member
functions of the widget. If there are no references to the widget
object it may be garbage collected which will disconnect the callbacks.
Attributes
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
canvas : `~matplotlib.backend_bases.FigureCanvasBase`
The parent figure canvas for the widget.
active : bool
If False, the widget does not respond to events.
c<00> <00>||_g|_yr)<02>ax<61>_cids)rrIs rr zAxesWidget.__init__ts<00><00><14><04><07><17><04>
r!c<00>N<00>|jjd<01><02>jS)NT<4E><01>root)rI<00>
get_figure<EFBFBD>canvasrs r<00><lambda>zAxesWidget.<lambda>xs<00><00>4<EFBFBD>7<EFBFBD>7<EFBFBD>#5<>#5<>4<EFBFBD>#5<>#@<40>#G<>#G<>r!c<00>r<00>|jj||<02>}|jj|<03>y)z<>
Connect a callback function with an event.
This should be used in lieu of ``figure.canvas.mpl_connect`` since this
function stores callback ids for later clean up.
N)rO<00> mpl_connectrJ<00>append)rrA<00>callback<63>cids r<00> connect_eventzAxesWidget.connect_eventzs,<00><00><13>k<EFBFBD>k<EFBFBD>%<25>%<25>e<EFBFBD>X<EFBFBD>6<><03> <0C>
<EFBFBD>
<EFBFBD><19><19>#<23>r!c<00>\<00>|jD]}|jj|<01><00>y)z-Disconnect all events created by this widget.N)rJrO<00>mpl_disconnect)r<00>cs r<00>disconnect_eventszAxesWidget.disconnect_events<74>s'<00><00><15><1A><1A> *<2A>A<EFBFBD> <10>K<EFBFBD>K<EFBFBD> &<26> &<26>q<EFBFBD> )<29> *r!c<00><><00>|j|jur|j|jfS|jjj <00>j |j|jf<02>S)z8Return *event*'s data coordinates in this widget's Axes.) <09>inaxesrI<00>xdata<74>ydata<74> transData<74>inverted<65> transform<72>x<>yr@s r<00>_get_data_coordszAxesWidget._get_data_coords<64>s]<00><00>/4<>l<EFBFBD>l<EFBFBD>d<EFBFBD>g<EFBFBD>g<EFBFBD>.E<><15><1B><1B>e<EFBFBD>k<EFBFBD>k<EFBFBD>*<2A> Q<01><19>W<EFBFBD>W<EFBFBD>&<26>&<26>/<2F>/<2F>1<>;<3B>;<3B>U<EFBFBD>W<EFBFBD>W<EFBFBD>e<EFBFBD>g<EFBFBD>g<EFBFBD><N<>O<> Qr!N)
r0r1r2r3r rErOrVrZrdr4r!rrGrG^s)<00><00><08>*<18><16>G<> H<>F<EFBFBD><1F>*<2A>
Qr!rGc<00>L<00><00>eZdZdZ d
dd<03><01>fd<04> Zd<05>Zd<06>Zd<07>Zd<08>Zd <09>Z <09>xZ
S) <0B>Buttona<6E>
A GUI neutral button.
For the button to remain responsive you must keep a reference to it.
Call `.on_clicked` to connect to the button.
Attributes
----------
ax
The `~.axes.Axes` the button renders into.
label
A `.Text` instance.
color
The color of the button when not hovering.
hovercolor
The color of the button when hovering.
T)<01>useblitc<00>X<00><01>t<00>|<00>|<01>|<03>|j|<03>|jdd|dd|j<00><04>|_|xr|j j|_tjdg<01><06>|_ |jd|j<00>|jd|j<00>|jd |j<00>|j!d
<EFBFBD>|j#|<04>|j%g<00>|j'g<00>||_||_y) a
Parameters
----------
ax : `~matplotlib.axes.Axes`
The `~.axes.Axes` instance the button will be placed into.
label : str
The button text.
image : array-like or PIL Image
The image to place in the button, if not *None*. The parameter is
directly forwarded to `~.axes.Axes.imshow`.
color : :mpltype:`color`
The color of the button when not activated.
hovercolor : :mpltype:`color`
The color of the button when the mouse is over it.
useblit : bool, default: True
Use blitting for faster drawing if supported by the backend.
See the tutorial :ref:`blitting` for details.
.. versionadded:: 3.7
N<><00>?<3F>center)<03>verticalalignment<6E>horizontalalignmentra<00>clicked<65><01>signals<6C>button_press_event<6E>button_release_event<6E>motion_notify_eventF)<16>superr <00>imshowr<00> transAxes<65>labelrO<00> supports_blit<69>_useblitr <00>CallbackRegistry<72>
_observersrV<00>_click<63>_release<73>_motion<6F> set_navigate<74> set_facecolor<6F>
set_xticks<EFBFBD>
set_yticks<EFBFBD>color<6F>
hovercolor)rrIrv<00>imager<65>r<>rg<00> __class__s <20>rr zButton.__init__<5F>s<><00><><00>, <0E><07><18><12><1C> <10> <1C> <0E>I<EFBFBD>I<EFBFBD>e<EFBFBD> <1C><17>W<EFBFBD>W<EFBFBD>S<EFBFBD>#<23>u<EFBFBD>/7<>19<31>')<29>|<7C>|<7C><1D>5<><04>
<EFBFBD>
 <20>=<3D>D<EFBFBD>K<EFBFBD>K<EFBFBD>$=<3D>$=<3D><04> <0A><1F>0<>0<>)<29><1B>E<><04><0F> <0C><1A><1A>/<2F><14><1B><1B>=<3D> <0C><1A><1A>1<>4<EFBFBD>=<3D>=<3D>A<> <0C><1A><1A>0<>$<24>,<2C>,<2C>?<3F>
<EFBFBD><0F><0F><05><1E>
<EFBFBD><18><18><15><1F>
<EFBFBD> <0A> <0A>b<EFBFBD><19>
<EFBFBD> <0A> <0A>b<EFBFBD><19><1A><04>
<EFBFBD>$<24><04>r!c<00><00>|jr/|j|<01>s|jj|<01>dsy|jj
|jk7r&|jj |j<00>yy<00>Nr)rDrBrI<00>containsrO<00> mouse_grabber<65>
grab_mouser@s rr{z Button._click<63>s_<00><00><13>}<7D>}<7D><04> <0B> <0B>E<EFBFBD> 2<>$<24>'<27>'<27>:J<>:J<>5<EFBFBD>:Q<>RS<52>:T<> <12> <10><<3C><<3C> %<25> %<25><14><17><17> 0<> <11>L<EFBFBD>L<EFBFBD> #<23> #<23>D<EFBFBD>G<EFBFBD>G<EFBFBD> ,<2C> 1r!c<00>H<00>|j|<01>s#|jj|jk7ry|jj |j<00>|j
r<|jj |<01>dr|jjd|<01>yyy)Nrrm) rBrOr<>rI<00> release_mouserDr<>rz<00>processr@s rr|zButton._release<73>st<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D><15><1C><1C>!;<3B>!;<3B>t<EFBFBD>w<EFBFBD>w<EFBFBD>!F<> <12> <0A> <0C> <0C>"<22>"<22>4<EFBFBD>7<EFBFBD>7<EFBFBD>+<2B> <0F>=<3D>=<3D>T<EFBFBD>W<EFBFBD>W<EFBFBD>-<2D>-<2D>e<EFBFBD>4<>Q<EFBFBD>7<> <10>O<EFBFBD>O<EFBFBD> #<23> #<23>I<EFBFBD>u<EFBFBD> 5<>8<>=r!c<00>8<00>|j|<01>ry|jj|<01>dr |jn |j}t j ||jj<00><00>s<>|jj|<02>|jr||jrU|jj|j<00>|jj|jj<00>y|jj<00>yyyr<>)rBrIr<>r<>r<>r <00>
same_color<EFBFBD> get_facecolorrrCrx<00> draw_artistrO<00>blit<69>bbox<6F>draw<61>rrArYs rr}zButton._motion<6F>s<><00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12>#<23>w<EFBFBD>w<EFBFBD>/<2F>/<2F><05>6<>q<EFBFBD>9<>D<EFBFBD>O<EFBFBD>O<EFBFBD>t<EFBFBD>z<EFBFBD>z<EFBFBD><01><15> <20> <20><11>D<EFBFBD>G<EFBFBD>G<EFBFBD>$9<>$9<>$;<3B><<3C> <10>G<EFBFBD>G<EFBFBD> !<21> !<21>!<21> $<24><13>{<7B>{<7B><17>=<3D>=<3D><18>G<EFBFBD>G<EFBFBD>'<27>'<27><04><07><07>0<><18>K<EFBFBD>K<EFBFBD>$<24>$<24>T<EFBFBD>W<EFBFBD>W<EFBFBD>\<5C>\<5C>2<><18>K<EFBFBD>K<EFBFBD>$<24>$<24>&<26> <1B>=r!c<00>B<00><01>|jjd<01>fd<02><08>S)z<>
Connect the callback function *func* to button click events.
Returns a connection id, which can be used to disconnect the callback.
rmc<00><00><01><00>|<00>Srr4)rA<00>funcs <20>rrPz#Button.on_clicked.<locals>.<lambda><3E>s <00><><00><04>U<EFBFBD> <0B>r!<00>rz<00>connect<63>rr<>s `r<00>
on_clickedzButton.on_clicked<65>s<00><><00> <14><EFBFBD><EFBFBD>&<26>&<26>y<EFBFBD>2K<32>L<>Lr!c<00>:<00>|jj|<01>y)z6Remove the callback function with connection id *cid*.N<>rz<00>
disconnect<EFBFBD>rrUs rr<>zButton.disconnect<63><00><00><00> <0C><0F><0F>"<22>"<22>3<EFBFBD>'r!)Nz0.85z0.95) r0r1r2r3r r{r|r}r<>r<><00> __classcell__<5F>r<>s@rrfrf<00>s8<00><><00><08>$)-<2D>*0<>+%<25>=A<>+%<25>Z-<2D> 6<> '<27>M<01>(r!rfc<00>4<00><00>eZdZdZ<03>fd<02>Zd<03>Zd<04>Zd<05>Z<07>xZS)<06>
SliderBasez<EFBFBD>
The base class for constructing Slider widgets. Not intended for direct
usage.
For the slider to remain responsive you must maintain a reference to it.
c
<00><><00><01>|jdk(r td<02><00>t<00> |<00> |<01>t j
ddg|<02><05>||_||_||_||_ ||_
| |_ d|_ ||_ |dk(r |j||f<02>|j}
n|j!||f<02>|j"}
|
j%<00>|_t)|j&t*j,<00>s4t+j,<00>|_|j&j/|
<EFBFBD>|j&j1d<06>|j&j3d<07>|j5<00>|j7d<06>|j9d|j:<00>|j9d |j:<00>|r|j9d
|j:<00>t=j>d g<01> <0C>|_ y) N<>3dz"Sliders cannot be added to 3D Axes<65>
horizontal<EFBFBD>vertical)<01> orientationFTrprqrr<00>changedrn)!<21>namer%rsr r<00> check_in_listr<74><00> closedmin<69> closedmax<61>valmin<69>valmax<61>valstep<65> drag_active<76>valfmt<6D>set_ylim<69>yaxis<69>set_xlim<69>xaxis<69>get_major_formatter<65>_fmt<6D>
isinstancer<00>ScalarFormatter<65>set_axis<69> set_useOffset<65>set_useMathText<78> set_axis_offr~rV<00>_updater ryrz) rrIr<>r<>r<>r<>r<>r<><00>draggingr<67><00>axisr<73>s <20>rr zSliderBase.__init__s<><00><><00> <0A>7<EFBFBD>7<EFBFBD>d<EFBFBD>?<3F><1C>A<>B<> B<> <0A><07><18><12><1C> <0C><1A><1A>L<EFBFBD>*<2A>5<>;<3B>O<>&<26><04><18>"<22><04><0E>"<22><04><0E><1C><04> <0B><1C><04> <0B><1E><04> <0C> <20><04><18><1C><04> <0B> <16>*<2A> $<24> <0E>K<EFBFBD>K<EFBFBD><16><16>(<28> )<29><15>8<EFBFBD>8<EFBFBD>D<EFBFBD> <0E>K<EFBFBD>K<EFBFBD><16><16>(<28> )<29><15>8<EFBFBD>8<EFBFBD>D<EFBFBD><18>,<2C>,<2C>.<2E><04> <09><19>$<24>)<29>)<29>V<EFBFBD>%;<3B>%;<3B><<3C><1E>.<2E>.<2E>0<>D<EFBFBD>I<EFBFBD> <10>I<EFBFBD>I<EFBFBD> <1E> <1E>t<EFBFBD> $<24> <0C> <09> <09><1F><1F><05>&<26> <0C> <09> <09>!<21>!<21>$<24>'<27>
<EFBFBD><0F><0F><19>
<EFBFBD><0F><0F><05><1E> <0C><1A><1A>/<2F><14><1C><1C>><3E> <0C><1A><1A>1<>4<EFBFBD><<3C><<3C>@<40> <13> <10> <1E> <1E>4<>d<EFBFBD>l<EFBFBD>l<EFBFBD> C<><1F>0<>0<>)<29><1B>E<><04>r!c<00><><00>t|jt<00>rA|jt ||jz
|jz <00>|jzz}|S|j<00>tt j |j<00>}|jdk7rtd|j<00><00><02><00>|t jt j||z
<00><00>}|S)z?Return *val* coerced to closest number in the ``valstep`` grid.rz&valstep must have 1 dimension but has ) r<>r<>rr<><00>round<6E>np<6E>
asanyarray<EFBFBD>ndimr%<00>argmin<69>abs)r<00>valr<6C>s r<00>_stepped_valuezSliderBase._stepped_value*s<><00><00> <15>d<EFBFBD>l<EFBFBD>l<EFBFBD>F<EFBFBD> +<2B><17>;<3B>;<3B><1A>C<EFBFBD>$<24>+<2B>+<2B>-<2D><14><1C><1C>=<3D>><3E><14><1C><1C>M<>N<01>C<EFBFBD><13>
<EFBFBD><12>\<5C>\<5C> %<25><18>m<EFBFBD>m<EFBFBD>D<EFBFBD>L<EFBFBD>L<EFBFBD>1<>G<EFBFBD><16>|<7C>|<7C>q<EFBFBD> <20> <20><<3C>W<EFBFBD>\<5C>\<5C>N<EFBFBD>K<><12><12><1A>"<22>)<29>)<29>B<EFBFBD>F<EFBFBD>F<EFBFBD>7<EFBFBD>S<EFBFBD>=<3D>$9<>:<3A>;<3B>C<EFBFBD><12>
r!c<00>:<00>|jj|<01>y)z<>
Remove the observer with connection id *cid*.
Parameters
----------
cid : int
Connection id of the observer to be removed.
Nr<4E>r<>s rr<>zSliderBase.disconnect8s<00><00> <0A><0F><0F>"<22>"<22>3<EFBFBD>'r!c<00><><00>tj|j|jk7<00>r|j |j<00>yy)z&Reset the slider to the initial value.N)r<><00>anyr<79><00>valinit<69>set_valrs r<00>resetzSliderBase.resetCs0<00><00> <0A>6<EFBFBD>6<EFBFBD>$<24>(<28>(<28>d<EFBFBD>l<EFBFBD>l<EFBFBD>*<2A> +<2B> <10>L<EFBFBD>L<EFBFBD><14><1C><1C> &<26> ,r!) r0r1r2r3r r<>r<>r<>r<>r<>s@rr<>r<><00>s<00><><00><08> &F<01>P <13> (<28>'r!r<>c <00>\<00><00>eZdZdZddddddddddddd<08> <0C>fd <09>
Zd
<EFBFBD>Zd <0B>Zd <0C>Zd <0A>Zd<0E>Z <09>xZ
S)<0F>SlideraB
A slider representing a floating point range.
Create a slider from *valmin* to *valmax* in Axes *ax*. For the slider to
remain responsive you must maintain a reference to it. Call
:meth:`on_changed` to connect to the slider event.
Attributes
----------
val : float
Slider value.
riNTr<54><00>r<> lightgrey) r<>r<>r<>r<><00> slidermin<69> slidermaxr<78>r<>r<><00> initcolor<6F> track_color<6F> handle_stylec <00><><00><01>t<00>|<00>|| |||||| | <0C> | <09>$t| d<02>stdt | <09><00>d<04><03><00>|
<EFBFBD>$t|
d<02>stdt |
<EFBFBD><00>d<04><03><00>| |_|
|_|j|<05>}|<05>|}||_||_ dddd <09>}|<10>in|}i|<12>|<10>j<00>D<00><13>cic] \}}d
|<13><00>|<14><02> }}}| d k(r<>td d d|j|<0F><0F>|_ |j|j<00>|j||ddfi|<11><01>|_|j#|dd|dt%|j<00><00><13>|_d g|gg}n<>tddd |j|<0F><0F>|_ |j|j<00>|j(||ddfi|<11><01>|_|j+|dd|dt%|j<00><00><13>|_|gd gg}|j.g|<16>d<15><01>i|<15>ddi<01><01>\|_| d k(r\|j3d d||jdd<1A><1B>|_|j3d d|j7|<05>|jdd<1A><1B>|_n[|j3dd ||jdd<1E><1B>|_|j3dd |j7|<05>|jdd<1F><1B>|_|j;|<05>ycc}}w) ah
Parameters
----------
ax : Axes
The Axes to put the slider in.
label : str
Slider label.
valmin : float
The minimum value of the slider.
valmax : float
The maximum value of the slider.
valinit : float, default: 0.5
The slider initial position.
valfmt : str, default: None
%-format string used to format the slider value. If None, a
`.ScalarFormatter` is used instead.
closedmin : bool, default: True
Whether the slider interval is closed on the bottom.
closedmax : bool, default: True
Whether the slider interval is closed on the top.
slidermin : Slider, default: None
Do not allow the current slider to have a value less than
the value of the Slider *slidermin*.
slidermax : Slider, default: None
Do not allow the current slider to have a value greater than
the value of the Slider *slidermax*.
dragging : bool, default: True
If True the slider can be dragged by the mouse.
valstep : float or array-like, default: None
If a float, the slider will snap to multiples of *valstep*.
If an array the slider will snap to the values in the array.
orientation : {'horizontal', 'vertical'}, default: 'horizontal'
The orientation of the slider.
initcolor : :mpltype:`color`, default: 'r'
The color of the line at the *valinit* position. Set to ``'none'``
for no line.
track_color : :mpltype:`color`, default: 'lightgrey'
The color of the background track. The track is accessible for
further styling via the *track* attribute.
handle_style : dict
Properties of the slider handle. Default values are
========= ===== ======= ========================================
Key Value Default Description
========= ===== ======= ========================================
facecolor color 'white' The facecolor of the slider handle.
edgecolor color '.75' The edgecolor of the slider handle.
size int 10 The size of the slider handle in points.
========= ===== ======= ========================================
Other values will be transformed as marker{foo} and passed to the
`~.Line2D` constructor. e.g. ``handle_style = {'style'='x'}`` will
result in ``markerstyle = 'x'``.
Notes
-----
Additional kwargs are passed on to ``self.poly`` which is the
`~matplotlib.patches.Rectangle` that draws the slider knob. See the
`.Rectangle` documentation for valid property names (``facecolor``,
``edgecolor``, ``alpha``, etc.).
Nr<4E>zArgument slidermin (z) has no 'val'zArgument slidermax (<28>white<74>.75<EFBFBD>
<00><03> facecolor<6F> edgecolor<6F>size<7A>markerr<72><00><02><00>?rrir<00>rar<>r<><00><00>?r)r<><00>lw<6C> clip_path<74>rr<>r'<00>clip_onF<6E>R<EFBFBD><1E><>Q<EFBFBD>?<3F>bottomrj<00>rarkrl<00>{<14>G<EFBFBD>z<EFBFBD><7A><EFBFBD>top<6F>right<68>left)rsr <00>hasattrr%<00>typer<65>r<><00>_value_in_boundsr<73>r<><00>itemsrru<00>track<63> add_patch<63>axhspan<61>poly<6C>axhliner<00>hline<6E>axvspan<61>axvline<6E>vline<6E>plot<6F>_handlerrv<00>_format<61>valtextr<74>)rrIrvr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<><00>kwargs<67>defaults<74>k<>v<> marker_props<70>handleXYr<59>s <20>rr zSlider.__init__Ws5<00><><00>b <0E><07><18><12>[<5B>)<29>Y<EFBFBD><1F><16><16><18>7<EFBFBD> D<01> <15> <20><17><19>E<EFBFBD>)B<><1C>&<26>t<EFBFBD>I<EFBFBD><EFBFBD>&7<>~<7E>F<>H<01> H<01> <14> <20><17><19>E<EFBFBD>)B<><1C>&<26>t<EFBFBD>I<EFBFBD><EFBFBD>&7<>~<7E>F<>H<01> H<01>"<22><04><0E>"<22><04><0E><16>'<27>'<27><07>0<><07> <12>?<3F><1C>G<EFBFBD><1A><04><08><1E><04> <0C>!(<28>u<EFBFBD>b<EFBFBD>I<><08>)<29>1<>r<EFBFBD>|<7C> <0C>(D<>8<EFBFBD>(D<>|<7C>(D<>(J<>(J<>(L<>
<EFBFBD> $<24><01>1<EFBFBD>f<EFBFBD>Q<EFBFBD>C<EFBFBD>L<EFBFBD>!<21>O<EFBFBD>
<EFBFBD> <0C>
<EFBFBD> <17>*<2A> $<24>"<22><18>"<22>a<EFBFBD><1C>,<2C>,<2C>%<25><0E>D<EFBFBD>J<EFBFBD>
<0F>L<EFBFBD>L<EFBFBD><14><1A><1A> $<24>"<22><02>
<EFBFBD>
<EFBFBD>6<EFBFBD>7<EFBFBD>C<EFBFBD><13>G<><06>G<>D<EFBFBD>I<EFBFBD><1C><1A><1A>G<EFBFBD>Q<EFBFBD><01><19>q<EFBFBD>.B<>4<EFBFBD>:<3A>:<3A>.N<>$<24>P<01>D<EFBFBD>J<EFBFBD><1C><05><07>y<EFBFBD>)<29>H<EFBFBD>"<22><18>!<21>R<EFBFBD><1C>,<2C>,<2C>%<25><0E>D<EFBFBD>J<EFBFBD>
<0F>L<EFBFBD>L<EFBFBD><14><1A><1A> $<24>"<22><02>
<EFBFBD>
<EFBFBD>6<EFBFBD>7<EFBFBD>C<EFBFBD><13>G<><06>G<>D<EFBFBD>I<EFBFBD><1B><1A><1A>G<EFBFBD>Q<EFBFBD><01><19>q<EFBFBD>.B<>4<EFBFBD>:<3A>:<3A>.N<>$<24>P<01>D<EFBFBD>J<EFBFBD> <20> <09>C<EFBFBD>5<EFBFBD>)<29>H<EFBFBD><1F><02><07><07>
<EFBFBD> <15>
<EFBFBD> <0F>
<EFBFBD><1B>
<EFBFBD><1A> 
<EFBFBD> <0A><04> <0C> <17>*<2A> $<24><1B><17><17><13>d<EFBFBD>E<EFBFBD>R<EFBFBD>\<5C>\<5C>3;<3B>5=<3D>!<21>?<3F>D<EFBFBD>J<EFBFBD><1E>7<EFBFBD>7<EFBFBD>3<EFBFBD><05>t<EFBFBD>|<7C>|<7C>G<EFBFBD>/D<>-/<2F>\<5C>\<5C>5:<3A>7?<3F>#<23>A<01>D<EFBFBD>L<EFBFBD>
<1C><17><17><15><03>U<EFBFBD>b<EFBFBD>l<EFBFBD>l<EFBFBD>3;<3B>5<<3C>!<21>><3E>D<EFBFBD>J<EFBFBD><1E>7<EFBFBD>7<EFBFBD>4<EFBFBD><13>d<EFBFBD>l<EFBFBD>l<EFBFBD>7<EFBFBD>.C<>-/<2F>\<5C>\<5C>5=<3D>7=<3D>#<23>?<3F>D<EFBFBD>L<EFBFBD>
<0A> <0C> <0C>W<EFBFBD><1D><>m
s<00>9Kc<00><><00>|j|<01>}||jkr|jsy|j}n(||jk\r|jsy|j}|j
<00><||j
j kr#|jsy|j
j }|j<00><||jj k\r#|jsy|jj }|S)z&Makes sure *val* is with given bounds.N)r<>r<>r<>r<>r<>r<>r<>r<><00>rr<>s rr<>zSlider._value_in_bounds<64>s<><00><00><12>!<21>!<21>#<23>&<26><03> <0E>$<24>+<2B>+<2B> <1D><17>><3E>><3E><16><16>+<2B>+<2B>C<EFBFBD> <10>D<EFBFBD>K<EFBFBD>K<EFBFBD> <1F><17>><3E>><3E><16><16>+<2B>+<2B>C<EFBFBD> <0F>><3E>><3E> %<25>#<23><14><1E><1E>1C<31>1C<31>*C<><17>><3E>><3E><16><16>.<2E>.<2E>$<24>$<24>C<EFBFBD> <0F>><3E>><3E> %<25>#<23><14><1E><1E>1C<31>1C<31>*C<><17>><3E>><3E><16><16>.<2E>.<2E>$<24>$<24>C<EFBFBD><12>
r!c<00><><00>|j|<01>s|jdk7ry|jdk(rJ|jj |<01>dr,d|_|j j|j<00>|j
sy|jdk(s-|jdk(rK|jj |<01>ds-d|_|j j|j<00>y|j|<01>\}}|j|jdk(r|n|<03>}|d|jfvr|j|<04>yy<02> zUpdate the slider position.rNrprTrqFr<46>)rB<00>buttonr<6E>rIr<>r<>rOr<>r<>rdr<>r<>r<>r<>)rrAr]r^r<>s rr<>zSlider._update s<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D><15><1C><1C><11>!2<> <12> <10>:<3A>:<3A>-<2D> -<2D>$<24>'<27>'<27>2B<32>2B<32>5<EFBFBD>2I<32>!<21>2L<32>#<23>D<EFBFBD> <1C> <11>L<EFBFBD>L<EFBFBD> #<23> #<23>D<EFBFBD>G<EFBFBD>G<EFBFBD> ,<2C><13><1F><1F> <12> <11>J<EFBFBD>J<EFBFBD>0<> 0<><16><1A><1A>3<>3<>D<EFBFBD>G<EFBFBD>G<EFBFBD><L<><L<>U<EFBFBD><S<>TU<54><V<>$<24>D<EFBFBD> <1C> <11>L<EFBFBD>L<EFBFBD> &<26> &<26>t<EFBFBD>w<EFBFBD>w<EFBFBD> /<2F> <12><1B>,<2C>,<2C>U<EFBFBD>3<> <0C><05>u<EFBFBD><12>#<23>#<23><19>%<25>%<25><1C>5<>E<EFBFBD>5<EFBFBD>B<01><03> <0E>t<EFBFBD>T<EFBFBD>X<EFBFBD>X<EFBFBD>&<26> &<26> <10>L<EFBFBD>L<EFBFBD><13> <1D> 'r!c<00><><00>|j<00>|j|zS|jj|j||jg<03>\}}}||jj <00>zS)<01>Pretty-print *val*.<2E>r<>r<><00> format_ticksr<73>r<><00>
get_offset)rr<><00>_<>ss rrzSlider._format#s\<00><00> <0F>;<3B>;<3B> "<22><17>;<3B>;<3B><13>$<24> $<24><1A>i<EFBFBD>i<EFBFBD>,<2C>,<2C>d<EFBFBD>k<EFBFBD>k<EFBFBD>3<EFBFBD><04> <0B> <0B>-L<>M<>G<EFBFBD>A<EFBFBD>q<EFBFBD>!<21><14>t<EFBFBD>y<EFBFBD>y<EFBFBD>+<2B>+<2B>-<2D>-<2D> -r!c<00><><00>|jdk(rS|jj||jj<00>z
<00>|jj |g<01>nR|jj ||jj<00>z
<00>|jj|g<01>|jj|j|<01><00>|jr4|jjd<02><03>jj!<00>||_|j$r|j&j)d|<01>yy)zg
Set slider value to *val*.
Parameters
----------
val : float
r<>TrLr<>N)r<>r<><00>
set_height<EFBFBD>get_yr<00> set_ydata<74> set_width<74>get_x<5F> set_xdatar<00>set_textrrCrIrNrO<00> draw_idler<65>rDrzr<>r s rr<>zSlider.set_val,s<><00><00> <10> <1B> <1B>z<EFBFBD> )<29> <10>I<EFBFBD>I<EFBFBD> <20> <20><13>t<EFBFBD>y<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD>'8<>!8<> 9<> <10>L<EFBFBD>L<EFBFBD> "<22> "<22>C<EFBFBD>5<EFBFBD> )<29> <10>I<EFBFBD>I<EFBFBD> <1F> <1F><03>d<EFBFBD>i<EFBFBD>i<EFBFBD>o<EFBFBD>o<EFBFBD>&7<> 7<> 8<> <10>L<EFBFBD>L<EFBFBD> "<22> "<22>C<EFBFBD>5<EFBFBD> )<29> <0C> <0C> <0C><1D><1D>d<EFBFBD>l<EFBFBD>l<EFBFBD>3<EFBFBD>/<2F>0<> <0F>;<3B>;<3B> <10>G<EFBFBD>G<EFBFBD> <1E> <1E>D<EFBFBD> <1E> )<29> 0<> 0<> :<3A> :<3A> <<3C><16><04><08> <0F>=<3D>=<3D> <10>O<EFBFBD>O<EFBFBD> #<23> #<23>I<EFBFBD>s<EFBFBD> 3<> r!c<00>B<00><01>|jjd<01>fd<02><08>S)a<>
Connect *func* as callback function to changes of the slider value.
Parameters
----------
func : callable
Function to call when slider is changed.
The function must accept a single float as its arguments.
Returns
-------
int
Connection id (which can be used to disconnect *func*).
r<>c<00><00><01><00>|<00>Srr4<00>r<>r<>s <20>rrPz#Slider.on_changed.<locals>.<lambda>P<00> <00><><00>d<EFBFBD>3<EFBFBD>i<EFBFBD>r!r<>r<>s `r<00>
on_changedzSlider.on_changedA<00><00><><00><14><EFBFBD><EFBFBD>&<26>&<26>y<EFBFBD>2G<32>H<>Hr!) r0r1r2r3r r<>r<>rr<>r$r<>r<>s@rr<>r<>IsI<00><><00> <08>>A<01><14><1F>4<EFBFBD>4<EFBFBD><1F>$<24><04>)<29>S<EFBFBD>(<28>t<EFBFBD> Z<1E>x<13>0<1E>0.<2E>4<>*Ir!r<>c
<00>z<00><00>eZdZdZdddddddddd<06> <09>fd<07>
Zd<08>Zd <09>Zd
<EFBFBD>Zd <0B>Zd <0C>Z d <0A>Z
d<0E>Z d<0F>Z d<10>Z d<11>Zd<12>Z<0F>xZS)<13> RangeSlidera<72>
A slider representing a range of floating point values. Defines the min and
max of the range via the *val* attribute as a tuple of (min, max).
Create a slider that defines a range contained within [*valmin*, *valmax*]
in Axes *ax*. For the slider to remain responsive you must maintain a
reference to it. Call :meth:`on_changed` to connect to the slider event.
Attributes
----------
val : tuple of float
Slider value.
NTr<54>r<>) r<>r<>r<>r<>r<>r<>r<>r<>r<>c <00>t<00><01>t<00>|<00>|| |||||| |
<EFBFBD> ||f|_|<05>)||z
}tj||dzz||dzzg<02>}n|j |<05>}||_||_dddd<07>}| <0A>in| } i|<10>| <0A>j<00>D<00><11>cic] \}}d|<11><00>|<12><02> }}}| d k(retd
d d |j| <0C> <0A>|_
|j|j<00>|jjd<0E><0F>}d |dg}d |dg}ndtddd |j| <0C> <0A>|_
|j|j<00>|jjd<0E><0F>}|dd g}|dd g}ttj dd g<02>fi|<0E><01>|_|j$|<05>|j"j'|<14>d|j"j)<00>_|jj|j"<00>|jj-<00>|j.g|<15>d<15><01>i|<13>ddi<01><01>d|j.g|<16>d<15><01>i|<13>ddi<01><01>dg|_| d k(r\|j3d d||jdd<1A><1B>|_|j3d d|j7|<05>|jdd<1A><1B>|_n[|j3dd ||jdd<1E><1B>|_|j3dd |j7|<05>|jdd<1F><1B>|_d|_|j=|<05>ycc}}w) a<>
Parameters
----------
ax : Axes
The Axes to put the slider in.
label : str
Slider label.
valmin : float
The minimum value of the slider.
valmax : float
The maximum value of the slider.
valinit : tuple of float or None, default: None
The initial positions of the slider. If None the initial positions
will be at the 25th and 75th percentiles of the range.
valfmt : str, default: None
%-format string used to format the slider values. If None, a
`.ScalarFormatter` is used instead.
closedmin : bool, default: True
Whether the slider interval is closed on the bottom.
closedmax : bool, default: True
Whether the slider interval is closed on the top.
dragging : bool, default: True
If True the slider can be dragged by the mouse.
valstep : float, default: None
If given, the slider will snap to multiples of *valstep*.
orientation : {'horizontal', 'vertical'}, default: 'horizontal'
The orientation of the slider.
track_color : :mpltype:`color`, default: 'lightgrey'
The color of the background track. The track is accessible for
further styling via the *track* attribute.
handle_style : dict
Properties of the slider handles. Default values are
========= ===== ======= =========================================
Key Value Default Description
========= ===== ======= =========================================
facecolor color 'white' The facecolor of the slider handles.
edgecolor color '.75' The edgecolor of the slider handles.
size int 10 The size of the slider handles in points.
========= ===== ======= =========================================
Other values will be transformed as marker{foo} and passed to the
`~.Line2D` constructor. e.g. ``handle_style = {'style'='x'}`` will
result in ``markerstyle = 'x'``.
Notes
-----
Additional kwargs are passed on to ``self.poly`` which is the
`~matplotlib.patches.Polygon` that draws the slider knob. See the
`.Polygon` documentation for valid property names (``facecolor``,
``edgecolor``, ``alpha``, etc.).
Nr<4E>r<>r<>r<>r<>r<>r<>r<>r<>ri<00>r<><00>grid)<01>whichrrr<><00><00>dr'r<>Fr<46>r<>rjr<>r<>r<>r<>r<>)rsr r<>r<><00>arrayr<79>r<>r<>rrur<>r<>rI<00>get_yaxis_transform<72>get_xaxis_transformr<00>zerosr<73><00>_update_selection_poly<6C> set_transform<72>get_path<74>_interpolation_steps<70>_request_autoscale_viewr<00>_handlesrrvrr<00>_active_handler<65>)rrIrvr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<00>extentrrrr <00>poly_transform<72>
handleXY_1<EFBFBD>
handleXY_2r<EFBFBD>s <20>rr zRangeSlider.__init__bs<><00><><00>d <0E><07><18><12>[<5B>)<29>Y<EFBFBD><1F><16><16><18>7<EFBFBD> D<01><1B>F<EFBFBD>#<23><04><08> <12>?<3F><1B>f<EFBFBD>_<EFBFBD>F<EFBFBD><18>h<EFBFBD>h<EFBFBD><06><16>$<24><1D> 6<> &<26><16>$<24><1D> 6<> 8<>9<>G<EFBFBD><1B>+<2B>+<2B>G<EFBFBD>4<>G<EFBFBD><1A><04><08><1E><04> <0C>!(<28>u<EFBFBD>b<EFBFBD>I<><08>)<29>1<>r<EFBFBD>|<7C> <0C>(D<>8<EFBFBD>(D<>|<7C>(D<>(J<>(J<>(L<>
<EFBFBD> $<24><01>1<EFBFBD>f<EFBFBD>Q<EFBFBD>C<EFBFBD>L<EFBFBD>!<21>O<EFBFBD>
<EFBFBD> <0C>
<EFBFBD> <17>*<2A> $<24>"<22><18>"<22>a<EFBFBD><1C>,<2C>,<2C>%<25><0E>D<EFBFBD>J<EFBFBD>
<0F>L<EFBFBD>L<EFBFBD><14><1A><1A> $<24>!<21>W<EFBFBD>W<EFBFBD>8<>8<>v<EFBFBD>8<>F<>N<EFBFBD><1C>g<EFBFBD>a<EFBFBD>j<EFBFBD>)<29>J<EFBFBD><1C>g<EFBFBD>a<EFBFBD>j<EFBFBD>)<29>J<EFBFBD>"<22><18>!<21>R<EFBFBD><1C>,<2C>,<2C>%<25><0E>D<EFBFBD>J<EFBFBD>
<0F>L<EFBFBD>L<EFBFBD><14><1A><1A> $<24>!<21>W<EFBFBD>W<EFBFBD>8<>8<>v<EFBFBD>8<>F<>N<EFBFBD>!<21>!<21>*<2A>b<EFBFBD>)<29>J<EFBFBD>!<21>!<21>*<2A>b<EFBFBD>)<29>J<EFBFBD><1B>B<EFBFBD>H<EFBFBD>H<EFBFBD>a<EFBFBD><11>V<EFBFBD>,<2C>7<><06>7<><04> <09>#<23><04>#<23>#<23>W<EFBFBD>-<2D> <0C> <09> <09><1F><1F><0E>/<2F>47<34><04> <09> <09><1A><1A><1C>1<> <0C><07><07><19><19>$<24>)<29>)<29>$<24> <0C><07><07>'<27>'<27>)<29> <13>B<EFBFBD>G<EFBFBD>G<EFBFBD> <0E><1B> <0E><13> <0E><1F> <0E><1E>  <0E>
<10>  <11> <14>B<EFBFBD>G<EFBFBD>G<EFBFBD> <0E><1B> <0E><13> <0E><1F> <0E><1E>  <0E>
<10>  <11> 
<EFBFBD><04> <0A> <17>*<2A> $<24><1B><17><17><13><14><15><1C>,<2C>,<2C>"*<2A>$,<2C> !<21><0E>D<EFBFBD>J<EFBFBD><1E>7<EFBFBD>7<EFBFBD><13><15><14> <0C> <0C>W<EFBFBD>%<25><1C>,<2C>,<2C>"'<27>$,<2C> #<23><0E>D<EFBFBD>L<EFBFBD><1C><17><17><15><13><15><1C>,<2C>,<2C>"*<2A>$+<2B> !<21><0E>D<EFBFBD>J<EFBFBD><1E>7<EFBFBD>7<EFBFBD><14><13><14> <0C> <0C>W<EFBFBD>%<25><1C>,<2C>,<2C>"*<2A>$*<2A> #<23><0E>D<EFBFBD>L<EFBFBD>#<23><04><1B> <0C> <0C> <0C>W<EFBFBD><1D><>g
s<00>L4c<00><><00>|jj}|jdk(r"d|fx|d<|d<d|f|d<d|f|d<d|f|d<y |dfx|d<|d<|df|d<|df|d<|df|d<y )
zx
Update the vertices of the *self.poly* slider in-place
to cover the data range *vmin*, *vmax*.
r<>r<>r<00>rr<>r)<00>N)r<><00>xyr<79>)r<00>vmin<69>vmax<61>vertss rr2z"RangeSlider._update_selection_polys<><00><00><15> <09> <09> <0C> <0C><05> <0F> <1B> <1B>z<EFBFBD> )<29>"%<25>t<EFBFBD>)<29> +<2B>E<EFBFBD>!<21>H<EFBFBD>u<EFBFBD>Q<EFBFBD>x<EFBFBD><1A>D<EFBFBD>y<EFBFBD>E<EFBFBD>!<21>H<EFBFBD><1A>D<EFBFBD>y<EFBFBD>E<EFBFBD>!<21>H<EFBFBD><1A>D<EFBFBD>y<EFBFBD>E<EFBFBD>!<21>H<EFBFBD>"&<26><03>)<29> +<2B>E<EFBFBD>!<21>H<EFBFBD>u<EFBFBD>Q<EFBFBD>x<EFBFBD><1B>S<EFBFBD>y<EFBFBD>E<EFBFBD>!<21>H<EFBFBD><1B>S<EFBFBD>y<EFBFBD>E<EFBFBD>!<21>H<EFBFBD><1B>S<EFBFBD>y<EFBFBD>E<EFBFBD>!<21>Hr!c<00><><00>||jkr'|js|jdS|j}||jdkDr|jd}|j|<01>S)z;Ensure the new min value is between valmin and self.val[1].rr)r<>r<>r<>r<><00>r<00>mins r<00>_min_in_boundszRangeSlider._min_in_bounds/sZ<00><00> <0E>$<24>+<2B>+<2B> <1D><17>><3E>><3E><1B>x<EFBFBD>x<EFBFBD><01>{<7B>"<22><16>+<2B>+<2B>C<EFBFBD> <0E><14><18><18>!<21><1B> <1C><16>(<28>(<28>1<EFBFBD>+<2B>C<EFBFBD><13>"<22>"<22>3<EFBFBD>'<27>'r!c<00><><00>||jk\r'|js|jdS|j}||jdkr|jd}|j|<01>S)z;Ensure the new max value is between valmax and self.val[0].rr)r<>r<>r<>r<><00>r<00>maxs r<00>_max_in_boundszRangeSlider._max_in_bounds:sZ<00><00> <0E>$<24>+<2B>+<2B> <1D><17>><3E>><3E><1B>x<EFBFBD>x<EFBFBD><01>{<7B>"<22><16>+<2B>+<2B>C<EFBFBD> <0E>$<24>(<28>(<28>1<EFBFBD>+<2B> <1D><16>(<28>(<28>1<EFBFBD>+<2B>C<EFBFBD><13>"<22>"<22>3<EFBFBD>'<27>'r!c<00>R<00>|j|d<00>|j|d<00>fS)z#Clip min, max values to the bounds.rr)rGrK)r<00>valss rr<>zRangeSlider._value_in_boundsEs+<00><00><14>#<23>#<23>D<EFBFBD><11>G<EFBFBD>,<2C>d<EFBFBD>.A<>.A<>$<24>q<EFBFBD>'<27>.J<>K<>Kr!c<00><><00>tjtj|j|z
<00><00>}|dk(r#|j |<01>}|j |<03>n"|j |<01>}|j|<03>|jrI|jdk(r|jj|g<01>y|jj|g<01>yy)z2Update the slider value based on a given position.rr<>N) r<>r<>r<>r<>rG<00>set_minrK<00>set_maxr8r<>rr)r<00>pos<6F>idxr<78>s r<00>_update_val_from_posz RangeSlider._update_val_from_posIs<><00><00><10>i<EFBFBD>i<EFBFBD><02><06><06>t<EFBFBD>x<EFBFBD>x<EFBFBD>#<23>~<7E>.<2E>/<2F><03> <0E>!<21>8<EFBFBD><16>%<25>%<25>c<EFBFBD>*<2A>C<EFBFBD> <10>L<EFBFBD>L<EFBFBD><13> <1D><16>%<25>%<25>c<EFBFBD>*<2A>C<EFBFBD> <10>L<EFBFBD>L<EFBFBD><13> <1D> <0F> <1E> <1E><13><1F><1F>:<3A>-<2D><14>#<23>#<23>-<2D>-<2D>s<EFBFBD>e<EFBFBD>4<><14>#<23>#<23>-<2D>-<2D>s<EFBFBD>e<EFBFBD>4<> r!c <00><><00>|j|<01>s|jdk7ry|jdk(rJ|jj |<01>dr,d|_|j j|j<00>|j
sy|jdk(s-|jdk(rR|jj |<01>ds4d|_|j j|j<00>d|_ y|j|<01>\}}tjtj|jdk(r.|jD<00>cgc]}|j!<00>d|z
<00><02>c}n-|jD<00>cgc]}|j#<00>d|z
<00><02>c}<04><00>}|j|}||jur||_ |j%|jdk(r|<02>y|<03>ycc}wcc}wr)rBrr<>rIr<>r<>rOr<>r<>r8rdr<>r<>r<>r<>r7<00> get_xdata<74> get_ydatarS)rrAr]r^<00>h<> handle_index<65>handles rr<>zRangeSlider._updateXs<><00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D><15><1C><1C><11>!2<> <12> <10>:<3A>:<3A>-<2D> -<2D>$<24>'<27>'<27>2B<32>2B<32>5<EFBFBD>2I<32>!<21>2L<32>#<23>D<EFBFBD> <1C> <11>L<EFBFBD>L<EFBFBD> #<23> #<23>D<EFBFBD>G<EFBFBD>G<EFBFBD> ,<2C><13><1F><1F> <12> <11>J<EFBFBD>J<EFBFBD>0<> 0<><16><1A><1A>3<>3<>D<EFBFBD>G<EFBFBD>G<EFBFBD><L<><L<>U<EFBFBD><S<>TU<54><V<>$<24>D<EFBFBD> <1C> <11>L<EFBFBD>L<EFBFBD> &<26> &<26>t<EFBFBD>w<EFBFBD>w<EFBFBD> /<2F>"&<26>D<EFBFBD> <1F> <12><1C>,<2C>,<2C>U<EFBFBD>3<> <0C><05>u<EFBFBD><19>y<EFBFBD>y<EFBFBD><12><16><16><13><1F><1F><<3C>/<2F>04<30>}<7D>}<7D> =<3D>!<21>Q<EFBFBD>[<5B>[<5B>]<5D>1<EFBFBD> <1D><05> %<25> =<3D>/3<>}<7D>}<7D> =<3D>!<21>Q<EFBFBD>[<5B>[<5B>]<5D>1<EFBFBD> <1D><05> %<25> =<3D>"?<3F>@<01> <0C><16><1D><1D>|<7C>,<2C><06> <12><14>,<2C>,<2C> ,<2C>"(<28>D<EFBFBD> <1F> <0C>!<21>!<21>4<EFBFBD>+;<3B>+;<3B>|<7C>+K<>%<25>W<>QV<51>W<><57> ><3E><> =s <00>G) <0C>5G. c<00>d<00>|j<00>)d|j|dz<00>d|j|dz<00>d<05>S|jj|jg|<01>|j<00><01>\}}}}||jj <00>z }||jj <00>z }d|<03>d|<04>d<05>S)r<00>(rz, r<00>)r)rr<>r<00>s1<73>s2s rrzRangeSlider._formatzs<><00><00> <0F>;<3B>;<3B> "<22><16>t<EFBFBD>{<7B>{<7B>S<EFBFBD><11>V<EFBFBD>+<2B>,<2C>B<EFBFBD>t<EFBFBD>{<7B>{<7B>S<EFBFBD><11>V<EFBFBD>/C<>.D<>A<EFBFBD>F<> F<><1F>9<EFBFBD>9<EFBFBD>1<>1<><15><1B><1B>0<>s<EFBFBD>0<>D<EFBFBD>K<EFBFBD>K<EFBFBD>0<><0E>L<EFBFBD>A<EFBFBD>r<EFBFBD>2<EFBFBD>q<EFBFBD> <0F>$<24>)<29>)<29>&<26>&<26>(<28> (<28>B<EFBFBD> <0E>$<24>)<29>)<29>&<26>&<26>(<28> (<28>B<EFBFBD><16>r<EFBFBD>d<EFBFBD>"<22>R<EFBFBD>D<EFBFBD><01>?<3F> "r!c<00>D<00>|j||jdf<02>y)zx
Set the lower value of the slider to *min*.
Parameters
----------
min : float
rN<>r<>r<>rEs rrOzRangeSlider.set_min<69>s<00><00> <0A> <0C> <0C>c<EFBFBD>4<EFBFBD>8<EFBFBD>8<EFBFBD>A<EFBFBD>;<3B>'<27>(r!c<00>D<00>|j|jd|f<02>y)zx
Set the lower value of the slider to *max*.
Parameters
----------
max : float
rNr`rIs rrPzRangeSlider.set_max<61>s<00><00> <0A> <0C> <0C>d<EFBFBD>h<EFBFBD>h<EFBFBD>q<EFBFBD>k<EFBFBD>3<EFBFBD>'<27>(r!c<00>:<00>tj|<01>}tjd|<01><02>|j|j
f|_|j|<01>\}}|j||<03>|jdk(r?|jdj|g<01>|jdj|g<01>n>|jdj|g<01>|jdj|g<01>|jj|j||f<02><00>|j r4|j"j%d<06><07>j&j)<00>||f|_|j*r|j,j/d||f<02>y y )
z~
Set slider value to *val*.
Parameters
----------
val : tuple or array-like of float
)r))r<>r<>rrTrLr<>N)r<><00>sortr<00> check_shaper<65>r<>r<>r<>r2r<>r7rrrrrrCrIrNrOrrDrzr<>)rr<>rArBs rr<>zRangeSlider.set_val<61>sD<00><00><11>g<EFBFBD>g<EFBFBD>c<EFBFBD>l<EFBFBD><03> <0C><18><18><14>3<EFBFBD>'<27><18>K<EFBFBD>K<EFBFBD><14><1B><1B>-<2D><04><08><19>*<2A>*<2A>3<EFBFBD>/<2F>
<EFBFBD><04>d<EFBFBD> <0C>#<23>#<23>D<EFBFBD>$<24>/<2F> <0F> <1B> <1B>z<EFBFBD> )<29> <10>M<EFBFBD>M<EFBFBD>!<21> <1C> &<26> &<26><04>v<EFBFBD> .<2E> <10>M<EFBFBD>M<EFBFBD>!<21> <1C> &<26> &<26><04>v<EFBFBD> .<2E> <10>M<EFBFBD>M<EFBFBD>!<21> <1C> &<26> &<26><04>v<EFBFBD> .<2E> <10>M<EFBFBD>M<EFBFBD>!<21> <1C> &<26> &<26><04>v<EFBFBD> .<2E> <0C> <0C> <0C><1D><1D>d<EFBFBD>l<EFBFBD>l<EFBFBD>D<EFBFBD>$<24><<3C>8<>9<> <0F>;<3B>;<3B> <10>G<EFBFBD>G<EFBFBD> <1E> <1E>D<EFBFBD> <1E> )<29> 0<> 0<> :<3A> :<3A> <<3C><18>$<24><<3C><04><08> <0F>=<3D>=<3D> <10>O<EFBFBD>O<EFBFBD> #<23> #<23>I<EFBFBD><04>d<EFBFBD>|<7C> <<3C> r!c<00>B<00><01>|jjd<01>fd<02><08>S)a<>
Connect *func* as callback function to changes of the slider value.
Parameters
----------
func : callable
Function to call when slider is changed. The function
must accept a 2-tuple of floats as its argument.
Returns
-------
int
Connection id (which can be used to disconnect *func*).
r<>c<00><00><01><00>|<00>Srr4r"s <20>rrPz(RangeSlider.on_changed.<locals>.<lambda><3E>r#r!r<>r<>s `rr$zRangeSlider.on_changed<65>r%r!)r0r1r2r3r r2rGrKr<>rSr<>rrOrPr<>r$r<>r<>s@rr'r'Ssg<00><><00> <08>*<15><13><16><16><15><14> <20><1F><19>v<1E>p!<21>* (<28> (<28>L<01> 5<> X<01>D #<23>)<29>)<29>=<3D>:Ir!r'c<00><><00>tj|tj<00>}|rt di|<00><01><01>St j i<00>S<00>Nr4)r <00>normalize_kwargs<67>mtext<78>Textr<00> itertools<6C>repeat<61><01>propss r<00>_expand_text_propsrp<00>s;<00><00> <11> "<22> "<22>5<EFBFBD>%<25>*<2A>*<2A> 5<>E<EFBFBD> %<25>?<3F>6<EFBFBD>?<3F>E<EFBFBD>?<3F> <1C>?<3F>9<EFBFBD>+;<3B>+;<3B>B<EFBFBD>+?<3F>?r!c<00>z<00><00>eZdZdZdddddd<04><04>fd<05> Zd<06>Zd<07>Zd<08>Zd <09>Zd
<EFBFBD>Z dd <0B>Z
d <0C>Z d <0A>Z d<0E>Z d<0F>Zd<10>Zd<11>Z<10>xZS)<13> CheckButtonsa<73>
A GUI neutral set of check buttons.
For the check buttons to remain responsive you must keep a
reference to this object.
Connect to the CheckButtons with the `~._Buttons.on_clicked` method.
Attributes
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
labels : list of `~matplotlib.text.Text`
The text label objects of the check buttons.
NT)rg<00> label_props<70> frame_props<70> check_propsc <00><00><01>t<00>|<00>|<01>tjtdf|||<07><02>|j g<00>|j g<00>|jd<03>|<03>dgt|<02>z}|xr|jj|_ d|_ tjddt|<02>dz<00>dd}t|<05>}t!|||<05>D<00> <09>
<EFBFBD> cgc])\} }
} |j"d| |
f|j$d d
d <0B>| <0B><01><01><02>+c} }
} |_tj(|j&D<00> cgc]} | j+<00><00><02>c} <0C>dz } | dzdd <0C>t-j.|t0j2<00><00>d |j$d<0E><02>}|j5d|j7dd<11><00>|j5d|j9dd<13><00>|j:dgt|<08>z|fi|<06><01>|_d| dzd<15>t-j.|t0j2<00><00>d|j$|jd<17><03>}|j5d|j9dd<13><00>|j:dgt|<08>z|fi|<07><01>|_|jA|<03>|jCd|jD<00>|jr|jCd|jF<00>t-jHdg<01><1B>|_%ycc} }
} wcc} w)a'
Add check buttons to `~.axes.Axes` instance *ax*.
Parameters
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
labels : list of str
The labels of the check buttons.
actives : list of bool, optional
The initial check states of the buttons. The list must have the
same length as *labels*. If not given, all buttons are unchecked.
useblit : bool, default: True
Use blitting for faster drawing if supported by the backend.
See the tutorial :ref:`blitting` for details.
.. versionadded:: 3.7
label_props : dict of lists, optional
Dictionary of `.Text` properties to be used for the labels. Each
dictionary value should be a list of at least a single element. If
the list is of length M, its values are cycled such that the Nth
label gets the (N mod M) property.
.. versionadded:: 3.7
frame_props : dict, optional
Dictionary of scatter `.Collection` properties to be used for the
check button frame. Defaults (label font size / 2)**2 size, black
edgecolor, no facecolor, and 1.0 linewidth.
.. versionadded:: 3.7
check_props : dict, optional
Dictionary of scatter `.Collection` properties to be used for the
check button check. Defaults to (label font size / 2)**2 size,
black color, and 1.0 linewidth.
.. versionadded:: 3.7
N)rsrtruFrrr)<00><><EFBFBD><EFBFBD><EFBFBD>r<EFBFBD>r<>rj<00>rarlrk)r<00> linewidthr)r<>rar<>r<><00>noner<65><00>black<63>333333<33>?)ryrrb<00>r<>ra<00>animatedrp<00>
draw_eventrmrn)&rsr r<00>check_isinstance<63>dictr<74>r<>r~<00>lenrOrwrx<00> _backgroundr<64><00>linspacerp<00>ziprru<00>labelsr.<00> get_fontsizer rir <00>PathCollection<6F>
setdefault<EFBFBD>get<65>pop<6F>scatter<65>_frames<65>_checks<6B> _init_statusrV<00>_clicked<65>_clearryrz)rrIr<><00>activesrgrsrtru<00>ysrcrvror<00> text_sizer<65>s <20>rr zCheckButtons.__init__<5F>s<><00><><00>P <0E><07><18><12><1C> <0C><1D><1D>t<EFBFBD>T<EFBFBD>l<EFBFBD> <0B>*5<>;<3B> P<01> <0B> <0A> <0A>b<EFBFBD><19>
<EFBFBD> <0A> <0A>b<EFBFBD><19>
<EFBFBD><0F><0F><05><1E> <12>?<3F><1C>g<EFBFBD><03>F<EFBFBD> <0B>+<2B>G<EFBFBD><1F>=<3D>D<EFBFBD>K<EFBFBD>K<EFBFBD>$=<3D>$=<3D><04> <0A><1F><04><18> <0F>[<5B>[<5B><11>A<EFBFBD>s<EFBFBD>6<EFBFBD>{<7B>1<EFBFBD>}<7D> -<2D>a<EFBFBD><02> 3<><02>(<28><1B>5<> <0B>
$'<27>r<EFBFBD>6<EFBFBD>;<3B>#?<3F> A<01>A<01> <20><01>5<EFBFBD>%<25> <14>B<EFBFBD>G<EFBFBD>G<EFBFBD>D<EFBFBD>!<21>U<EFBFBD> <1D>b<EFBFBD>l<EFBFBD>l<EFBFBD>(.<2E>(<28> <1D><1B> <1D>A<01><04> <0B>
<17>H<EFBFBD>H<EFBFBD>d<EFBFBD>k<EFBFBD>k<EFBFBD>J<>d<EFBFBD>d<EFBFBD>/<2F>/<2F>1<>J<>K<>a<EFBFBD>O<> <09><1B>A<EFBFBD><1C><1A>
<EFBFBD><14>$<24>$<24>[<5B>+<2B>2L<32>2L<32>M<>
<EFBFBD><1A><1B><1C><1C> 
<EFBFBD> <0B> <14><1E><1E>{<7B>K<EFBFBD>O<EFBFBD>O<EFBFBD>G<EFBFBD>V<EFBFBD>,L<>M<><13><1E><1E>{<7B>K<EFBFBD>O<EFBFBD>O<EFBFBD>G<EFBFBD>W<EFBFBD>,M<>N<>!<21>r<EFBFBD>z<EFBFBD>z<EFBFBD>4<EFBFBD>&<26>3<EFBFBD>r<EFBFBD>7<EFBFBD>"2<>B<EFBFBD>F<>+<2B>F<><04> <0C><1A><1A>A<EFBFBD><1C>
<EFBFBD><14>$<24>$<24>[<5B>+<2B>2L<32>2L<32>M<>
<EFBFBD><1A><1B><1C><1C><1C> <0A> <0A> 
<EFBFBD> <0B> <14><1E><1E>{<7B>K<EFBFBD>O<EFBFBD>O<EFBFBD>G<EFBFBD>W<EFBFBD>,M<>N<>!<21>r<EFBFBD>z<EFBFBD>z<EFBFBD>4<EFBFBD>&<26>3<EFBFBD>r<EFBFBD>7<EFBFBD>"2<>B<EFBFBD>F<>+<2B>F<><04> <0C> <0A><19><19>'<27>"<22> <0C><1A><1A>/<2F><14><1D><1D>?<3F> <0F>=<3D>=<3D> <10> <1E> <1E>|<7C>T<EFBFBD>[<5B>[<5B> 9<><1F>0<>0<>)<29><1B>E<><04><0F><>IA<01><>
Ks <00>.K7<08>1K>c<00><00>|j|<01>s|jj<00>ry|jj|jj
<00>|_|jj|j<00>y<01>z,Internal event handler to clear the buttons.N) rBrO<00> is_saving<6E>copy_from_bboxrIr<>r<>r<>r<>r@s rr<>zCheckButtons._clearAsU<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D><14><1B><1B>!6<>!6<>!8<> <12><1F>;<3B>;<3B>5<>5<>d<EFBFBD>g<EFBFBD>g<EFBFBD>l<EFBFBD>l<EFBFBD>C<><04><18> <0C><07><07><1B><1B>D<EFBFBD>L<EFBFBD>L<EFBFBD>)r!c<00>v<00>|j|<01>s-|jdk7s|jj|<01>dsyg|jj|<01>dd<00>t |j <00>D<00><02>cgc]\}}|j|<01>ds<01>|<02><02>c}}<02>}|r<>|jj<00>j|jj<00><00>}|j||j|jf||z
dzjd<05>j<00><00>yycc}}w<00>Nrr<00>indr)rw)rBrrIr<>r<><00> enumerater<65><00>get_offset_transformra<00> get_offsetsr;rbrc<00>sumr<6D><00>rrA<00>ir<00>idxs<78>coordss rr<>zCheckButtons._clickedHs<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D><15><1C><1C><11>!2<>$<24>'<27>'<27>:J<>:J<>5<EFBFBD>:Q<>RS<52>:T<> <12>S<01> <11>\<5C>\<5C> "<22> "<22>5<EFBFBD> )<29>!<21> ,<2C>U<EFBFBD> 3<>S<01>(<28><14><1B><1B>5<> Q<>G<EFBFBD>A<EFBFBD>t<EFBFBD><14><1D><1D>u<EFBFBD>9M<39>a<EFBFBD>9P<39>a<EFBFBD> Q<>S<01><04> <10><19>\<5C>\<5C>6<>6<>8<>B<>B<><14> <0C> <0C>(<28>(<28>*<2A>,<2C>F<EFBFBD> <10>O<EFBFBD>O<EFBFBD><14><05><07><07><15><17><17>)<29>F<EFBFBD>4<EFBFBD>L<EFBFBD>8<>Q<EFBFBD>><3E>C<>C<>B<EFBFBD>G<>N<>N<>P<>Q<> S<01> <10><>R<01> <00>:D5<08>D5c<00><><00>tjt|<01><01>t|<01>}t |j
|<01>D]\}}|j |<03><00>y)a$
Set properties of the `.Text` labels.
.. versionadded:: 3.7
Parameters
----------
props : dict
Dictionary of `.Text` properties to be used for the labels. Same
format as label_props argument of :class:`CheckButtons`.
rnN<>rr<>r<>rpr<>r<><00>update<74>rror<00>props r<00>set_label_propszCheckButtons.set_label_propsT<00>H<00><00> <0A><1D><1D>d<EFBFBD>%<25>0<>"<22>5<EFBFBD>)<29><05><1D>d<EFBFBD>k<EFBFBD>k<EFBFBD>5<EFBFBD>1<> <1E>J<EFBFBD>D<EFBFBD>$<24> <10>K<EFBFBD>K<EFBFBD><04> <1D> r!c<00><><00>tjt|<01><01>d|vr;tj|j d<02>t |j<00><00>|d<|jj|<01>y)z<>
Set properties of the check button frames.
.. versionadded:: 3.7
Parameters
----------
props : dict
Dictionary of `.Collection` properties to be used for the check
button frames.
rnr<00>sizesN)
rr<>r<>r<><00> broadcast_tor<6F>r<>r<>r<>r<><00>rros r<00>set_frame_propszCheckButtons.set_frame_propsesR<00><00> <0A><1D><1D>d<EFBFBD>%<25>0<> <0E>%<25><<3C><1F>_<EFBFBD>_<EFBFBD>U<EFBFBD>Y<EFBFBD>Y<EFBFBD>s<EFBFBD>^<5E>S<EFBFBD><14><1B><1B>=M<>N<>E<EFBFBD>'<27>N<EFBFBD> <0C> <0C> <0C><1B><1B>E<EFBFBD>"r!c<00>0<00>tjt|<01><01>d|vr;tj|j d<02>t |j<00><00>|d<|j<00>}|jj|<01>|j|<02>y)z<>
Set properties of the check button checks.
.. versionadded:: 3.7
Parameters
----------
props : dict
Dictionary of `.Collection` properties to be used for the check
button check.
rnrr<>N) rr<>r<>r<>r<>r<>r<>r<><00>
get_statusr<EFBFBD>r<>r<>)rror<>s r<00>set_check_propszCheckButtons.set_check_propsvsl<00><00> <0A><1D><1D>d<EFBFBD>%<25>0<> <0E>%<25><<3C><1F>_<EFBFBD>_<EFBFBD>U<EFBFBD>Y<EFBFBD>Y<EFBFBD>s<EFBFBD>^<5E>S<EFBFBD><14><1B><1B>=M<>N<>E<EFBFBD>'<27>N<EFBFBD><16>/<2F>/<2F>#<23><07> <0C> <0C> <0C><1B><1B>E<EFBFBD>"<22> <0C><19><19>'<27>"r!c<00><><00>|tt|j<00><00>vrtd|<01><00><02><00>t j
t df|<02><03>tjd<04>}|jj<00>}|<02>tj|||<03>}|r|j|n|||<|jj|<04>|jr<>|jr<>|j <00>%|j"j%|j <00>|j&j)|j<00>|j"j+|j&j,<00>n|j"j/<00>|j0r8|j2j5d|j|j7<00><00>yy)a
Modify the state of a check button by index.
Callbacks will be triggered if :attr:`eventson` is True.
Parameters
----------
index : int
Index of the check button to toggle.
state : bool, optional
If a boolean value, set the state explicitly. If no value is
provided, the state is toggled.
Raises
------
ValueError
If *index* is invalid.
TypeError
If *state* is not boolean.
zInvalid CheckButton index: N<><01>staterzrm)<1C>ranger<65>r<>r%rr<><00>boolr <00>to_rgbar<61>r<>r<><00>_active_check_colorsrrCrxr<>rO<00>restore_regionrIr<>r<>r<>r<>rDrzr<><00>get_text)r<00>indexr<78><00> invisible<6C>
facecolorss rr;zCheckButtons.set_active<76>sL<00><00>, <11><05>c<EFBFBD>$<24>+<2B>+<2B>.<2E>/<2F> /<2F><1C>:<3A>5<EFBFBD>'<27>B<>C<> C<> <0C><1D><1D>t<EFBFBD>T<EFBFBD>l<EFBFBD>%<25>8<><1A>N<EFBFBD>N<EFBFBD>6<EFBFBD>*<2A> <09><19>\<5C>\<5C>/<2F>/<2F>1<>
<EFBFBD> <10>=<3D><1A>%<25>%<25>j<EFBFBD><15>&7<><19>C<>E<EFBFBD>@E<>D<EFBFBD>5<>5<>e<EFBFBD><<3C>9<EFBFBD>
<EFBFBD>5<EFBFBD><19> <0C> <0C> <0C>"<22>"<22>:<3A>.<2E> <0F>;<3B>;<3B><13>}<7D>}<7D><17>#<23>#<23>/<2F><18>K<EFBFBD>K<EFBFBD>.<2E>.<2E>t<EFBFBD>/?<3F>/?<3F>@<40><14><07><07>#<23>#<23>D<EFBFBD>L<EFBFBD>L<EFBFBD>1<><14> <0B> <0B> <20> <20><14><17><17><1C><1C>.<2E><14> <0B> <0B> <20> <20>"<22> <0F>=<3D>=<3D> <10>O<EFBFBD>O<EFBFBD> #<23> #<23>I<EFBFBD>t<EFBFBD>{<7B>{<7B>5<EFBFBD>/A<>/J<>/J<>/L<> M<> r!c<00>j<00>|jj<00>|_t|j<00>dk(r0t j
|jt|<01>d<02><03>|_|jj t|j|<01>D<00><02>cgc] \}}|r|nd<04><02> c}}<02>ycc}}w)a
Initialize properties to match active status.
The user may have passed custom colours in *check_props* to the
constructor, or to `.set_check_props`, so we need to modify the
visibility after getting whatever the user set.
rr<00>r<>rzN)r<>r<>r<>r<>r<>rmrr<>)rr<><00>ecr:s rr<>zCheckButtons._init_status<75>s<><00><00>%)<29>L<EFBFBD>L<EFBFBD>$><3E>$><3E>$@<40><04>!<21> <0E>t<EFBFBD>(<28>(<28> )<29>Q<EFBFBD> .<2E>(*<2A> <09> <09>$<24>2K<32>2K<32>25<32>g<EFBFBD>,<2C>Q<EFBFBD>)H<01>D<EFBFBD> %<25> <0C> <0C> <0C>"<22>"<22>"<22>4<EFBFBD>#<<3C>#<<3C>g<EFBFBD>F<> H<01><1B><12>V<EFBFBD><1A>R<EFBFBD>v<EFBFBD> %<25> H<01> I<01><> Hs<00>B/
c<00><><00>|jjdgt|j<00>z<00>t |d<02>r6|j
D]'\}}|j d<03>|j d<03><00>)|jr|jj<00>|jr|jjdd<05>yy)zUncheck all checkboxes.rz<00>_linesFrmN) r<>rr<>r<>r<>r<><00> set_visiblerCrOr<>rDrzr<>)r<00>l1<6C>l2s r<00>clearzCheckButtons.clear<61>s<><00><00> <0A> <0C> <0C>"<22>"<22>F<EFBFBD>8<EFBFBD>c<EFBFBD>$<24>2K<32>2K<32>.L<>#L<>M<> <12>4<EFBFBD><18> "<22><1E>+<2B>+<2B> &<26><06><02>B<EFBFBD><12><0E><0E>u<EFBFBD>%<25><12><0E><0E>u<EFBFBD>%<25> &<26> <10>;<3B>;<3B> <10>K<EFBFBD>K<EFBFBD> <1C> <1C> <1E> <0F>=<3D>=<3D> <10>O<EFBFBD>O<EFBFBD> #<23> #<23>I<EFBFBD>t<EFBFBD> 4<> r!c <00><><00>|jj<00>D<00>cgc],}tj|tjd<01><00> <00><02>.c}Scc}w)zW
Return a list of the status (True/False) of all of the check buttons.
rz)r<><00>get_facecolorsr r<>r<>)rr<>s rr<>zCheckButtons.get_status<75>sJ<00><00>
"<22>\<5C>\<5C>8<>8<>:<3A><<3C><19><1B>%<25>%<25>e<EFBFBD>V<EFBFBD>^<5E>^<5E>F<EFBFBD>-C<>D<>D<><<3C> <<3C><><s<00>1Ac<00><><00>t|j|j<00><00>D<00><01>cgc]\}}|r|j<00><00><02>c}}Scc}}w)z2Return a list of labels currently checked by user.)r<>r<>r<>r<>)r<00>l<> box_checkeds r<00>get_checked_labelszCheckButtons.get_checked_labels<6C>sB<00><00><14>D<EFBFBD>K<EFBFBD>K<EFBFBD><14><1F><1F>!2<>3<> <20><1E><11>K<EFBFBD><1E><12>
<EFBFBD>
<EFBFBD> <0C> <20> <20><> s<00>Ac<00>B<00><01>|jjd<01>fd<02><08>S)<03> 
Connect the callback function *func* to button click events.
Parameters
----------
func : callable
When the button is clicked, call *func* with button label.
When all buttons are cleared, call *func* with None.
The callback func must have the signature::
def func(label: str | None) -> Any
Return values may exist, but are ignored.
Returns
-------
A connection id, which can be used to disconnect the callback.
rmc<00><00><01><00>|<00>Srr4<00>rr<>s <20>rrPz)CheckButtons.on_clicked.<locals>.<lambda><3E>s <00><><00>t<EFBFBD>D<EFBFBD>z<EFBFBD>r!r<>r<>s `rr<>zCheckButtons.on_clicked<65>s<00><><00>&<14><EFBFBD><EFBFBD>&<26>&<26>y<EFBFBD>2I<32>J<>Jr!c<00>:<00>|jj|<01>y<01>z-Remove the observer with connection id *cid*.Nr<4E>r<>s rr<>zCheckButtons.disconnect<63>r<>r!r)r0r1r2r3r r<>r<>r<>r<>r<>r;r<>r<>r<>r<>r<>r<>r<>r<>s@rrrrr<00>sa<00><><00><08> ^F<01>D<EFBFBD>!<21>t<EFBFBD><14>^F<01>@*<2A>
S<01><1E>"#<23>"#<23>(,N<01>\I<01> 5<>"<<3C> <20>K<01>*(r!rrc<00><><00><00>eZdZdZdddddd<06><04>fd<07> Zed<08><00>Zd <09>Zd
<EFBFBD>Zd <0B>Z d <0C>Z
d <0A>Z d<0E>Z d<0F>Z d<10>Zd<11>Zd<12>Zd<13>Zd<14>Z<12>xZS)<16>TextBoxaP
A GUI neutral text input box.
For the text box to remain responsive you must keep a reference to it.
Call `.on_text_change` to be updated whenever the text changes.
Call `.on_submit` to be updated whenever the user hits enter or
leaves the text entry field.
Attributes
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
label : `~matplotlib.text.Text`
color : :mpltype:`color`
The color of the text box when not hovering.
hovercolor : :mpltype:`color`
The color of the text box when hovering.
z.95<EFBFBD>1g{<14>G<EFBFBD>z<EFBFBD>?r<>)r<>r<><00> label_pad<61> textalignmentc
<00>f<00><01>t<00>|<00>|<01>tjdddd<04>|<07><05>|_|j | d||j dd<07><08>|_|jj |jd||jj d|d <09>
<EFBFBD>|_ tjd d g<02> <0A>|_ |jddd |gg<00><0F>d|_|jdddd ddt j"j%<00><00><13>|_|j)d|j*<00>|j)d|j,<00>|j)d|j.<00>|j)d|j0<00>|j)d|j2<00>||_||_d |_y)a<>
Parameters
----------
ax : `~matplotlib.axes.Axes`
The `~.axes.Axes` instance the button will be placed into.
label : str
Label for this text box.
initial : str
Initial value in the text box.
color : :mpltype:`color`
The color of the box.
hovercolor : :mpltype:`color`
The color of the box when the mouse is over it.
label_pad : float
The distance between the label and the right side of the textbox.
textalignment : {'left', 'center', 'right'}
The horizontal location of the text.
<><E79A99><EFBFBD><EFBFBD><EFBFBD>?rigffffff<66>?)r<>rjr<>)r<>rjr<>r<>F)rarkrl<00>
parse_math<EFBFBD>change<67>submitrn<00>rr)<06>xlim<69>ylim<69>navigater<65><00>xticks<6B>yticksrrr)<04>visibler<65>r<>rarprqrr<00>key_press_event<6E> resize_eventN)rsr r<00> check_getitem<65>_text_positionrrurvrI<00> text_dispr ryrz<00>set<65> cursor_index<65>vlines<65>mplr<00>IdentityTransform<72>cursorrVr{r|r}<00> _keypress<73>_resizer<65>r<><00>capturekeystrokes) rrIrv<00>initialr<6C>r<>r<>r<>r<>s <20>rr zTextBox.__init__s<><00><><00>* <0E><07><18><12><1C>"<22>0<>0<><19>S<EFBFBD>4<EFBFBD> 8<>'<27>)<29><04><1B><18>W<EFBFBD>W<EFBFBD> <16>J<EFBFBD><03>U<EFBFBD>b<EFBFBD>l<EFBFBD>l<EFBFBD>&<26>G<EFBFBD><1D>E<01><04>
<EFBFBD>
<1E><17><17><1C><1C> <10> <1F> <1F><13>g<EFBFBD><14><17><17>9J<39>9J<39>&<26>M<EFBFBD><1C>&<26><1E><04><0E>
 <20>0<>0<>(<28>H<EFBFBD>9M<39>N<><04><0F>
<EFBFBD><06><06><17>f<EFBFBD><1A>e<EFBFBD><15>b<EFBFBD> <0F> "<22>
<1E><04><19><18>i<EFBFBD>i<EFBFBD><01>1<EFBFBD>a<EFBFBD><15>c<EFBFBD>a<EFBFBD>*-<2D>.<2E>.<2E>*J<>*J<>*L<> <20>N<01><04> <0B> <0A><1A><1A>/<2F><14><1B><1B>=<3D> <0C><1A><1A>1<>4<EFBFBD>=<3D>=<3D>A<> <0C><1A><1A>0<>$<24>,<2C>,<2C>?<3F> <0C><1A><1A>,<2C>d<EFBFBD>n<EFBFBD>n<EFBFBD>=<3D> <0C><1A><1A>><3E>4<EFBFBD><<3C><<3C>8<><1A><04>
<EFBFBD>$<24><04><0F>!&<26><04>r!c<00>6<00>|jj<00>Sr)r<>r<>rs rrz TextBox.textTs<00><00><13>~<7E>~<7E>&<26>&<26>(<28>(r!c<00><><00>|jjd<01><02>}|j<00><00>|jj <00>|j
j <00>}|d|j}|j
j<00>}|j
j|xsd<03>|j
j<00>}|j|jk(rE|xj|jdz zc_
|xj|jdz z c_ n2|s|j|_n|j|jz|_|j j#|j|jf|j|jfggd<01><05>|j
j|<02>|jj <00>y)NTrL<00>,r))<02>segmentsr<73>)rIrN<00> _get_rendererrOr<>r<>r<>r<><00>get_window_extentr<00>y0<79>y1<79>height<68>x0<78>x1<78>widthr<68>r<>)r<00>figr<00> widthtext<78>bb_text<78> bb_widthtexts r<00> _rendercursorzTextBox._rendercursorXs]<00><00><13>g<EFBFBD>g<EFBFBD> <20> <20>d<EFBFBD> <20>+<2B><03> <0E> <1C> <1C> <1E> &<26> <0F>J<EFBFBD>J<EFBFBD>O<EFBFBD>O<EFBFBD> <1D><13>~<7E>~<7E>&<26>&<26>(<28><04><18>+<2B>$<24>+<2B>+<2B>,<2C> <09><16>.<2E>.<2E>2<>2<>4<><07> <0C><0E><0E><1F><1F> <09> 0<>S<EFBFBD>1<><1B>~<7E>~<7E>7<>7<>9<> <0C> <12>:<3A>:<3A><17><1A><1A> #<23> <13>J<EFBFBD>J<EFBFBD>,<2C>-<2D>-<2D><01>1<> 1<>J<EFBFBD> <13>J<EFBFBD>J<EFBFBD>,<2C>-<2D>-<2D><01>1<> 1<>J<EFBFBD><1A> <20><1A><1A>G<EFBFBD>J<EFBFBD> <20><1A><1A>l<EFBFBD>&8<>&8<>8<>G<EFBFBD>J<EFBFBD> <0C> <0B> <0B><0F><0F><1F>
<EFBFBD>
<EFBFBD>G<EFBFBD>J<EFBFBD>J<EFBFBD>/<2F>'<27>*<2A>*<2A>g<EFBFBD>j<EFBFBD>j<EFBFBD>1I<31>J<>K<><18> <18> <1A> <0A><0E><0E><1F><1F><04>%<25> <0B>
<EFBFBD>
<EFBFBD><0F><0F>r!c<00><><00>|j|<01>ry|jj|jk7ry|jj |j<00>yr)rBrOr<>rIr<>r@s rr|zTextBox._release{s@<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12> <10><<3C><<3C> %<25> %<25><14><17><17> 0<> <12> <0A> <0C> <0C>"<22>"<22>4<EFBFBD>7<EFBFBD>7<EFBFBD>+r!c<00>><00>|j|<01>ry|j<00>r<>|j}|j}t |<02>dk(r9|d|j
|z||j
dz}|xj
dz c_<00>n|dk(r.|j
t |<03>k7r<>|xj
dz c_n<>|dk(r%|j
dk7r<>|xj
dzc_n<>|dk(rd|_n<>|dk(rt |<03>|_n<>|dk(rG|j
dk7r<>|d|j
dz
||j
dz}|xj
dzc_nI|dk(rD|j
t |j<00>k7r"|d|j
||j
dzdz}|j j|<03>|j<00>|jrR|jjd |j<00>|d
vr'|jjd |j<00>yyyy) Nrr<>r<>r<00>home<6D>end<6E> backspace<63>deleter<65>)<02>enter<65>returnr<6E>) rBr<><00>keyrr<>r<>r<>rrrDrzr<>)rrArrs rr<>zTextBox._keypress<73>s<><00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12> <0F> !<21> !<21><17>)<29>)<29>C<EFBFBD><17>9<EFBFBD>9<EFBFBD>D<EFBFBD><12>3<EFBFBD>x<EFBFBD>1<EFBFBD>}<7D><1C>/<2F>d<EFBFBD>/<2F>/<2F>0<>3<EFBFBD>6<><1C>T<EFBFBD>.<2E>.<2E>/<2F>0<>1<><04><14>!<21>!<21>Q<EFBFBD>&<26>!<21><14><07><1E><17>$<24>$<24><03>D<EFBFBD> <09>1<><18>%<25>%<25><11>*<2A>%<25><14><06><1D><17>$<24>$<24><01>)<29><18>%<25>%<25><11>*<2A>%<25><14><06><1D>$%<25><04>!<21><14><05><1C>$'<27><04>I<EFBFBD><04>!<21><14> <0B>#<23><17>$<24>$<24><01>)<29> <20>!7<>$<24>"3<>"3<>a<EFBFBD>"7<>8<> <20><14>!2<>!2<>!3<>4<>5<>D<EFBFBD><18>%<25>%<25><11>*<2A>%<25><14><08><1F><17>$<24>$<24><03>D<EFBFBD>I<EFBFBD>I<EFBFBD><0E>6<> <20>!3<>$<24>"3<>"3<>4<> <20><14>!2<>!2<>Q<EFBFBD>!6<>!7<>8<>9<>D<EFBFBD> <10>N<EFBFBD>N<EFBFBD> #<23> #<23>D<EFBFBD> )<29> <10> <1E> <1E> <20><13>}<7D>}<7D><14><0F><0F>'<27>'<27><08>$<24>)<29>)<29><<3C><16>-<2D>-<2D><18>O<EFBFBD>O<EFBFBD>+<2B>+<2B>H<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD>@<40>.<2E><1D>9 "r!c<00>B<00>t|<01>}|j|k(ry|jj|<02>|j <00>|j
rM|j jd|j<00>|j jd|j<00>yy)Nr<4E>r<>)<08>strrr<>rrrDrzr<>)rr<><00>newvals rr<>zTextBox.set_val<61>st<00><00><14>S<EFBFBD><18><06> <0F>9<EFBFBD>9<EFBFBD><06> <1E> <12> <0C><0E><0E><1F><1F><06>'<27> <0C><1A><1A><1C> <0F>=<3D>=<3D> <10>O<EFBFBD>O<EFBFBD> #<23> #<23>H<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD> 8<> <10>O<EFBFBD>O<EFBFBD> #<23> #<23>H<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD> 8<> r!c <00>4<00>d|_t<00>}|j|_t |j
j d<01><02>jjdd<00>}|<02>8|j|<00>|j|jj|<00>ytj<00>5|jtj tj"D<00>cic]}|j%d<04>s<01>|g<00><02>c}<03><00>ddd<00>ycc}w#1swYyxYw)NTrL<00> toolmanagerzkeymap.)r<>r<00>close<73>_on_stop_typing<6E>getattrrIrNrO<00>manager<65> keypresslockrTr*r<00>'suppress_matplotlib_deprecation_warning<6E> enter_contextr<74><00>
rc_context<EFBFBD>rcParams<6D>
startswith)r<00>stackrrs r<00> begin_typingzTextBox.begin_typing<6E>s<><00><00>!%<25><04><1E><1A> <0B><05>$<24>{<7B>{<7B><04><1C><1D> <10>G<EFBFBD>G<EFBFBD> <1E> <1E>D<EFBFBD> <1E> )<29> 0<> 0<> 8<> 8<>-<2D><14>O<01> <0B> <16> "<22> <18> $<24> $<24>T<EFBFBD> *<2A> <11>N<EFBFBD>N<EFBFBD>;<3B>3<>3<>;<3B>;<3B>T<EFBFBD> B<><16>=<3D>=<3D>?<3F> O<01><15>#<23>#<23>C<EFBFBD>N<EFBFBD>N<EFBFBD>$'<27>L<EFBFBD>L<EFBFBD>L<>q<EFBFBD>A<EFBFBD>L<EFBFBD>L<EFBFBD><19>4K<34>Q<EFBFBD><02>U<EFBFBD>L<>%N<01>O<01> O<01> O<01><>L<> O<01> O<01>s$<00>,-D<03>D <0E>0D <0E>5 D<03> D<03>Dc<00>l<00>|jr|j<00>d|_d}nd}d|_|jjd<02>|jj d<01><03>j j<00>|r4|jr'|jjd|j<00>yyy)NTFrLr<>) r<>rr<>r<>rIrNrOr<>rDrzr<>r)r<00> notifysubmits r<00> stop_typingzTextBox.stop_typing<6E>s<><00><00> <0F> !<21> !<21> <10> <20> <20> "<22>#'<27>D<EFBFBD> <20><1F>L<EFBFBD> <20>L<EFBFBD>!&<26><04><1E> <0C> <0B> <0B><1F><1F><05>&<26> <0C><07><07><1A><1A><04><1A>%<25>,<2C>,<2C>1<>1<>3<> <17>D<EFBFBD>M<EFBFBD>M<EFBFBD> <11>O<EFBFBD>O<EFBFBD> #<23> #<23>H<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD> 8<>*<2A><r!c<00><><00>|j|<01>ry|jj|<01>ds|j<00>y|jsy|j
j |jk7r%|j
j|j<00>|js|j<00>|jj|j<00>|_ |j<00>yr<>)rBrIr<>r"rDrOr<>r<>r<>rr<><00>_char_index_atrbr<>rr@s rr{zTextBox._click<63>s<><00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12><13>w<EFBFBD>w<EFBFBD><1F><1F><05>&<26>q<EFBFBD>)<29> <10> <1C> <1C> <1E> <12><13>}<7D>}<7D> <12> <10><<3C><<3C> %<25> %<25><14><17><17> 0<> <11>L<EFBFBD>L<EFBFBD> #<23> #<23>D<EFBFBD>G<EFBFBD>G<EFBFBD> ,<2C><13>%<25>%<25> <10> <1D> <1D> <1F> <20>N<EFBFBD>N<EFBFBD>9<>9<>%<25>'<27>'<27>B<><04><19> <0C><1A><1A>r!c<00>$<00>|j<00>yr)r"r@s rr<>zTextBox._resize<7A>s<00><00> <0C><18><18>r!c<00><><00>|j|<01>ry|jj|<01>dr |jn |j}t j ||jj<00><00>s]|jj|<02>|jr5|jjd<02><03>jj<00>yyy)NrTrL) rBrIr<>r<>r<>r r<>r<>rrCrNrOr<>r<>s rr}zTextBox._motion<6F>s<><00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12>#<23>w<EFBFBD>w<EFBFBD>/<2F>/<2F><05>6<>q<EFBFBD>9<>D<EFBFBD>O<EFBFBD>O<EFBFBD>t<EFBFBD>z<EFBFBD>z<EFBFBD><01><15> <20> <20><11>D<EFBFBD>G<EFBFBD>G<EFBFBD>$9<>$9<>$;<3B><<3C> <10>G<EFBFBD>G<EFBFBD> !<21> !<21>!<21> $<24><13>{<7B>{<7B><14><07><07>"<22>"<22><04>"<22>-<2D>4<>4<>9<>9<>;<3B><1B>=r!c<00>B<00><01>|jjd<01>fd<02><08>S)z<>
When the text changes, call this *func* with event.
A connection id is returned which can be used to disconnect.
r<>c<00><00><01><00>|<00>Srr4r<>s <20>rrPz(TextBox.on_text_change.<locals>.<lambda><3E><00> <00><><00>d<EFBFBD>4<EFBFBD>j<EFBFBD>r!r<>r<>s `r<00>on_text_changezTextBox.on_text_change<67>s<00><><00> <14><EFBFBD><EFBFBD>&<26>&<26>x<EFBFBD>1H<31>I<>Ir!c<00>B<00><01>|jjd<01>fd<02><08>S)z<>
When the user hits enter or leaves the submission box, call this
*func* with event.
A connection id is returned which can be used to disconnect.
r<>c<00><00><01><00>|<00>Srr4r<>s <20>rrPz#TextBox.on_submit.<locals>.<lambda><3E>r)r!r<>r<>s `r<00> on_submitzTextBox.on_submit<69>s<00><><00><14><EFBFBD><EFBFBD>&<26>&<26>x<EFBFBD>1H<31>I<>Ir!c<00>:<00>|jj|<01>yr<>r<>r<>s rr<>zTextBox.disconnectr<>r!)<01>)r0r1r2r3r rErrr|r<>r<>rr"r{r<>r}r*r-r<>r<>r<>s@rr<>r<>ss<00><><00><08>,:'<27><1C><13><03>%<25>:'<27>x<0E>)<29><0E>)<29>!<1A>F,<2C>"A<01>H9<>O<01>* 9<> <1D><1B><<3C>J<01>J<01>(r!r<>c<00><><00><00>eZdZdZddddd<04><03>fd<05> Zd<06>Zd<07>Zd<08>Zd <09>Ze d
<EFBFBD><00>Z
e
jd <0B><00>Z
d <0C>Z d <0A>Z d<0E>Zd<0F>Z<0F>xZS)<11> RadioButtonsaI
A GUI neutral radio button.
For the buttons to remain responsive you must keep a reference to this
object.
Connect to the RadioButtons with the `~._Buttons.on_clicked` method.
Attributes
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
activecolor : :mpltype:`color`
The color of the selected button.
labels : list of `.Text`
The button labels.
value_selected : str
The label text of the currently selected button.
index_selected : int
The index of the selected button.
NT)rgrs<00> radio_propsc <00><><00><01>t<00>|<00>|<01>tjtdf||<07><02>t j |tj<00>}|<04>d|vrtjd<04>nd}||_
||_ |||_ ||_ |jg<00>|jg<00>|j!d<06>t#j$ddt'|<02>d z<00>dd
}|xr|j(j*|_d|_t1|<06>}t3|||<06>D<00> <09>
<EFBFBD> cgc])\} }
} |j4d | |
f|j6d d d<0E>| <0B><01><01><02>+c} }
} |_t#j:|j8D<00> cgc]} | j=<00><00><02>c} <0C>d z } d| d zi|<07>d|j6|j,d<11><03>}|j?d|jAdd<14><00>|j?d|jCd|<04><00>|jDdgt'|<08>z|fi|<07><01>|_#|jFjI<00>|_%t'|jJ<00>dk(r0t#jL|jJt'|<02>d<08><16>|_%|jFjOtQ|jJ<00>D<00><0E>cgc]\}}||k(r|nd<17><02>c}}<0E>|jSd|jT<00>|j,r|jSd|jV<00>t jXdg<01><1B>|_-ycc} }
} wcc} wcc}}w)a
Add radio buttons to an `~.axes.Axes`.
Parameters
----------
ax : `~matplotlib.axes.Axes`
The Axes to add the buttons to.
labels : list of str
The button labels.
active : int
The index of the initially selected button.
activecolor : :mpltype:`color`
The color of the selected button. The default is ``'blue'`` if not
specified here or in *radio_props*.
useblit : bool, default: True
Use blitting for faster drawing if supported by the backend.
See the tutorial :ref:`blitting` for details.
.. versionadded:: 3.7
label_props : dict of lists, optional
Dictionary of `.Text` properties to be used for the labels. Each
dictionary value should be a list of at least a single element. If
the list is of length M, its values are cycled such that the Nth
label gets the (N mod M) property.
.. versionadded:: 3.7
radio_props : dict, optional
Dictionary of scatter `.Collection` properties to be used for the
radio buttons. Defaults to (label font size / 2)**2 size, black
edgecolor, and *activecolor* facecolor (when active).
.. note::
If a facecolor is supplied in *radio_props*, it will override
*activecolor*. This may be used to provide an active color per
button.
.. versionadded:: 3.7
N)rsr2r<>z<>Both the *activecolor* parameter and the *facecolor* key in the *radio_props* parameter has been specified. *activecolor* will be ignored.<2E>blueFrrr)rwr<>r<>rjrxrr'r}r<>r<>r{r|r<>rzrprrmrn).rsr rr<>r<>r rir r<><00> warn_external<61> _activecolor<6F>_initial_active<76>value_selected<65>index_selectedr<64>r<>r~r<>r<>r<>rOrwrxr<>rpr<>rrur<>r.r<>r<>r<>r<>r<><00>_buttonsr<73><00>_active_colorsrmrr<>rVr<>r<>ryrz)rrIr<>r:<00> activecolorrgrsr2r<>rcrvrorr<>r<>r<>s <20>rr zRadioButtons.__init__s <00><><00>R <0E><07><18><12><1C> <0C><1D><1D>t<EFBFBD>T<EFBFBD>l<EFBFBD> <0B>*5<> 7<><1C>,<2C>,<2C>[<5B>-8<>-G<>-G<>I<01> <0B> <16> "<22><1A>k<EFBFBD>)<29><14>"<22>"<22>5<>6<>
!<21>K<EFBFBD>'<27><04><19>%<25><04><1C>$<24>V<EFBFBD>n<EFBFBD><04><1B>$<24><04><1B>
<EFBFBD> <0A> <0A>b<EFBFBD><19>
<EFBFBD> <0A> <0A>b<EFBFBD><19>
<EFBFBD><0F><0F><05><1E> <0F>[<5B>[<5B><11>A<EFBFBD>s<EFBFBD>6<EFBFBD>{<7B>Q<EFBFBD><EFBFBD> /<2F><01>"<22> 5<><02><1F>=<3D>D<EFBFBD>K<EFBFBD>K<EFBFBD>$=<3D>$=<3D><04> <0A><1F><04><18>(<28><1B>5<> <0B>
$'<27>r<EFBFBD>6<EFBFBD>;<3B>#?<3F> A<01>A<01> <20><01>5<EFBFBD>%<25> <14>B<EFBFBD>G<EFBFBD>G<EFBFBD>D<EFBFBD>!<21>U<EFBFBD> <1D>b<EFBFBD>l<EFBFBD>l<EFBFBD>(.<2E>(<28> <1D><1B> <1D>A<01><04> <0B>
<17>H<EFBFBD>H<EFBFBD>d<EFBFBD>k<EFBFBD>k<EFBFBD>J<>d<EFBFBD>d<EFBFBD>/<2F>/<2F>1<>J<>K<>a<EFBFBD>O<> <09> <10><19>A<EFBFBD><1C>
<EFBFBD><19>
<EFBFBD><1A><1B><1C><1C><1C> <0A> <0A> 
<EFBFBD> <0B> <14><1E><1E>{<7B>K<EFBFBD>O<EFBFBD>O<EFBFBD>G<EFBFBD>W<EFBFBD>,M<>N<><13><1E><1E>{<7B>*<2A><EFBFBD><EFBFBD>w<EFBFBD> <0B>D<> F<01>"<22><02>
<EFBFBD>
<EFBFBD>C<EFBFBD>5<EFBFBD>3<EFBFBD>r<EFBFBD>7<EFBFBD>?<3F>B<EFBFBD>F<>+<2B>F<><04> <0A>#<23>m<EFBFBD>m<EFBFBD>9<>9<>;<3B><04><1B> <0E>t<EFBFBD>"<22>"<22> #<23>q<EFBFBD> (<28>"$<24>)<29>)<29>D<EFBFBD>,?<3F>,?<3F><13>V<EFBFBD><1B>12<31>#4<>D<EFBFBD> <1F> <0C> <0A> <0A>#<23>#<23>#,<2C>T<EFBFBD>-@<40>-@<40>#A<> C<01><1F><11>K<EFBFBD><1E><16>K<EFBFBD>[<5B>V<EFBFBD> 3<> C<01> D<01> <0A><1A><1A>/<2F><14><1D><1D>?<3F> <0F>=<3D>=<3D> <10> <1E> <1E>|<7C>T<EFBFBD>[<5B>[<5B> 9<><1F>0<>0<>)<29><1B>E<><04><0F><>CA<01><>
K<01><>* Cs<00>+.L><08>M<08>M
c<00><00>|j|<01>s|jj<00>ry|jj|jj
<00>|_|jj|j<00>yr<>) rBrOr<>r<>rIr<>r<>r<>r:r@s rr<>zRadioButtons._clear<61>sU<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D><14><1B><1B>!6<>!6<>!8<> <12><1F>;<3B>;<3B>5<>5<>d<EFBFBD>g<EFBFBD>g<EFBFBD>l<EFBFBD>l<EFBFBD>C<><04><18> <0C><07><07><1B><1B>D<EFBFBD>M<EFBFBD>M<EFBFBD>*r!c<00>v<00>|j|<01>s-|jdk7s|jj|<01>dsyg|jj|<01>dd<00>t |j <00>D<00><02>cgc]\}}|j|<01>ds<01>|<02><02>c}}<02>}|r<>|jj<00>j|jj<00><00>}|j||j|jf||z
dzjd<05>j<00><00>yycc}}wr<>)rBrrIr<>r:r<>r<>r<>rar<>r;rbrcr<>r<>r<>s rr<>zRadioButtons._clicked<65>s<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D><15><1C><1C><11>!2<>$<24>'<27>'<27>:J<>:J<>5<EFBFBD>:Q<>RS<52>:T<> <12>S<01> <11>]<5D>]<5D> #<23> #<23>E<EFBFBD> *<2A>1<EFBFBD> -<2D>e<EFBFBD> 4<>S<01>(<28><14><1B><1B>5<> Q<>G<EFBFBD>A<EFBFBD>t<EFBFBD><14><1D><1D>u<EFBFBD>9M<39>a<EFBFBD>9P<39>a<EFBFBD> Q<>S<01><04> <10><19>]<5D>]<5D>7<>7<>9<>C<>C<><14> <0A> <0A>)<29>)<29>+<2B>-<2D>F<EFBFBD> <10>O<EFBFBD>O<EFBFBD><14><05><07><07><15><17><17>)<29>F<EFBFBD>4<EFBFBD>L<EFBFBD>8<>Q<EFBFBD>><3E>C<>C<>B<EFBFBD>G<>N<>N<>P<>Q<> S<01> <10><>Rr<>c<00><><00>tjt|<01><01>t|<01>}t |j
|<01>D]\}}|j |<03><00>y)a$
Set properties of the `.Text` labels.
.. versionadded:: 3.7
Parameters
----------
props : dict
Dictionary of `.Text` properties to be used for the labels. Same
format as label_props argument of :class:`RadioButtons`.
rnNr<4E>r<>s rr<>zRadioButtons.set_label_props<70>r<>r!c<00><><00>tjt|<01><01>d|vr;tj|j d<02>t |j<00><00>|d<|jj|<01>|jj<00>|_ t |j<00>dk(r:tj|jt |j<00>d<05><06>|_ |jjt|j|j<00>D<00><02>cgc]&\}}|j<00>|j k(r|nd<07><02>(c}}<02>ycc}}w) z<>
Set properties of the `.Text` labels.
.. versionadded:: 3.7
Parameters
----------
props : dict
Dictionary of `.Collection` properties to be used for the radio
buttons.
rnrr<>rrr<>rzN)rr<>r<>r<>r<>r<>r<>r<>r:r<>r<>r;rmrr<>r<>r8)rrorr<s r<00>set_radio_propszRadioButtons.set_radio_props<70>s<00><00> <0A><1D><1D>d<EFBFBD>%<25>0<> <0E>%<25><<3C><1F>_<EFBFBD>_<EFBFBD>U<EFBFBD>Y<EFBFBD>Y<EFBFBD>s<EFBFBD>^<5E>S<EFBFBD><14><1B><1B>=M<>N<>E<EFBFBD>'<27>N<EFBFBD> <0C> <0A> <0A><1C><1C>U<EFBFBD>#<23>"<22>m<EFBFBD>m<EFBFBD>9<>9<>;<3B><04><1B> <0E>t<EFBFBD>"<22>"<22> #<23>q<EFBFBD> (<28>"$<24>)<29>)<29>D<EFBFBD>,?<3F>,?<3F>,/<2F><04> <0B> <0B>,<<3C>1<EFBFBD>#F<01>D<EFBFBD> <1F> <0C> <0A> <0A>#<23>#<23>&)<29>$<24>+<2B>+<2B>t<EFBFBD>7J<37>7J<37>&K<> M<01>"<22><14>{<7B>!<21>M<EFBFBD>M<EFBFBD>O<EFBFBD>t<EFBFBD>/B<>/B<>B<>[<5B><06> N<> M<01> N<01><> Ms<00>+E
c<00><00>|jSr)r6rs rr<zRadioButtons.activecolor<6F>s<00><00><13> <20> <20> r!c<00>d<00>tj|<01><01>||_|jd|i<01>y)N)r<r<>)r <00>_check_color_liker6rA)rr<s rr<zRadioButtons.activecolor<6F>s+<00><00><0E> <20> <20>[<5B>9<>'<27><04><19> <0C><1C><1C>k<EFBFBD>;<3B>7<>8r!c<00><><00>|tt|j<00><00>vrtd|<01><00><02><00>|j|j <00>|_||_|jj<00>}tjd<02>|ddtj|j|<00>||<|jj|<02>|jr<>|jr<>|j<00>%|j j#|j<00>|j$j'|j<00>|j j)|j$j*<00>n|j j-<00>|j.r8|j0j3d|j|j <00><00>yy)a9
Select button with number *index*.
Callbacks will be triggered if :attr:`eventson` is True.
Parameters
----------
index : int
The index of the button to activate.
Raises
------
ValueError
If the index is invalid.
zInvalid RadioButton index: rzNrm)r<>r<>r<>r%r<>r8r9r:r<>r r<>r;rrCrxr<>rOr<>rIr<>r<>r<>r<>rDrzr<>)rr<><00>button_facecolorss rr;zRadioButtons.set_active<76>sL<00><00> <11><05>c<EFBFBD>$<24>+<2B>+<2B>.<2E>/<2F> /<2F><1C>:<3A>5<EFBFBD>'<27>B<>C<> C<>"<22>k<EFBFBD>k<EFBFBD>%<25>0<>9<>9<>;<3B><04><1B>#<23><04><1B> <20>M<EFBFBD>M<EFBFBD>7<>7<>9<><19>%<25>~<7E>~<7E>f<EFBFBD>5<><19>!<21><1C>#)<29>><3E>><3E>$<24>2E<32>2E<32>e<EFBFBD>2L<32>#M<><19>%<25> <20> <0C> <0A> <0A>#<23>#<23>$5<>6<> <0F>;<3B>;<3B><13>}<7D>}<7D><17>#<23>#<23>/<2F><18>K<EFBFBD>K<EFBFBD>.<2E>.<2E>t<EFBFBD>/?<3F>/?<3F>@<40><14><07><07>#<23>#<23>D<EFBFBD>M<EFBFBD>M<EFBFBD>2<><14> <0B> <0B> <20> <20><14><17><17><1C><1C>.<2E><14> <0B> <0B> <20> <20>"<22> <0F>=<3D>=<3D> <10>O<EFBFBD>O<EFBFBD> #<23> #<23>I<EFBFBD>t<EFBFBD>{<7B>{<7B>5<EFBFBD>/A<>/J<>/J<>/L<> M<> r!c<00>:<00>|j|j<00>y)z4Reset the active button to the initially active one.N)r;r7rs rr<>zRadioButtons.clear<61>s<00><00> <0C><0F><0F><04>,<2C>,<2C>-r!c<00>:<00>|jjd|<01>S)r<>rmr<>r<>s rr<>zRadioButtons.on_clicked<65>s<00><00>&<14><EFBFBD><EFBFBD>&<26>&<26>y<EFBFBD>$<24>7<>7r!c<00>:<00>|jj|<01>yr<>r<>r<>s rr<>zRadioButtons.disconnect r<>r!)rN)r0r1r2r3r r<>r<>r<>rArEr<<00>setterr;r<>r<>r<>r<>r<>s@rr1r1sx<00><><00><08>,iF<01><1D>4<EFBFBD>T<EFBFBD>iF<01>V+<2B>
S<01><1E>"N<01>0<0E>!<21><0E>!<21><11><17><17>9<><18>9<>
#N<01>J.<2E>8<>*(r!r1c<00>"<00>eZdZdZd<02>Zd<03>Zd<04>Zy)<06> SubplotToolz=
A tool to adjust the subplot params of a `.Figure`.
c <00>t<00>||_||_|jdd<02><03>|jd<04>g|_gd<05>}t ||j t|<03>dz<00><00>D]p\}}|jd<07>t||ddt|j|<04><00> <09>}|j|j<00>|jj|<06><00>r|jd
j!<00>|j\|_|_|_|_|_|_|j"|j$|j*|j,fD] }d|_<00> |j&|j(fD] }d|_<00> |j&|j"_|j"|j&_|j(|j$_|j$|j(_|j7gd <0B><01>}t9|d <0C>|_|j:j=|j><00>y )z<>
Parameters
----------
targetfig : `~matplotlib.figure.Figure`
The figure instance to adjust.
toolfig : `~matplotlib.figure.Figure`
The figure instance to embed the subplot tool into.
<><E79A99><EFBFBD><EFBFBD><EFBFBD>?g<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?)r<>r<>z'Click on slider to adjust subplot param)r<>r<>r<>r<><00>wspace<63>hspacerFr)r<>rw)g<><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?r<>r|g333333<33>?<3F>ResetN) <20>figure<72> targetfig<69>subplots_adjust<73>suptitle<6C>_slidersr<73><00>subplotsr<73>r~r<>r<00> subplotparsr$<00>_on_slider_changedrS<00>axes<65>remove<76>
sliderleft<EFBFBD> sliderbottom<6F> sliderright<68> slidertop<6F> sliderwspace<63> sliderhspacer<65>r<>r<>r<><00>add_axesrf<00> buttonresetr<74><00> _on_reset)rrS<00>toolfig<69>namesr<73>rI<00>slider<65>baxs rr zSubplotTool.__init__s<><00><00><1E><04> <0B>"<22><04><0E><0F><1F><1F>S<EFBFBD><03><1F>4<><0F><18><18>B<>C<><1A><04> <0A>F<><05><1B>E<EFBFBD>7<EFBFBD>#3<>#3<>C<EFBFBD><05>J<EFBFBD><11>N<EFBFBD>#C<>D<> )<29>H<EFBFBD>D<EFBFBD>"<22> <0E>O<EFBFBD>O<EFBFBD>E<EFBFBD> "<22><1B>B<EFBFBD><04>a<EFBFBD><11>$+<2B>I<EFBFBD>,A<>,A<>4<EFBFBD>$H<>J<01>F<EFBFBD> <12> <1D> <1D>d<EFBFBD>5<>5<> 6<> <10>M<EFBFBD>M<EFBFBD> <20> <20><16> (<28>  )<29> <10> <0C> <0C>R<EFBFBD><18><1F><1F>!<21>15<31><1D><1D> /<2F><14><1F>$<24>+<2B>T<EFBFBD>-=<3D>t<EFBFBD>~<7E> <0A> <1A>D<EFBFBD>-<2D><1B><EFBFBD><EFBFBD><04>(9<>(9<><1B>(<28>(<28>$<24>*;<3B>*;<3B>=<3D> %<25>F<EFBFBD>$<24>F<EFBFBD> <1C> %<25><1C>'<27>'<27><14><1E><1E>8<> %<25>F<EFBFBD>$<24>F<EFBFBD> <1C> %<25>%)<29>$4<>$4<><04><0F><0F>!<21>%)<29>_<EFBFBD>_<EFBFBD><04><18><18>"<22>&*<2A>n<EFBFBD>n<EFBFBD><04><19><19>#<23>#'<27>#4<>#4<><04><0E><0E> <20><15><1E><1E>7<>8<><03>!<21>#<23>w<EFBFBD>/<2F><04><18> <0C><18><18>#<23>#<23>D<EFBFBD>N<EFBFBD>N<EFBFBD>3r!c <00><00>|jjdi|jD<00>cic]'}|jj <00>|j
<00><02>)c}<02><01>|j r%|jjj<00>yycc}wrh) rSrTrVrvr<>r<>rCrOr<>)rrrgs rrYzSubplotTool._on_slider_changed@st<00><00>&<26><04><0E><0E>&<26>&<26> -<2D>!<21>]<5D>]<5D>,<2C><19><16>|<7C>|<7C>$<24>$<24>&<26><06>
<EFBFBD>
<EFBFBD>2<>,<2C> -<2D> <10>;<3B>;<3B> <10>N<EFBFBD>N<EFBFBD> !<21> !<21> &<26> &<26> (<28> <17><>,s<00>,B
c <00><><00>t<00>5}|jtj|d<01><02><00>|jD])}|jtj|dd<01><03><00><00>+|jD]}|j <00><00> ddd<00>|j r|jj<00>|jd<00>y#1swY<00>AxYw)NF)rC)rCrD)
rrr <00> _setattr_cmrVr<>rCrOr<>rY)rrArrgs rrdzSubplotTool._on_resetGs<><00><00> <16>[<5B>
<1F>E<EFBFBD> <12> <1F> <1F><05> 1<> 1<>$<24>u<EFBFBD> E<> F<><1E>-<2D>-<2D> M<01><06><15>#<23>#<23><19>%<25>%<25>f<EFBFBD>U<EFBFBD>U<EFBFBD>K<>M<01> M<01><1F>-<2D>-<2D> <1F><06><16> <0C> <0C><0E> <1F>
<1F> <10>;<3B>;<3B> <11>L<EFBFBD>L<EFBFBD> <1D> <1D> <1F> <0C><1F><1F><04>%<25>
<1F>
<1F>s <00>BC <03> CN)r0r1r2r3r rYrdr4r!rrLrLs<00><00><08>)4<>V)<29>&r!rLc<00>8<00><00>eZdZdZdddd<04><03>fd<05>
Zd<06>Zd<07>Z<06>xZS)<08>Cursora+
A crosshair cursor that spans the Axes and moves with mouse cursor.
For the cursor to remain responsive you must keep a reference to it.
Parameters
----------
ax : `~matplotlib.axes.Axes`
The `~.axes.Axes` to attach the cursor to.
horizOn : bool, default: True
Whether to draw the horizontal line.
vertOn : bool, default: True
Whether to draw the vertical line.
useblit : bool, default: False
Use blitting for faster drawing if supported by the backend.
See the tutorial :ref:`blitting` for details.
Other Parameters
----------------
**lineprops
`.Line2D` properties that control the appearance of the lines.
See also `~.Axes.axhline`.
Examples
--------
See :doc:`/gallery/widgets/cursor`.
TF)<03>horizOn<4F>vertOnrgc <00><><00><01>t<00>|<00>|<01>|jd|j<00>|jd|j<00>d|_||_||_|xr|jj|_
|jrd|d<|j|j<00>dfddi|<05><01>|_ |j|j<00>dfddi|<05><01>|_d|_d|_y)NrrrTr~rr<>F)rsr rV<00>onmover<65>r<>rnrorOrwrgr<><00>
get_ybound<EFBFBD>linehr<68><00>
get_xbound<EFBFBD>linev<65>
background<EFBFBD> needclear)rrIrnrorg<00> linepropsr<73>s <20>rr zCursor.__init__ts<><00><><00> <0A><07><18><12><1C> <0C><1A><1A>0<>$<24>+<2B>+<2B>><3E> <0C><1A><1A><<3C><14><1A><1A>4<><1B><04> <0C><1E><04> <0C><1C><04> <0B><1E><<3C>4<EFBFBD>;<3B>;<3B>#<<3C>#<<3C><04> <0C> <0F><<3C><<3C>$(<28>I<EFBFBD>j<EFBFBD> !<21><1F>R<EFBFBD>Z<EFBFBD>Z<EFBFBD><02> <0A> <0A><0F><01> 2<>O<>E<EFBFBD>O<>Y<EFBFBD>O<><04>
<EFBFBD><1F>R<EFBFBD>Z<EFBFBD>Z<EFBFBD><02> <0A> <0A><0F><01> 2<>O<>E<EFBFBD>O<>Y<EFBFBD>O<><04>
<EFBFBD><1E><04><0F><1E><04>r!c<00><><00>|j|<01>s|jj<00>ry|jr5|jj |j
j <00>|_yy)z+Internal event handler to clear the cursor.N)rBrOr<>rgr<>rIr<>rvr@s rr<>z Cursor.clear<61>sJ<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D><14><1B><1B>!6<>!6<>!8<> <12> <0F><<3C><<3C>"<22>k<EFBFBD>k<EFBFBD>8<>8<><14><17><17><1C><1C>F<>D<EFBFBD>O<EFBFBD> r!c<00><><00>|j|<01>ry|jjj|<00>sy|jj |<01>dsd|j jd<03>|jjd<03>|jr!|jj<00>d|_ yd|_ |j|<01>\}}|j j||f<02>|j j|jxr |j<00>|jj||f<02>|jj|jxr |j <00>|jr|js |j sy|j"r<>|j$<00>%|jj'|j$<00>|jj)|j <00>|jj)|j<00>|jj+|jj,<00>y|jj/<00>y)z?Internal event handler to draw the cursor when the mouse moves.NrFT)rBrO<00>
widgetlockr$rIr<>rur<>rsrwr<>rdrr<>rorrnrgrvr<>r<>r<>r<>r<00>rrAr]r^s rrqz Cursor.onmove<76>s<><00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12><13>{<7B>{<7B>%<25>%<25>/<2F>/<2F><04>5<> <12><13>w<EFBFBD>w<EFBFBD><1F><1F><05>&<26>q<EFBFBD>)<29> <10>J<EFBFBD>J<EFBFBD> "<22> "<22>5<EFBFBD> )<29> <10>J<EFBFBD>J<EFBFBD> "<22> "<22>5<EFBFBD> )<29><13>~<7E>~<7E><14> <0B> <0B> <20> <20>"<22>!&<26><04><0E> <12><1D><04><0E><1B>,<2C>,<2C>U<EFBFBD>3<> <0C><05>u<EFBFBD> <0C>
<EFBFBD>
<EFBFBD><1C><1C>e<EFBFBD>U<EFBFBD>^<5E>,<2C> <0C>
<EFBFBD>
<EFBFBD><1E><1E>t<EFBFBD>|<7C>|<7C>;<3B><04> <0B> <0B><<3C> <0C>
<EFBFBD>
<EFBFBD><1C><1C>e<EFBFBD>U<EFBFBD>^<5E>,<2C> <0C>
<EFBFBD>
<EFBFBD><1E><1E>t<EFBFBD>|<7C>|<7C><<3C><04> <0C> <0C>=<3D><14> <0C> <0C>$<24>+<2B>+<2B><14><1C><1C> <12> <0F><<3C><<3C><13><EFBFBD><EFBFBD>*<2A><14> <0B> <0B>*<2A>*<2A>4<EFBFBD>?<3F>?<3F>;<3B> <10>G<EFBFBD>G<EFBFBD> <1F> <1F><04>
<EFBFBD>
<EFBFBD> +<2B> <10>G<EFBFBD>G<EFBFBD> <1F> <1F><04>
<EFBFBD>
<EFBFBD> +<2B> <10>K<EFBFBD>K<EFBFBD> <1C> <1C>T<EFBFBD>W<EFBFBD>W<EFBFBD>\<5C>\<5C> *<2A> <10>K<EFBFBD>K<EFBFBD> !<21> !<21> #r!)r0r1r2r3r r<>rqr<>r<>s@rrmrmXs!<00><><00><08>6'+<2B>4<EFBFBD><15><1F>(G<01>$r!rmc<00>8<00>eZdZdZdddd<04>d<05>Zd<06>Zd<07>Zd<08>Zd <09>Zy
) <0B> MultiCursora<72>
Provide a vertical (default) and/or horizontal line cursor shared between
multiple Axes.
For the cursor to remain responsive you must keep a reference to it.
Parameters
----------
canvas : object
This parameter is entirely unused and only kept for back-compatibility.
axes : list of `~matplotlib.axes.Axes`
The `~.axes.Axes` to attach the cursor to.
useblit : bool, default: True
Use blitting for faster drawing if supported by the backend.
See the tutorial :ref:`blitting`
for details.
horizOn : bool, default: False
Whether to draw the horizontal line.
vertOn : bool, default: True
Whether to draw the vertical line.
Other Parameters
----------------
**lineprops
`.Line2D` properties that control the appearance of the lines.
See also `~.Axes.axhline`.
Examples
--------
See :doc:`/gallery/widgets/multicursor`.
TF)rgrnroc <00>r<00>||_||_||_||_|D<00>cic]"}|j d<01><02>j
gdd<03><02><02>$c}|_|dj<00>\}} |dj<00>\}
} d|| zz} d|
| zz} d|_ |xrtd<06>|j D<00><00>|_ |jrd|d<|D<00>cgc]}|j| fdd i|<06><01><01><02>c}|_ |D<00>cgc]}|j| fdd i|<06><01><01><02>c}|_|j!<00>ycc}wcc}wcc}w)
NTrL)<02>cidsrvrwric3<00>4K<00>|]}|j<00><01><00>y<00>wr)rw)<02>.0rOs r<00> <genexpr>z'MultiCursor.__init__.<locals>.<genexpr><3E>s<00><00><><00>J<>V<EFBFBD>F<EFBFBD>(<28>(<28>J<>s<00>r~r<>F)<11>_canvasrZrnrorNrO<00> _canvas_infos<6F>get_xlim<69>get_ylimr<6D><00>allrgr<>r<>r<><00>hlinesr<73>)rrOrZrgrnrorxrI<00>xmin<69>xmax<61>ymin<69>ymax<61>xmid<69>ymids rr zMultiCursor.__init__<5F>sc<00><00><1E><04> <0C><18><04> <09><1E><04> <0C><1C><04> <0B><@<01>A<01>57<35> <0F>M<EFBFBD>M<EFBFBD>t<EFBFBD>M<EFBFBD> $<24> +<2B> +<2B><1B>4<EFBFBD>0<> 1<>A<01><04><1A><1A>"<22>X<EFBFBD>&<26>&<26>(<28>
<EFBFBD><04>d<EFBFBD><19>"<22>X<EFBFBD>&<26>&<26>(<28>
<EFBFBD><04>d<EFBFBD><12>d<EFBFBD>T<EFBFBD>k<EFBFBD>"<22><04><12>d<EFBFBD>T<EFBFBD>k<EFBFBD>"<22><04><1B><04> <0C> <13> K<01><13>J<>t<EFBFBD>7I<37>7I<37>J<>J<> <0A> <0C> <10><<3C><<3C>$(<28>I<EFBFBD>j<EFBFBD> !<21>"&<26>'<27><1D>"<22>r<EFBFBD>z<EFBFBD>z<EFBFBD>$<24>C<><05>C<><19>C<>'<27><04> <0B>"&<26>'<27><1D>"<22>r<EFBFBD>z<EFBFBD>z<EFBFBD>$<24>C<><05>C<><19>C<>'<27><04> <0B> <0A> <0C> <0C><0E><>-A<01><>"'<27><>'s<00>'D*<04> D/<04>5D4c<00><><00>|jj<00>D]@\}}|jd|j<00>|jd|j<00>g|d<<00>By)zConnect events.rrrr<>N)r<>r<>rRrqr<>)rrO<00>infos rr<>zMultiCursor.connect<63>sX<00><00> <20>.<2E>.<2E>4<>4<>6<> <0E>L<EFBFBD>F<EFBFBD>D<EFBFBD><16>"<22>"<22>#8<>$<24>+<2B>+<2B>F<><16>"<22>"<22><<3C><14><1A><1A><<3C><0E>D<EFBFBD><16>L<EFBFBD> r!c<00><><00>|jj<00>D]3\}}|dD]}|j|<03><00>|dj<00><00>5y)zDisconnect events.r<>N)r<>r<>rXr<>)rrOr<>rUs rr<>zMultiCursor.disconnect<63>sU<00><00> <20>.<2E>.<2E>4<>4<>6<> !<21>L<EFBFBD>F<EFBFBD>D<EFBFBD><1B>F<EFBFBD>|<7C> +<2B><03><16>%<25>%<25>c<EFBFBD>*<2A> +<2B> <10><16>L<EFBFBD> <1E> <1E> <20> !r!c<00><00>|j|<01>ry|jrd|jj<00>D]F\}}||jj
ur<01>|j |jj<00>|d<<00>Hyy)zClear the cursor.Nrv)rBrgr<>r<>rRrOr<>r<>)rrArOr<>s rr<>zMultiCursor.clearsw<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12> <0F><<3C><<3C> $<24> 2<> 2<> 8<> 8<> :<3A> O<01> <0C><06><04>
<1A><16><1D><1D>!5<>!5<>5<><1C>%+<2B>%:<3A>%:<3A>6<EFBFBD>=<3D>=<3D>;M<>;M<>%N<><04>\<5C>"<22> O<01> r!c<00>~<00>|jD<00>cgc]}|j|<01>ds<01>|<02><02>}}|j|<01>s'|r%|jjj |<00>syt j|<03>}|j|ur|j|jfn>|jj<00>j|j|jf<02>\}}|j D]>}|j#||f<02>|j%|j&xr |j(<00><00>@|j*D]>}|j-||f<02>|j%|j&xr |j.<00><00>@|j&r|j(s |j.sy|j0r<>|j2j5<00>D]\}}|ds<01> |j7|d<00><00>!|j(r9t9|j|j <00>D]\}}|j;|<06><00>|j.r9t9|j|j*<00>D]\}}|j;|<06><00>|j2D]}|j=<00><00>y|j2D]}|j?<00><00>ycc}w)Nrrv) rZr<>rBrOr{r$r <00>_topmost_artistr\r]r^r_r`rarbrcr<>rr<>r<>ror<>rrnrgr<>r<>r<>r<>r<>r<>r) rrArI<00>axsr]r^<00>linerOr<>s rrqzMultiCursor.onmoves;<00><00> <20>I<EFBFBD>I<EFBFBD>?<3F>b<EFBFBD><12><1B><1B>U<EFBFBD>);<3B>A<EFBFBD>)><3E>r<EFBFBD>?<3F><03>?<3F> <0F>;<3B>;<3B>u<EFBFBD> <1D>S<EFBFBD><05> <0C> <0C>0G<30>0G<30>0Q<30>0Q<30>RV<52>0W<30> <12> <12> "<22> "<22>3<EFBFBD> '<27><02>6;<3B>l<EFBFBD>l<EFBFBD>b<EFBFBD>6H<36><15><1B><1B>e<EFBFBD>k<EFBFBD>k<EFBFBD>2<><1F>\<5C>\<5C>2<>2<>4<>><3E>><3E><05><07><07><15><17><17>?Q<>R<> <15><05>u<EFBFBD><18>K<EFBFBD>K<EFBFBD> ;<3B>D<EFBFBD> <10>N<EFBFBD>N<EFBFBD>E<EFBFBD>5<EFBFBD>><3E> *<2A> <10> <1C> <1C>T<EFBFBD>\<5C>\<5C>9<>d<EFBFBD>k<EFBFBD>k<EFBFBD> :<3A> ;<3B><19>K<EFBFBD>K<EFBFBD> <<3C>D<EFBFBD> <10>N<EFBFBD>N<EFBFBD>E<EFBFBD>5<EFBFBD>><3E> *<2A> <10> <1C> <1C>T<EFBFBD>\<5C>\<5C>:<3A>d<EFBFBD>l<EFBFBD>l<EFBFBD> ;<3B> <<3C><15> <0C> <0C>$<24>+<2B>+<2B><14><1C><1C> <12> <0F><<3C><<3C> $<24> 2<> 2<> 8<> 8<> :<3A> ><3E> <0C><06><04><17> <0C>%<25><1A>)<29>)<29>$<24>|<7C>*<<3C>=<3D> ><3E><14>{<7B>{<7B> #<23>D<EFBFBD>I<EFBFBD>I<EFBFBD>t<EFBFBD>{<7B>{<7B> ;<3B>)<29>H<EFBFBD>B<EFBFBD><04><16>N<EFBFBD>N<EFBFBD>4<EFBFBD>(<28>)<29><13>|<7C>|<7C> #<23>D<EFBFBD>I<EFBFBD>I<EFBFBD>t<EFBFBD>{<7B>{<7B> ;<3B>)<29>H<EFBFBD>B<EFBFBD><04><16>N<EFBFBD>N<EFBFBD>4<EFBFBD>(<28>)<29><1E>,<2C>,<2C> <1E><06><16> <0B> <0B> <0A> <1E><1F>,<2C>,<2C> #<23><06><16> <20> <20>"<22> #<23><>9@s
<00>J:<04>J:N) r0r1r2r3r r<>r<>r<>rqr4r!rr~r~<00>s,<00><00>"<08>H15<31>e<EFBFBD>D<EFBFBD> <17>D<0E>!<21> O<01>#r!r~c<00><><00><00>eZdZ d <20>fd<01> Z<03>fd<02>Zd<03>Zd<04>Zd<05>Zd<06>Zd<07>Z d<08>Z
d <09>Z d
<EFBFBD>Z d <0B>Z d <0C>Zd <0A>Zd<0E>Zd<0F>Zd<10>Zd<11>Zd<12>Zd<13>Zd<14>Zd<15>Zd<16>Zd<17>Zd<18>Zd<19>Zed<1A><00>Zd<1B>Zd<1C>Zd<1D>Z d<1E>Z!d<1F>Z"<22>xZ#S)!<21>_SelectorWidgetc<00><><00><01>t<00>|<00>|<01>d|_|<02> d<02>|_n||_|xr|jj
|_|j<00>tddddd<07><08>|_ |jj|xsi<00>||_ d|_ t|t<00>r |g|_n||_d |_d|_d|_d|_t)<00>|_y)
NTc<00><00>yrr4)<01>argss rrPz*_SelectorWidget.__init__.<locals>.<lambda><<00><00>r!<00> <20>escape<70>shift<66>controlr<6C>)<05>mover<65><00>squarerj<00>rotateF)rsr <00>_visible<6C>onselectrOrwrg<00>connect_default_eventsr<73><00>_state_modifier_keysr<73><00>_use_data_coordinatesrvr<>r<00> validButtons<6E>_selection_completed<65> _eventpress<73> _eventrelease<73> _prev_eventr<74><00>_state)rrIr<>rgr<00>state_modifier_keys<79>use_data_coordinatesr<73>s <20>rr z_SelectorWidget.__init__6s<><00><><00> <0A><07><18><12><1C><1C><04> <0A> <13> <1B>.<2E>D<EFBFBD>M<EFBFBD>$<24>D<EFBFBD>M<EFBFBD><1E><<3C>4<EFBFBD>;<3B>;<3B>#<<3C>#<<3C><04> <0C> <0C>#<23>#<23>%<25>$(<28>c<EFBFBD><18>07<30> <09>03<30>%5<><04>!<21> <0A>!<21>!<21>(<28>(<28>)<<3C>)B<><02>C<>%9<><04>"<22><1E><04><0F> <15>f<EFBFBD>h<EFBFBD> '<27>!'<27><08>D<EFBFBD> <1D> &<26>D<EFBFBD> <1D>%*<2A><04>!<21> <20><04><18>!<21><04><1A><1F><04><18><19>e<EFBFBD><04> r!c<00>L<00><01>t<00>|<00>|<01>|r|jd<00>yyr)rsr;<00>update_background)rr:r<>s <20>rr;z_SelectorWidget.set_activeYs&<00><><00> <0A><07><1A>6<EFBFBD>"<22> <11> <10> "<22> "<22>4<EFBFBD> (<28> r!c<00>x<00><00>t<00>fd<01><08>jj<00>j<00>D<00><00>S)aG
Convenience method to get all animated artists of the figure containing
this widget, excluding those already present in self.artists.
The returned tuple is not sorted by 'z_order': z_order sorting is
valid only when considering all artists and not only a subset of all
artists.
c3<00><><00>K<00>|]9}|j<00>D]$}|j<00>r|<02>jvr|<02><01><00>&<00>;y<00>wr)<03> get_children<65> get_animated<65>artists)r<><00>ax_<78>ars <20>rr<>z8_SelectorWidget._get_animated_artists.<locals>.<genexpr>fsL<00><><00><><00>D<01>3<EFBFBD>!<21>.<2E>.<2E>0<>D<01><1A><19><0E><0E>(<28>Q<EFBFBD>d<EFBFBD>l<EFBFBD>l<EFBFBD>-B<><17>D<01>Q<EFBFBD>D<01>s<00>?A)<04>tuplerIrN<00>get_axesrs`r<00>_get_animated_artistsz%_SelectorWidget._get_animated_artists^s8<00><><00><15>D<01>$<24>'<27>'<27>"4<>"4<>"6<>"?<3F>"?<3F>"A<>D<01>D<01> Dr!c<00>B<00>|jsy|jj<00>ryt|j|j <00>zd<02><00><03>}t d<04>|D<00><00>}t<00>5}|rB|D]#}|j|jd<05><06><00><00>%|jj<00>|jj|jj<00>|_ddd<01>|r#|D]}|jj|<05><00>yy#1swY<00>/xYw)z"Force an update of the background.Nc<00>"<00>|j<00>Sr<00><01>
get_zorder<EFBFBD>r<>s rrPz3_SelectorWidget.update_background.<locals>.<lambda>zs <00><00>q<EFBFBD>|<7C>|<7C>~<7E>r!<00>rc3<00><K<00>|]}|j<00><00><01><00>y<00>wr)<01> get_visible)r<><00>artists rr<>z4_SelectorWidget.update_background.<locals>.<genexpr>{s<00><00><><00>F<>F<EFBFBD>6<EFBFBD>-<2D>-<2D>/<2F>F<>s<00>F)r<>)rgrOr<><00>sortedr<64>r<>r<>rr<00>_cm_setr<74>r<>rIr<>rvr<>)rrAr<><00> needs_redrawrr<>s rr<>z!_SelectorWidget.update_backgroundjs<><00><00><14>|<7C>|<7C> <12> <0F>;<3B>;<3B> <20> <20> "<22> <12><19><14><1C><1C><04>(B<>(B<>(D<>D<>5<>7<><07><1A>F<>g<EFBFBD>F<>F<> <0C> <16>[<5B> G<01>E<EFBFBD><1B>%<25>G<01>F<EFBFBD><19>'<27>'<27><06><0E><0E>u<EFBFBD><0E>(E<>F<>G<01><14> <0B> <0B> <20> <20>"<22>"<22>k<EFBFBD>k<EFBFBD>8<>8<><14><17><17><1C><1C>F<>D<EFBFBD>O<EFBFBD>  G<01> <18>!<21> ,<2C><06><14><07><07>#<23>#<23>F<EFBFBD>+<2B> ,<2C> <18>  G<01> G<01>s <00>.A9D<03>Dc<00><><00>|jd|j<00>|jd|j<00>|jd|j<00>|jd|j<00>|jd|j
<00>|jd|j <00>|jd|j<00>y) z+Connect the major canvas events to methods.rrrprqrr<><00>key_release_event<6E> scroll_eventN)rVrq<00>pressr*r<><00> on_key_press<73>on_key_release<73> on_scrollrs rr<>z&_SelectorWidget.connect_default_events<74>s<><00><00> <0C><1A><1A>0<>$<24>+<2B>+<2B>><3E> <0C><1A><1A>/<2F><14><1A><1A><<3C> <0C><1A><1A>1<>4<EFBFBD><<3C><<3C>@<40> <0C><1A><1A><<3C><14>)?<3F>)?<3F>@<40> <0C><1A><1A>,<2C>d<EFBFBD>.?<3F>.?<3F>@<40> <0C><1A><1A>.<2E><04>0C<30>0C<30>D<> <0C><1A><1A>><3E>4<EFBFBD>><3E>><3E>:r!c<00>2<00>|jr|jj<00>sy|jjj |<00>syt |d<02>sd|_|j<00>|j|jvry|j<00>|jj|<01>d S|j|jjk(ry|jj|<01>d xs#|j|jjk7S)NTrrF) r:rIr<>rOr{r$r<>rr<>r<>r<>r@s rrBz_SelectorWidget.ignore<72>s<><00><00><13>{<7B>{<7B>$<24>'<27>'<27>"5<>"5<>"7<><17><13>{<7B>{<7B>%<25>%<25>/<2F>/<2F><04>5<><17><16>u<EFBFBD>h<EFBFBD>'<27><1F>E<EFBFBD>L<EFBFBD> <11> <1D> <1D> )<29><19>L<EFBFBD>L<EFBFBD><04>(9<>(9<>9<><17> <0F> <1B> <1B> #<23><1B>w<EFBFBD>w<EFBFBD>'<27>'<27><05>.<2E>q<EFBFBD>1<>1<> 1<> <10><<3C><<3C>4<EFBFBD>+<2B>+<2B>2<>2<> 2<><18><18>G<EFBFBD>G<EFBFBD>$<24>$<24>U<EFBFBD>+<2B>A<EFBFBD>.<2E>.<2E>8<><15> <0C> <0C><04> 0<> 0<> 7<> 7<>7<> 9r!c<00>V<00>|jj<00>r*|jjd<01><02>j<00><00>y|jr<>|j
<00>&|j j|j
<00>n|jd<03>t|j|j<00>zd<04><00><05>}|D]}|jj|<02><00>|j j|jj<00>y|j j<00>y)z@Draw using blit() or draw_idle(), depending on ``self.useblit``.TrLNc<00>"<00>|j<00>Srr<>r<>s rrPz(_SelectorWidget.update.<locals>.<lambda><3E>s <00><00>1<EFBFBD><<3C><<3C>><3E>r!r<>)rIr<>rNr<>rgrvrOr<>r<>r<>r<>r<>r<>r<>r<>r)rr<>r<>s rr<>z_SelectorWidget.update<74>s<><00><00><14><07><07>#<23>#<23>%<25><14><07><07>"<22>"<22><04>"<22>-<2D>;<3B>;<3B>=<3D>E<> <12> <0F><<3C><<3C><13><EFBFBD><EFBFBD>*<2A><14> <0B> <0B>*<2A>*<2A>4<EFBFBD>?<3F>?<3F>;<3B><14>&<26>&<26>t<EFBFBD>,<2C><1D>T<EFBFBD>\<5C>\<5C>D<EFBFBD>,F<>,F<>,H<>H<>!9<>;<3B>G<EFBFBD>!<21> ,<2C><06><14><07><07>#<23>#<23>F<EFBFBD>+<2B> ,<2C> <10>K<EFBFBD>K<EFBFBD> <1C> <1C>T<EFBFBD>W<EFBFBD>W<EFBFBD>\<5C>\<5C> *<2A> <10>K<EFBFBD>K<EFBFBD> !<21> !<21> #r!c<00><00>|j<00>y|j|<01>\}}tj|g|jj <00><00><01><06>}tj|g|jj <00><00><01><06>}||fS)z/Get the xdata and ydata for event, with limits.)NN)r]rdr<><00>cliprIrtrrr|s r<00> _get_dataz_SelectorWidget._get_data<74>sm<00><00> <10>;<3B>;<3B> <1E><1D><1B>,<2C>,<2C>U<EFBFBD>3<> <0C><05>u<EFBFBD><12><07><07><05>5<><04><07><07> 2<> 2<> 4<>5<><05><12><07><07><05>5<><04><07><07> 2<> 2<> 4<>5<><05><14>e<EFBFBD>|<7C>r!c<00><><00>|j<00> |j}ntj|<01>}|j|<01>\|_|_||_|S)a
Preprocess an event:
- Replace *event* by the previous event if *event* has no ``xdata``.
- Get ``xdata`` and ``ydata`` from this widget's Axes, and clip them to the axes
limits.
- Update the previous event.
)r]r<><00>copyr<79>r^r@s r<00> _clean_eventz_SelectorWidget._clean_event<6E>sK<00><00> <11>;<3B>;<3B> <1E><18>$<24>$<24>E<EFBFBD><18>I<EFBFBD>I<EFBFBD>e<EFBFBD>$<24>E<EFBFBD>#'<27>><3E>><3E>%<25>#8<> <20><05> <0B>U<EFBFBD>[<5B> <20><04><18><14> r!c<00>&<00>|j|<01>s<>|j|<01>}||_||_|jxsd}|j dd<03>}||j dk(r|jjd<04>|j|<01>yy)z#Button press handler and validator.r/<00>ctrlr<6C>r<>TF)
rBr<>r<>r<>r<00>replacer<65>r<><00>add<64>_press)rrArs rr<>z_SelectorWidget.press<73>s<><00><00><13>{<7B>{<7B>5<EFBFBD>!<21><18>%<25>%<25>e<EFBFBD>,<2C>E<EFBFBD>$<24>D<EFBFBD> <1C>$<24>D<EFBFBD> <1C><17>)<29>)<29>/<2F>r<EFBFBD>C<EFBFBD><15>+<2B>+<2B>f<EFBFBD>i<EFBFBD>0<>C<EFBFBD><12>d<EFBFBD>/<2F>/<2F><06>7<>7<><14> <0B> <0B><0F><0F><06>'<27> <10>K<EFBFBD>K<EFBFBD><05> <1E><17>r!c<00><00>y)<02>Button press event handler.Nr4r@s rr<>z_SelectorWidget._press<73>r<>r!c<00><><00>|j|<01>s_|jrS|j|<01>}||_|j |<01>d|_d|_|j
j d<02>yy)z+Button release event handler and validator.Nr<4E>TF)rBr<>r<>r<>r|r<><00>discardr@s rr*z_SelectorWidget.release<73>sb<00><00><13>{<7B>{<7B>5<EFBFBD>!<21>d<EFBFBD>&6<>&6<><18>%<25>%<25>e<EFBFBD>,<2C>E<EFBFBD>!&<26>D<EFBFBD> <1E> <10>M<EFBFBD>M<EFBFBD>%<25> <20>#<23>D<EFBFBD> <1C>!%<25>D<EFBFBD> <1E> <10>K<EFBFBD>K<EFBFBD> <1F> <1F><06> '<27><17>r!c<00><00>y)<02>Button release event handler.Nr4r@s rr|z_SelectorWidget._release<73>r<>r!c<00><><00>|j|<01>s/|jr#|j|<01>}|j|<01>yy)<03>(Cursor move event handler and validator.TF)rBr<>r<><00>_onmover@s rrqz_SelectorWidget.onmove<76>s8<00><00><13>{<7B>{<7B>5<EFBFBD>!<21>d<EFBFBD>&6<>&6<><18>%<25>%<25>e<EFBFBD>,<2C>E<EFBFBD> <10>L<EFBFBD>L<EFBFBD><15> <1F><17>r!c<00><00>y)<02>Cursor move event handler.Nr4r@s rr<>z_SelectorWidget._onmove r<>r!c<00>J<00>|j|<01>s|j|<01>yy)z)Mouse scroll event handler and validator.N)rB<00>
_on_scrollr@s rr<>z_SelectorWidget.on_scroll s<00><00><13>{<7B>{<7B>5<EFBFBD>!<21> <10>O<EFBFBD>O<EFBFBD>E<EFBFBD> "<22>"r!c<00><00>y)zMouse scroll event handler.Nr4r@s rr<>z_SelectorWidget._on_scroll r<>r!c<00><00>|jr<>|jxsd}|jdd<03>}||jdk(r|j <00>y|jj <00>D]\}}||j d<06>vs<01>|dk(rF||jvr|jj|<03><00>I|jj|<03><00>e|jj|<03><00><>|j|<01>yy)z@Key press event handler and validator for all selection widgets.r/r<>r<>r<>N<>+r<>) r:rr<>r<>r<>r<><00>splitr<74>r<>r<><00> _on_key_press<73>rrArr<><00>modifiers rr<>z_SelectorWidget.on_key_press s<><00><00> <0F>;<3B>;<3B><17>)<29>)<29>/<2F>r<EFBFBD>C<EFBFBD><15>+<2B>+<2B>f<EFBFBD>i<EFBFBD>0<>C<EFBFBD><12>d<EFBFBD>/<2F>/<2F><07>8<>8<><14>
<EFBFBD>
<EFBFBD> <0C><16>%)<29>%><3E>%><3E>%D<>%D<>%F<>
/<2F>!<21><15><08><1B>s<EFBFBD>y<EFBFBD>y<EFBFBD><13>~<7E>-<2D><1D><08>(<28> <20>D<EFBFBD>K<EFBFBD>K<EFBFBD>/<2F> <20>K<EFBFBD>K<EFBFBD>/<2F>/<2F><05>6<> <20>K<EFBFBD>K<EFBFBD>O<EFBFBD>O<EFBFBD>E<EFBFBD>2<><1C> <0B> <0B><0F><0F><05>.<2E>
/<2F> <11> <1E> <1E>u<EFBFBD> %<25># r!c<00><00>y)z@Key press event handler - for widget-specific key press actions.Nr4r@s rr<>z_SelectorWidget._on_key_press r<>r!c<00><00>|jry|jxsd}|jj<00>D]:\}}||j d<02>vs<01>|dk7s<01> |j
j |<03><00><|j|<01>yy)z(Key release event handler and validator.r/r<>r<>N)r:rr<>r<>r<>r<>r<><00>_on_key_releaser<65>s rr<>z_SelectorWidget.on_key_release# sy<00><00> <0F>;<3B>;<3B><17>)<29>)<29>/<2F>r<EFBFBD>C<EFBFBD>%)<29>%><3E>%><3E>%D<>%D<>%F<> /<2F>!<21><15><08><1C>s<EFBFBD>y<EFBFBD>y<EFBFBD><13>~<7E>-<2D>%<25>8<EFBFBD>2C<32><18>K<EFBFBD>K<EFBFBD>'<27>'<27><05>.<2E>  /<2F>
<11> <20> <20><15> '<27> r!c<00><00>y)<02>Key release event handler.Nr4r@s rr<>z_SelectorWidget._on_key_release. r<>r!c<00>V<00>||_|jD]}|j|<01><00>y)z+Set the visibility of the selector artists.N)r<>r<>r<>)rr<>r<>s rr<>z_SelectorWidget.set_visible1 s*<00><00><1F><04> <0A><1A>l<EFBFBD>l<EFBFBD> (<28>F<EFBFBD> <12> <1E> <1E>w<EFBFBD> '<27> (r!c<00><00>|jS)z+Get the visibility of the selector artists.)r<>rs rr<>z_SelectorWidget.get_visible7 s <00><00><13>}<7D>}<7D>r!c<00>D<00>|j<00>|j<00>y)zAClear the selection and set the selector ready to make a new one.N)<02>_clear_without_updater<65>rs rr<>z_SelectorWidget.clear; s<00><00> <0C>"<22>"<22>$<24> <0C> <0B> <0B> r!c<00>4<00>d|_|jd<01>y<00>NF)r<>r<>rs rr<>z%_SelectorWidget._clear_without_update@ s<00><00>$)<29><04>!<21> <0C><18><18><15>r!c<00><<00>t|dd<02>}|jf|zS)z%Tuple of the artists of the selector.<2E>_handles_artistsr4)r<00>_selection_artist)r<00>handles_artistss rr<>z_SelectorWidget.artistsD s'<00><00>"<22>$<24>(:<3A>B<EFBFBD>?<3F><0F><14>&<26>&<26>(<28>?<3F>:<3A>:r!c <00><><00>|j}tj||<02>}|jdi|<01><01>|jr|j <00>yy)z<>
Set the properties of the selector artist.
See the *props* argument in the selector docstring to know which properties are
supported.
Nr4)rr rir<>rgr<>)rror<>s r<00> set_propsz_SelectorWidget.set_propsJ sG<00><00><16>'<27>'<27><06><15>&<26>&<26>u<EFBFBD>f<EFBFBD>5<><05><12><06>
<EFBFBD>
<EFBFBD><1B>U<EFBFBD><1B> <0F><<3C><<3C> <10>K<EFBFBD>K<EFBFBD>M<EFBFBD> r!c <00>0<00>t|d<01>s td<02><00>|jd}tj||<02>}|jD]}|j
di|<01><01><00>|j r|j<00>|jj|<01>y)z<>
Set the properties of the handles selector artist. See the
`handle_props` argument in the selector docstring to know which
properties are supported.
r<>z#This selector doesn't have handles.rNr4) r<><00>NotImplementedErrorr<72>r rir<>rgr<><00> _handle_props)r<00> handle_propsr<73>rYs r<00>set_handle_propsz _SelectorWidget.set_handle_propsW s<><00><00> <17>t<EFBFBD>/<2F>0<>%<25>&K<>L<> L<><15>&<26>&<26>q<EFBFBD>)<29><06><1C>-<2D>-<2D>l<EFBFBD>F<EFBFBD>C<> <0C><1A>+<2B>+<2B> '<27>F<EFBFBD> <16>F<EFBFBD>J<EFBFBD>J<EFBFBD> &<26><1C> &<26> '<27> <0F><<3C><<3C> <10>K<EFBFBD>K<EFBFBD>M<EFBFBD> <0C><1A><1A>!<21>!<21>,<2C>/r!c<00><><00>|jj<00>D<00><02>cgc]\}}|dk7r|dk7r|<02><02>}}}tj||<01><03>ycc}}w)Nr<4E><00>not-applicabler<65>)r<>r<>rr<>)rr<>r<00>value<75>supported_states r<00>_validate_statez_SelectorWidget._validate_stateh sX<00><00>"&<26>";<3B>";<3B>"A<>"A<>"C<><0E><1E>C<EFBFBD><15><12>g<EFBFBD>~<7E>%<25>+;<3B>";<3B> <10><0E><0F><0E> <0A><1A><1A>?<3F>%<25>8<><38> s<00>Ac<00>\<00>|j|<01>|jj|<01>y)a<>
Add a state to define the widget's behavior. See the
`state_modifier_keys` parameters for details.
Parameters
----------
state : str
Must be a supported state of the selector. See the
`state_modifier_keys` parameters for details.
Raises
------
ValueError
When the state is not supported by the selector.
N)r r<>r<><00>rr<>s r<00> add_statez_SelectorWidget.add_stateo s"<00><00>" <0A><1C><1C>U<EFBFBD>#<23> <0C> <0B> <0B><0F><0F><05>r!c<00>\<00>|j|<01>|jj|<01>y)a<>
Remove a state to define the widget's behavior. See the
`state_modifier_keys` parameters for details.
Parameters
----------
state : str
Must be a supported state of the selector. See the
`state_modifier_keys` parameters for details.
Raises
------
ValueError
When the state is not supported by the selector.
N)r r<>r[rs r<00> remove_statez_SelectorWidget.remove_state<74> s$<00><00>" <0A><1C><1C>U<EFBFBD>#<23> <0C> <0B> <0B><1A><1A>5<EFBFBD>!r!)NFNNF)$r0r1r2r r;r<>r<>r<>rBr<>r<>r<>r<>r<>r*r|rqr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rEr<>rrr rrr<>r<>s@rr<>r<>4s<><00><><00>@D<>@E<>!<1C>F)<29>
D<01>,<2C>8;<3B>9<>0$<24>*<1C><15>" <15>*<2A>
<15>,<2C><15>)<29>#<23>
*<2A>&<26>*O<01> (<28>)<29>(<28> <1D><16>
 <20><0E>;<3B><0E>;<3B>
<1A>0<>"9<><1F>("r!r<>c <00><00><00>eZdZdZddddddddddddd<06> <0C>fd<07>
Zddd<08>d <09>Zd
<EFBFBD>Zed <0B><00>Zd <0C>Z <09>fd <0A>Z
d<0E>Z ed<0F><00>Z e jd<10><00>Z d<11>Zd<12>Zd<13>Zd<14>Zd<15>Zd<16>Zed<17><00>Zed<18><00>Zejd<19><00>Zd<1A>Z<17>xZS)<1B> SpanSelectora<72>
Visually select a min/max range on a single axis and call a function with
those values.
To guarantee that the selector remains responsive, keep a reference to it.
In order to turn off the SpanSelector, set ``span_selector.active`` to
False. To turn it back on, set it to True.
Press and release events triggered at the same coordinates outside the
selection will clear the selector, except when
``ignore_event_outside=True``.
Parameters
----------
ax : `~matplotlib.axes.Axes`
onselect : callable with signature ``func(min: float, max: float)``
A callback function that is called after a release event and the
selection is created, changed or removed.
direction : {"horizontal", "vertical"}
The direction along which to draw the span selector.
minspan : float, default: 0
If selection is less than or equal to *minspan*, the selection is
removed (when already existing) or cancelled.
useblit : bool, default: False
If True, use the backend-dependent blitting features for faster
canvas updates. See the tutorial :ref:`blitting` for details.
props : dict, default: {'facecolor': 'red', 'alpha': 0.5}
Dictionary of `.Patch` properties.
onmove_callback : callable with signature ``func(min: float, max: float)``, optional
Called on mouse move while the span is being selected.
interactive : bool, default: False
Whether to draw a set of handles that allow interaction with the
widget after it is drawn.
button : `.MouseButton` or list of `.MouseButton`, default: all buttons
The mouse buttons which activate the span selector.
handle_props : dict, default: None
Properties of the handle lines at the edges of the span. Only used
when *interactive* is True. See `.Line2D` for valid properties.
grab_range : float, default: 10
Distance in pixels within which the interactive tool handles can be activated.
state_modifier_keys : dict, optional
Keyboard modifiers which affect the widget's behavior. Values
amend the defaults, which are:
- "clear": Clear the current shape, default: "escape".
drag_from_anywhere : bool, default: False
If `True`, the widget can be moved by clicking anywhere within its bounds.
ignore_event_outside : bool, default: False
If `True`, the event triggered outside the span selector will be ignored.
snap_values : 1D array-like, optional
Snap the selector edges to the given values.
Examples
--------
>>> import matplotlib.pyplot as plt
>>> import matplotlib.widgets as mwidgets
>>> fig, ax = plt.subplots()
>>> ax.plot([1, 2, 3], [10, 50, 100])
>>> def onselect(vmin, vmax):
... print(vmin, vmax)
>>> span = mwidgets.SpanSelector(ax, onselect, 'horizontal',
... props=dict(facecolor='blue', alpha=0.5))
>>> fig.show()
See also: :doc:`/gallery/widgets/span_selector`
rFNr<4E>) <0C>minspanrgro<00>onmove_callback<63> interactiverr<00>
grab_ranger<EFBFBD><00>drag_from_anywhere<72>ignore_event_outside<64> snap_valuesc <00><00><01>| <0C>tdddd<02><03>} t<00>|<00> |||| | <0C><04>|<06> tdd<06><07>}|j|d<||_d|_||_||_||_| |_ ||_
d|_ | |_ ||_ |j||d <09>
<EFBFBD>d |jd d <0A>it!j"|
t$<00><00>|_|jr$ddg|_|j+|j&<00>d|_y)Nr<4E>r
)r<>r<>rjr<>)rgrr<><00>redri)r<><00>alphar~T<><02>_props<70>_initr<74>r<>r<>rFrJ)r<>rsr rg<00> direction<6F>_extents_on_pressrrrr<00> _interactive<76> _edge_handlesrr<00>new_axesr<73>r rirr<00> _edge_order<65>_setup_edge_handlesr8)rrIr<>r"rrgrorrrrrr<>rrrr<>s <20>rr zSpanSelector.__init__<5F> s&<00><><00> <1F> &<26>"&<26>X<EFBFBD>.><3E>.><3E>.><3E>#@<01> <1F> <0E><07><18><12>X<EFBFBD>w<EFBFBD>v<EFBFBD>-@<40> <19> B<01> <11>=<3D><18>5<EFBFBD><03>4<>E<EFBFBD> <20>L<EFBFBD>L<EFBFBD><05>j<EFBFBD><19>"<22><04><0E>!%<25><04><1E>&<26><04><18>.<2E><04><1C><1E><04> <0C>$<24><04><0F>'<27><04><19>!<21><04><1A>"4<><04><1F>$8<><04>!<21> <0C> <0A> <0A>b<EFBFBD><15>d<EFBFBD> <0A>3<> <14>U<EFBFBD>Y<EFBFBD>Y<EFBFBD>{<7B>C<EFBFBD>0<><<3C><13>$<24>$<24>\<5C>6<EFBFBD>:<3A><<3C><04><1A> <10> <1C> <1C> %<25>u<EFBFBD>~<7E>D<EFBFBD> <1C> <10> $<24> $<24>T<EFBFBD>%7<>%7<> 8<>"<22><04>r!rc<00>&<00>d}|s(|j|jd<02><03>jur|j<00>|j<00>d}||_|r|j <00>d|_|j dk(r|j<00>}d\}}n|j<00>}d\}}td|||d<01> <09>}|<02>|j|<02>n'|j<00>|j|j<00>|jj|<08>||_ y)
z*Set SpanSelector to operate on a new Axes.FTrLNr<4E>r<>)rr<00>rr)rar<>)rOrNrZrIr<>r<>r"r0r/rr<>r<00> update_fromr<6D>) rrIr r!<00> reconnect<63>trans<6E>wrW<00> rect_artists rr&zSpanSelector.new_axes
s<><00><00><19> <09> <10>D<EFBFBD>K<EFBFBD>K<EFBFBD>r<EFBFBD>}<7D>}<7D>$<24>}<7D>'?<3F>'F<>'F<>F<><13>{<7B>{<7B>&<26><14>&<26>&<26>(<28><1C>I<EFBFBD><14><04><07> <14> <10> '<27> '<27> )<29>%*<2A><04>!<21> <0F>><3E>><3E>\<5C> )<29><16>*<2A>*<2A>,<2C>E<EFBFBD><17>D<EFBFBD>A<EFBFBD>q<EFBFBD><16>*<2A>*<2A>,<2C>E<EFBFBD><17>D<EFBFBD>A<EFBFBD>q<EFBFBD><1F><06><01>1<EFBFBD><05>u<EFBFBD>M<> <0B> <11> <1D> <17> <1E> <1E>v<EFBFBD> &<26> <11> #<23> #<23> /<2F> <17> #<23> #<23>D<EFBFBD>$:<3A>$:<3A> ;<3B> <0C><07><07><19><19>+<2B>&<26>!,<2C><04>r!c<00><><00>|jdk(r|jj<00>}n|jj<00>}t |j||j||j
<00><02>|_y)Nr<4E>)r"<00>
line_propsrg)r"rIrtrr<00>ToolLineHandlesrgr%)rro<00> positionss rr(z SpanSelector._setup_edge_handles5
sY<00><00> <0F>><3E>><3E>\<5C> )<29><1C><07><07>*<2A>*<2A>,<2C>I<EFBFBD><1C><07><07>*<2A>*<2A>,<2C>I<EFBFBD>,<2C>T<EFBFBD>W<EFBFBD>W<EFBFBD>i<EFBFBD>7;<3B>~<7E>~<7E>8=<3D>59<35>\<5C>\<5C>C<01><04>r!c<00>H<00>|j<00>|jjSyrh)r%r<>rs rr<>zSpanSelector._handles_artists@
s#<00><00> <0F> <1D> <1D> )<29><17>%<25>%<25>-<2D>-<2D> -<2D>r!c<00>.<00>|rD|jdk(rtjjntjj}ntjj
}|j jd<02><03>jj|<02>y)z<Update the canvas cursor based on direction of the selector.r<>TrLN)
r"r
<00>Cursors<72>RESIZE_HORIZONTAL<41>RESIZE_VERTICAL<41>POINTERrIrNrO<00>
set_cursor)r<00>enabledr<64>s r<00> _set_cursorzSpanSelector._set_cursorG
so<00><00> <12><1D><1E><1E><<3C>7<>$<24>+<2B>+<2B>=<3D>=<3D>#<23>+<2B>+<2B>;<3B>;<3B> <13>#<23>*<2A>*<2A>2<>2<>F<EFBFBD> <0C><07><07><1A><1A><04><1A>%<25>,<2C>,<2C>7<>7<><06>?r!c<00>v<00><01>t<00>|<00><00>t|dd<02>r|jd|j<00>yy)Nr$Frr)rsr<>rrV<00>_hover)rr<>s <20>rr<>z#SpanSelector.connect_default_eventsR
s4<00><><00> <0A><07>&<26>(<28> <12>4<EFBFBD><1E><15> /<2F> <10> <1E> <1E>4<>d<EFBFBD>k<EFBFBD>k<EFBFBD> B<> 0r!c<00><><00>|jd<01>|jr,|jj<00>r|j |<01>nd|_|j
<00> |js|j <00>|j|<01>\}}|jdk(r|n|}|j
<00>.|js"d|_
|j||f<02>d|_
y|jd<01>y)r<>TNr<4E>F) r<r$rr<><00>_set_active_handler8r<>rdr"rr<><00> _set_extentsr<73>)rrAr]r^rs rr<>zSpanSelector._pressX
s<><00><00> <0C><18><18><14><1E> <0F> <1C> <1C><14>!7<>!7<>!C<>!C<>!E<> <10> #<23> #<23>E<EFBFBD> *<2A>"&<26>D<EFBFBD> <1F> <0F> <1E> <1E> &<26>d<EFBFBD>.?<3F>.?<3F> <10>K<EFBFBD>K<EFBFBD>M<EFBFBD><1B>,<2C>,<2C>U<EFBFBD>3<> <0C><05>u<EFBFBD><19>^<5E>^<5E>|<7C>3<>E<EFBFBD><15><01> <0F> <1E> <1E> &<26>t<EFBFBD>/H<>/H<>"<22>D<EFBFBD>M<EFBFBD> <10> <1D> <1D>q<EFBFBD>!<21>f<EFBFBD> %<25>!<21>D<EFBFBD>M<EFBFBD><15> <11> <1C> <1C>T<EFBFBD> "<22>r!c<00><00>|jS)z;Direction of the span selector: 'vertical' or 'horizontal'.<2E><01>
_directionrs rr"zSpanSelector.directionu
<00><00><00><14><EFBFBD><EFBFBD>r!c<00><><00>tjddg|<01><03>t|d<04>r<>||jk7r<>|jj <00>|j r|jj <00>||_|j|j<00>|j r|j|j<00>yy||_y)z'Set the direction of the span selector.r<>r<><00>r"rDN) rr<>r<>rDrr[r$r%r&rIr(r)rr"s rr"zSpanSelector.directionz
s<><00><00> <0A><1A><1A>L<EFBFBD>*<2A>5<><19>K<> <12>4<EFBFBD><1C> &<26>9<EFBFBD><04><0F><0F>+G<> <10> "<22> "<22> )<29> )<29> +<2B><13> <20> <20><14>"<22>"<22>)<29>)<29>+<2B>'<27>D<EFBFBD>O<EFBFBD> <10>M<EFBFBD>M<EFBFBD>$<24>'<27>'<27> "<22><13> <20> <20><14>(<28>(<28><14>);<3B>);<3B><<3C>!<21>(<28>D<EFBFBD>Or!c<00><><00>|jd<01>|js|jjd<01>|j<00>|j
r |j ry|j\}}||z
}||jkr7|jd<01>|j
r|j||<03>d|_n|j||<03>d|_|j<00>d|_y)r<>FNT) r<r$rr<>r8r<>r<00>extentsrr<>r<>)rrArArB<00>spans rr|zSpanSelector._release<73>
s<><00><00> <0C><18><18><15><1F><13> <20> <20> <10> "<22> "<22> .<2E> .<2E>u<EFBFBD> 5<> <10> <1F> <1F> '<27>D<EFBFBD>,E<>,E<><14>)<29>)<29> <12><19>\<5C>\<5C>
<EFBFBD><04>d<EFBFBD><13>d<EFBFBD>{<7B><04> <0F>4<EFBFBD><<3C><<3C> <1F> <10> <1C> <1C>U<EFBFBD> #<23><13>(<28>(<28><14> <0A> <0A>d<EFBFBD>D<EFBFBD>)<29>(-<2D>D<EFBFBD> %<25> <10>M<EFBFBD>M<EFBFBD>$<24><04> %<25>(,<2C>D<EFBFBD> %<25> <0C> <0B> <0B> <0A>"<22><04><1B>r!c<00><><00>|j|<01>ry|j<00> |jsy|jj |j
|j <00>\}}|j||jk<00>y)z/Update the canvas cursor if it's over a handle.N) rBr8r<>r%<00>closestrbrcr<r)rrAr<00>e_dists rr>zSpanSelector._hover<65>
se<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12> <0F> <1E> <1E> *<2A>$<24>2K<32>2K<32>
<13><18>&<26>&<26>.<2E>.<2E>u<EFBFBD>w<EFBFBD>w<EFBFBD><05><07><07>@<40> <09><01>6<EFBFBD> <0C><18><18><16>4<EFBFBD>?<3F>?<3F>2<>3r!c<00>L<00>|j|<01>\}}|jdk(r|}|jj}n|}|jj}|j
dk(r+|j <00>|j \}}||z
}||z }||z }ne|j
r3|j
dk7r$|j \}}|j
dk(r|}n)|}n&|jr |jry||}}||kDr||}}|j||f<02>|j<00>|j||<07>y)zMotion notify event handler.r<><00>CNrFF) rdr"r<>r]r^r8r#rr<>rAr) rrAr]r^r<00>vpressrArB<00>dvs rr<>zSpanSelector._onmove<76>
s4<00><00><1C>,<2C>,<2C>U<EFBFBD>3<> <0C><05>u<EFBFBD> <0F>><3E>><3E>\<5C> )<29><15>A<EFBFBD><19>%<25>%<25>+<2B>+<2B>F<EFBFBD><15>A<EFBFBD><19>%<25>%<25>+<2B>+<2B>F<EFBFBD>
<10> <1E> <1E>#<23> %<25>$<24>*@<40>*@<40>*L<><1D>/<2F>/<2F>J<EFBFBD>D<EFBFBD>$<24><12>V<EFBFBD><1A>B<EFBFBD> <10>B<EFBFBD>J<EFBFBD>D<EFBFBD> <10>B<EFBFBD>J<EFBFBD>D<EFBFBD><12> <20> <20>T<EFBFBD>%8<>%8<>C<EFBFBD>%?<3F><1D>/<2F>/<2F>J<EFBFBD>D<EFBFBD>$<24><13>"<22>"<22>e<EFBFBD>+<2B><18><04><18><04>
<14>(<28>(<28>T<EFBFBD>-F<>-F<><16><1F><11>$<24>D<EFBFBD><13>d<EFBFBD>{<7B>!<21>4<EFBFBD>d<EFBFBD><04> <0C><19><19>4<EFBFBD><14>,<2C>'<27> <0F> <1F> <1F> +<2B> <10> <20> <20><14>t<EFBFBD> ,<2C>r!c<00><00>||kDr||}}|jdk(r:|jj|<01>|jj||z
<00>y|jj |<01>|jj ||z
<00>y)Nr<4E>)r"r<00>set_xr<00>set_yr<00>rrArBs r<00> _draw_shapezSpanSelector._draw_shape<70>
sv<00><00> <0F>$<24>;<3B><1D>t<EFBFBD>$<24>D<EFBFBD> <0F>><3E>><3E>\<5C> )<29> <10> "<22> "<22> (<28> (<28><14> .<2E> <10> "<22> "<22> ,<2C> ,<2C>T<EFBFBD>D<EFBFBD>[<5B> 9<> <10> "<22> "<22> (<28> (<28><14> .<2E> <10> "<22> "<22> -<2D> -<2D>d<EFBFBD>T<EFBFBD>k<EFBFBD> :r!c<00><><00>|jj|j|j<00>\}}d|jvrd|_nh||j kDrEd|_|jr*|j|<01>rd|_|j|_
nd|_y|j||_|j|_
y)<04>;Set active handle based on the location of the mouse event.r<>rON) r%rLrbrcr<>r8rr<00> _containsrIr#r')rrA<00>e_idxrMs rr@zSpanSelector._set_active_handle<6C>
s<><00><00><1D>*<2A>*<2A>2<>2<>5<EFBFBD>7<EFBFBD>7<EFBFBD>E<EFBFBD>G<EFBFBD>G<EFBFBD>D<> <0A><05>v<EFBFBD> <12>T<EFBFBD>[<5B>[<5B> <20>"%<25>D<EFBFBD> <1F> <13>d<EFBFBD>o<EFBFBD>o<EFBFBD> %<25>"&<26>D<EFBFBD> <1F><13>&<26>&<26>4<EFBFBD>><3E>><3E>%<25>+@<40>&)<29><04>#<23>)-<2D><1C><1C><04>&<26>&*<2A><04>#<23><16>#'<27>"2<>"2<>5<EFBFBD>"9<>D<EFBFBD> <1F>"&<26><1C><1C><04>r!c<00>B<00>|jj|d<01><02>dS<00>z)Return True if event is within the patch.r)<01>radius<75>rr<>r@s rrYzSpanSelector._contains <00>#<00><00><13>%<25>%<25>.<2E>.<2E>u<EFBFBD>Q<EFBFBD>.<2E>?<3F><01>B<>Br!c<00><><00><01><02>tjtjtj<00><01><00><00>dz<00>t <00><02>fd<02>|D<00><00>S)z2Snap values to a given array values (snap_values).g<11>-<2D><><EFBFBD>q=c3<00><><00>K<00>|]F}<01>tj<00>|z
tj|<01><00>zz<00>j<00><00><01><00>Hy<00>wr)r<>r<><00>signr<6E>)r<>r<00>epsrs <20><>rr<>z%SpanSelector._snap.<locals>.<genexpr> sF<00><><00><><00><1D><11> <18><02><06><06>{<7B>Q<EFBFBD><EFBFBD><12><17><17><11><1A>c<EFBFBD>1A<31>A<>B<>I<>I<>K<> L<><1D>s<00>A A)r<>rFr<><00>diffr<66>)<03>valuesrrcs `@r<00>_snapzSpanSelector._snap sD<00><><00><11>f<EFBFBD>f<EFBFBD>R<EFBFBD>V<EFBFBD>V<EFBFBD>B<EFBFBD>G<EFBFBD>G<EFBFBD>K<EFBFBD>0<>1<>2<>U<EFBFBD>:<3A><03><14><1D><1B><1D><1D> r!c<00> <00>|jdk(r;|jj<00>}||jj<00>z}||fS|jj <00>}||jj <00>z}||fS)z<>
(float, float)
The values, in data coordinates, for the start and end points of the current
selection. If there is no selection then the start and end values will be
the same.
r<>)r"rr<00> get_widthr<00>
get_heightrUs rrIzSpanSelector.extents s<><00><00> <10>><3E>><3E>\<5C> )<29><17>)<29>)<29>/<2F>/<2F>1<>D<EFBFBD><17>$<24>0<>0<>:<3A>:<3A><<3C><<3C>D<EFBFBD><14>T<EFBFBD>z<EFBFBD><19><18>)<29>)<29>/<2F>/<2F>1<>D<EFBFBD><17>$<24>0<>0<>;<3B>;<3B>=<3D>=<3D>D<EFBFBD><13>T<EFBFBD>z<EFBFBD>r!c<00>4<00>|j|<01>d|_y<00>NT)rAr<><00>rrIs rrIzSpanSelector.extents% s<00><00> <0C><19><19>'<27>"<22>$(<28><04>!r!c<00><<00>|j<00>%t|j||j<00><00>}|j|<01>|jr%|j
j |j<00>|j|j<00>|j<00>yr) rr<>rfrVr$r%<00>set_datarIr<>r<>r<>rls rrAzSpanSelector._set_extents* su<00><00> <0F> <1B> <1B> '<27><1B>D<EFBFBD>J<EFBFBD>J<EFBFBD>w<EFBFBD><04>0@<40>0@<40>A<>B<>G<EFBFBD><18><04><18><18>'<27>"<22> <0F> <1C> <1C> <10> <1E> <1E> '<27> '<27><04> <0C> <0C> 5<> <0C><18><18><14><1D><1D>'<27> <0C> <0B> <0B> r!)r0r1r2r3r r&r(rEr<>r<r<>r<>r"rJr|r>r<>rVr@rY<00> staticmethodrfrIrAr<>r<>s@rrr<00> s<><00><><00>P<08>d<=<3D>e<EFBFBD><1B>T<EFBFBD>u<EFBFBD><1C>4<EFBFBD>B<EFBFBD>%)<29>e<EFBFBD>&+<2B><14> +#<23>Z&*<2A><15>-<2D>: C<01><0E><16><0E><16> @<01>C<01> <15>:<0E><1F><0E><1F><0F><15><15> (<28><16> (<28><15>> 4<>*<15>X;<3B>.<2E>4C<01><12><1D><12><1D><0E> <1A><0E> <1A> <0A>^<5E>^<5E>)<29><14>)<29> r!rc<00>l<00>eZdZdZddd<04>d<05>Zed<06><00>Zed<07><00>Zed<08><00>Zd <09>Z d
<EFBFBD>Z
d <0B>Z d <0C>Z d <0A>Z y)r2a`
Control handles for canvas tools.
Parameters
----------
ax : `~matplotlib.axes.Axes`
Matplotlib Axes where tool handles are displayed.
positions : 1D array
Positions of handles in data coordinates.
direction : {"horizontal", "vertical"}
Direction of handles, either 'vertical' or 'horizontal'
line_props : dict, optional
Additional line properties. See `.Line2D`.
useblit : bool, default: True
Whether to use blitting for faster drawing (if supported by the
backend). See the tutorial :ref:`blitting`
for details.
NT)r1rgc<00><><00>||_tjddg|<03><03>||_i|<04>|ni<00>d|d<05><02>}|jdk(r |j
n |j }|D<00>cgc] }||fi|<04><01><01><02> c}|_ycc}w)Nr<4E>r<>rGF)r<>r~)rIrr<>rDr"r<>r<><00>_artists)rrIr3r"r1rg<00>line_fun<75>ps rr zToolLineHandles.__init__J s<><00><00><14><04><07> <0C><1A><1A>L<EFBFBD>*<2A>5<><19>K<>#<23><04><0F>
<EFBFBD>'<27>3<>z<EFBFBD><12>
<EFBFBD><1C><1F>
<EFBFBD>
<EFBFBD> "&<26><1E><1E><<3C>!?<3F>2<EFBFBD>:<3A>:<3A>R<EFBFBD>Z<EFBFBD>Z<EFBFBD><08><E<>F<>q<EFBFBD><18>!<21>2<>z<EFBFBD>2<>F<><04> <0A><>Fs<00> A9c<00>,<00>t|j<00>Sr)r<>rrrs rr<>zToolLineHandles.artists[ s<00><00><14>T<EFBFBD>]<5D>]<5D>#<23>#r!c<00><><00>|jdk(rdnd}|jD<00>cgc]}t||<01><00>d<00><02>c}Scc}w)z,Positions of the handle in data coordinates.r<>rUrVr)r"r<>r)r<00>methodr<64>s rr3zToolLineHandles.positions_ s@<00><00>!%<25><0E><0E>,<2C> ><3E><1B>K<EFBFBD><06>7;<3B>|<7C>|<7C>D<>t<EFBFBD>%<25><07><04>f<EFBFBD>%<25>'<27><01>*<2A>D<>D<><44>Ds<00>Ac<00><00>|jS)z4Direction of the handle: 'vertical' or 'horizontal'.rCrs rr"zToolLineHandles.directione rEr!c<00><><00>|jdk(rdnd}t|j|<01>D]\}}t||<02>||g<02><00>y)z<>
Set x- or y-positions of handles, depending on if the lines are
vertical or horizontal.
Parameters
----------
positions : tuple of length 2
Set the positions of the handle in data coordinates
r<>rrN)r"r<>r<>r)rr3rwr<>rts rrnzToolLineHandles.set_dataj sI<00><00>!%<25><0E><0E>,<2C> ><3E><1B>K<EFBFBD><06><1A>4<EFBFBD><<3C><<3C><19>3<> *<2A>G<EFBFBD>D<EFBFBD>!<21> !<21>G<EFBFBD>D<EFBFBD>&<26> !<21>1<EFBFBD>a<EFBFBD>&<26> )<29> *r!c<00>H<00>|jD]}|j|<01><00>y)z/Set the visibility state of the handles artist.N)r<>r<><00>rr r<>s rr<>zToolLineHandles.set_visiblex s#<00><00><1A>l<EFBFBD>l<EFBFBD> &<26>F<EFBFBD> <12> <1E> <1E>u<EFBFBD> %<25> &r!c<00>H<00>|jD]}|j|<01><00>y)z-Set the animated state of the handles artist.N)r<><00> set_animatedr{s rr}zToolLineHandles.set_animated} s#<00><00><1A>l<EFBFBD>l<EFBFBD> '<27>F<EFBFBD> <12> <1F> <1F><05> &<26> 'r!c<00>F<00>|jD]}|j<00><00>y)z*Remove the handles artist from the figure.N)rrr[)rr<>s rr[zToolLineHandles.remove<76> s<00><00><1A>m<EFBFBD>m<EFBFBD> <1C>F<EFBFBD> <12>M<EFBFBD>M<EFBFBD>O<EFBFBD> r!c <00><><00>|jdk(rdtj|jD<00>cgc],}|jj
j |df<02>d<00><02>.c}<03>}t||z
<00>}nctj|jD<00>cgc],}|jj
j d|f<02>d<00><02>.c}<03>}t||z
<00>}tj|<05>}|||fScc}wcc}w)ar
Return index and pixel distance to closest handle.
Parameters
----------
x, y : float
x, y position from which the distance will be calculated to
determinate the closest handle
Returns
-------
index, distance : index of the handle and its distance from
position x, y
r<>rr) r"r<>r.r3rIr_rar<>r<>)rrbrcrt<00>p_pts<74>distr<74>s rrLzToolLineHandles.closest<73> s<><00><00> <10>><3E>><3E>\<5C> )<29><16>H<EFBFBD>H<EFBFBD>@D<><0E><0E><12>;<<3C><04><07><07>!<21>!<21>+<2B>+<2B>Q<EFBFBD><01>F<EFBFBD>3<>A<EFBFBD>6<><12><13>E<EFBFBD><17>u<EFBFBD>q<EFBFBD>y<EFBFBD>><3E>D<EFBFBD><16>H<EFBFBD>H<EFBFBD>@D<><0E><0E><12>;<<3C><04><07><07>!<21>!<21>+<2B>+<2B>Q<EFBFBD><01>F<EFBFBD>3<>A<EFBFBD>6<><12><13>E<EFBFBD><17>u<EFBFBD>q<EFBFBD>y<EFBFBD>><3E>D<EFBFBD><12> <09> <09>$<24><0F><05><14>d<EFBFBD>5<EFBFBD>k<EFBFBD>!<21>!<21><><12><>
s <00>1C3<08>1C8)r0r1r2r3r rEr<>r3r"rnr<>r}r[rLr4r!rr2r26 sn<00><00><08>&@D<01><1D>G<01>"<0E>$<24><0E>$<24><0E>E<01><0E>E<01>
<0E><1F><0E><1F> *<2A>&<26>
'<27>
<1C>
"r!r2c<00>j<00>eZdZdZdddd<05>d<06>Zed<07><00>Zed<08><00>Zed <09><00>Zdd
<EFBFBD>Z d <0B>Z
d <0C>Z d <0A>Z y)<0F> ToolHandlesaO
Control handles for canvas tools.
Parameters
----------
ax : `~matplotlib.axes.Axes`
Matplotlib Axes where tool handles are displayed.
x, y : 1D arrays
Coordinates of control handles.
marker : str, default: 'o'
Shape of marker used to display handle. See `~.pyplot.plot`.
marker_props : dict, optional
Additional marker properties. See `.Line2D`.
useblit : bool, default: True
Whether to use blitting for faster drawing (if supported by the
backend). See the tutorial :ref:`blitting`
for details.
r'NT<4E>r<>r rgc<00><><00>||_|ddddddd<07>tj|tj<00><00>}t||fd|i|<07><01>|_|jj |j
<00>y) N<>r.rzriF<>
_nolegend_)r<><00>
markersize<EFBFBD>markerfacecolor<6F> linestylerr<>rvr~)rIr rir<00>
_alias_map<EFBFBD>_markers<72>add_line)rrIrbrcr<>r rgros rr zToolHandles.__init__<5F> sp<00><00><14><04><07>!<21><11>s<EFBFBD>$<24>s<EFBFBD>u<EFBFBD>&<26>L<01><19>)<29>)<29>,<2C><06>8I<38>8I<38>J<>L<01><05><1F>q<EFBFBD>!<21>?<3F>g<EFBFBD>?<3F><15>?<3F><04> <0A> <0C><07><07><18><18><14><1D><1D>'r!c<00>6<00>|jj<00>Sr)r<>rUrs rrbz ToolHandles.x<> <00><00><00><13>}<7D>}<7D>&<26>&<26>(<28>(r!c<00>6<00>|jj<00>Sr)r<>rVrs rrcz ToolHandles.y<> r<>r!c<00><00>|jfSr)r<>rs rr<>zToolHandles.artists<74> s<00><00><14> <0A> <0A> <20> r!c<00>p<00>|<02>|}tj||g<02>}|jj|<01>y)z!Set x and y positions of handles.N)r<>r.r<>rn)r<00>ptsrcrbs rrnzToolHandles.set_data<74> s0<00><00> <0C>=<3D><13>A<EFBFBD><14>(<28>(<28>A<EFBFBD>q<EFBFBD>6<EFBFBD>"<22>C<EFBFBD> <0C> <0A> <0A><1E><1E>s<EFBFBD>#r!c<00>:<00>|jj|<01>yr)r<>r<>r s rr<>zToolHandles.set_visible<6C> s<00><00> <0C> <0A> <0A>!<21>!<21>#<23>&r!c<00>:<00>|jj|<01>yr)r<>r}r s rr}zToolHandles.set_animated<65> s<00><00> <0C> <0A> <0A>"<22>"<22>3<EFBFBD>'r!c<00> <00>tj|j|jg<02>}|jj
j |<03>}|||gz
}tj|j<00>}tj|<05>}|||fS)z1Return index and pixel distance to closest index.)
r<EFBFBD><00> column_stackrbrcrIr_ra<00>hypot<6F>Tr<54>)rrbrcr<>rdr<><00> min_indexs rrLzToolHandles.closest<73> sr<00><00><10>o<EFBFBD>o<EFBFBD>t<EFBFBD>v<EFBFBD>v<EFBFBD>t<EFBFBD>v<EFBFBD>v<EFBFBD>.<2E>/<2F><03><12>g<EFBFBD>g<EFBFBD><1F><1F>)<29>)<29>#<23>.<2E><03><12>a<EFBFBD><11>V<EFBFBD>|<7C><04><11>x<EFBFBD>x<EFBFBD><14><16><16> <20><04><16>I<EFBFBD>I<EFBFBD>d<EFBFBD>O<EFBFBD> <09><18>$<24>y<EFBFBD>/<2F>)<29>)r!r) r0r1r2r3r rErbrcr<>rnr<>r}rLr4r!rr<>r<><00> se<00><00><08>&,/<2F>T<EFBFBD>4<EFBFBD>(<28><0E>)<29><0E>)<29><0E>)<29><0E>)<29><0E>!<21><0E>!<21>$<24>'<27>(<28>*r!r<>u
Parameters
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
onselect : function, optional
A callback function that is called after a release event and the
selection is created, changed or removed.
It must have the signature::
def onselect(eclick: MouseEvent, erelease: MouseEvent)
where *eclick* and *erelease* are the mouse click and release
`.MouseEvent`\s that start and complete the selection.
minspanx : float, default: 0
Selections with an x-span less than or equal to *minspanx* are removed
(when already existing) or cancelled.
minspany : float, default: 0
Selections with an y-span less than or equal to *minspanx* are removed
(when already existing) or cancelled.
useblit : bool, default: False
Whether to use blitting for faster drawing (if supported by the
backend). See the tutorial :ref:`blitting`
for details.
props : dict, optional
Properties with which the __ARTIST_NAME__ is drawn. See
`.Patch` for valid properties.
Default:
``dict(facecolor='red', edgecolor='black', alpha=0.2, fill=True)``
spancoords : {"data", "pixels"}, default: "data"
Whether to interpret *minspanx* and *minspany* in data or in pixel
coordinates.
button : `.MouseButton`, list of `.MouseButton`, default: all buttons
Button(s) that trigger rectangle selection.
grab_range : float, default: 10
Distance in pixels within which the interactive tool handles can be
activated.
handle_props : dict, optional
Properties with which the interactive handles (marker artists) are
drawn. See the marker arguments in `.Line2D` for valid
properties. Default values are defined in ``mpl.rcParams`` except for
the default value of ``markeredgecolor`` which will be the same as the
``edgecolor`` property in *props*.
interactive : bool, default: False
Whether to draw a set of handles that allow interaction with the
widget after it is drawn.
state_modifier_keys : dict, optional
Keyboard modifiers which affect the widget's behavior. Values
amend the defaults, which are:
- "move": Move the existing shape, default: no modifier.
- "clear": Clear the current shape, default: "escape".
- "square": Make the shape square, default: "shift".
- "center": change the shape around its center, default: "ctrl".
- "rotate": Rotate the shape around its center between -45° and 45°,
default: "r".
"square" and "center" can be combined. The square shape can be defined
in data or display coordinates as determined by the
``use_data_coordinates`` argument specified when creating the selector.
drag_from_anywhere : bool, default: False
If `True`, the widget can be moved by clicking anywhere within
its bounds.
ignore_event_outside : bool, default: False
If `True`, the event triggered outside the span selector will be
ignored.
use_data_coordinates : bool, default: False
If `True`, the "square" shape of the selector is defined in
data coordinates instead of display coordinates.
<20>__ARTIST_NAME__<5F> rectanglec<00>@<00><00>eZdZdZddddddddddddddd<07> <0A>fd<08> Zed <09><00>Zd
<EFBFBD>Zd <0B>Zd <0C>Z d <0A>Z
ed<0E><00>Z d<0F>Z d<10>Z ed<11><00>Zed<12><00>Zed<13><00>Zed<14><00>Zej$d<15><00>Zed<16><00>Zej$d<17><00>Zd<18>Zd<19>Zd<1A>Zed<1B><00>Z<17>xZS)<1D>RectangleSelectora<72>
Select a rectangular region of an Axes.
For the cursor to remain responsive you must keep a reference to it.
Press and release events triggered at the same coordinates outside the
selection will clear the selector, except when
``ignore_event_outside=True``.
%s
Examples
--------
>>> import matplotlib.pyplot as plt
>>> import matplotlib.widgets as mwidgets
>>> fig, ax = plt.subplots()
>>> ax.plot([1, 2, 3], [10, 50, 100])
>>> def onselect(eclick, erelease):
... print(eclick.xdata, eclick.ydata)
... print(erelease.xdata, erelease.ydata)
>>> props = dict(facecolor='blue', alpha=0.5)
>>> rect = mwidgets.RectangleSelector(ax, onselect, interactive=True,
... props=props)
>>> fig.show()
>>> rect.add_state('square')
See also: :doc:`/gallery/widgets/rectangle_selector`
NrF<>datar<61>) <0A>minspanx<6E>minspanyrgro<00>
spancoordsrrrrr<>rrr<>c <00>Z<00><01>t<00>|<00>||||| |<0F><01>| |_| |_||_d|_d|_d|_|<06>tdddd<04><08>}i|<06>d |ji<01>}|jd
|j<00>|_ |jdi|<06><01>}|jj|<10>||_|j!<00>||_||_t'j(d d g|<07> <0A>||_| |_|j<00>rd|xsij/dd<06>it1j2|
t4<00><00>|_gd<10>|_|j:\}}t=|j|||j6|j<00><11>|_gd<12>|_ |jB\}}t=|j||d|j6|j<00><14>|_"|jF\}}t=|j|g|gd|j6|j<00><14>|_$d|_%d|_&y)N)rgrr<>r<>gg<00>?Trr{rN)r<>r<>r<00>fillr~r<>r<><00>pixels<6C>r<><00>markeredgecolorr<72>)<04>SW<53>SE<53>NE<4E>NW)r rg)<04>W<>S<>E<>Nrr<>r4)'rsr r$rr<00> _rotation<6F>_aspect_ratio_correction<6F>_allow_creationr<6E>rgr<>r<><00> _init_shaperIr<>r<00>_set_aspect_ratio_correctionr<6E>r<>rr<>r<>rr<>r rirr<00> _corner_order<65>cornersr<73><00>_corner_handlesr'<00> edge_centersr%rj<00>_center_handler8r#)rrIr<>r<>r<>rgror<>rrrrr<>rrr<><00>to_draw<61>xc<78>yc<79>xe<78>yer<65>s <20>rr zRectangleSelector.__init__] s<00><><00> <0E><07><18><12>X<EFBFBD>w<EFBFBD>v<EFBFBD>-@<40>.B<> <19> D<01>(<28><04><19>"4<><04><1F>$8<><04>!<21><1C><04><0E>(+<2B><04>%<25>
$<24><04><1C> <10>=<3D><18>5<EFBFBD>G<EFBFBD>"<22><14>/<2F>E<EFBFBD>3<>5<EFBFBD>3<>*<2A>d<EFBFBD>l<EFBFBD>l<EFBFBD>3<><05><1D> <09> <09>)<29>T<EFBFBD>]<5D>]<5D>;<3B><04> <0A>"<22>$<24>"<22>"<22>+<2B>U<EFBFBD>+<2B><07> <0C><07><07><19><19>'<27>"<22>!(<28><04><1E> <0C>)<29>)<29>+<2B> <20><04> <0A> <20><04> <0A> <0C><1A><1A>F<EFBFBD>H<EFBFBD>-<2D>*<2A>E<>$<24><04><0F>$<24><04><0F> <0F> <1C> <1C>!<21>E<EFBFBD>K<EFBFBD>R<EFBFBD>#4<>#4<>[<5B>'<27>#J<>"@<01><17>(<28>(<28><1C>v<EFBFBD>><3E>"@<01>D<EFBFBD> <1E>":<3A>D<EFBFBD> <1E><19>\<5C>\<5C>F<EFBFBD>B<EFBFBD><02>#.<2E>t<EFBFBD>w<EFBFBD>w<EFBFBD><02>B<EFBFBD><@<40><N<><N<>7;<3B>|<7C>|<7C>$E<01>D<EFBFBD> <20> 4<>D<EFBFBD> <1C><19>&<26>&<26>F<EFBFBD>B<EFBFBD><02>!,<2C>T<EFBFBD>W<EFBFBD>W<EFBFBD>b<EFBFBD>"<22>S<EFBFBD>:><3E>:L<>:L<>59<35>\<5C>\<5C>"C<01>D<EFBFBD> <1E><1A>[<5B>[<5B>F<EFBFBD>B<EFBFBD><02>"-<2D>d<EFBFBD>g<EFBFBD>g<EFBFBD><02>t<EFBFBD>b<EFBFBD>T<EFBFBD>#<23>;?<3F>;M<>;M<>6:<3A>l<EFBFBD>l<EFBFBD>#D<01>D<EFBFBD> <1F>#'<27>D<EFBFBD> <1F>!%<25><04>r!c<00><><00>g|jj<00>|jj<00>|jj<00><01>Sr)r<>r<>r<>r%rs rr<>z"RectangleSelector._handles_artists<74> sF<00><00>-<2D><14>$<24>$<24>,<2C>,<2C>-<2D>t<EFBFBD>/C<>/C<>/K<>/K<>-<2D><15>#<23>#<23>+<2B>+<2B>-<2D> -r!c <00><00>tdddd<04>|<01><01>S)N<>r*rrFrj)r<><00>rotation_point)rr<>s rr<>zRectangleSelector._init_shape<70> s!<00><00><18>;<3B>u<EFBFBD>(0<>;<3B>49<34>;<3B> ;r!c<00><00>|jr,|jj<00>r|j|<01>nd|_|j<00> |js|j
r|j <00>|j<00>F|js:|j
r.|j|<01>\}}d|_ ||||f|_
d|_ n|jd<03>|j|_ |j|_|j<00>y)r<>NFT)r$rr<>r@r8r<>r<>rrdr<>rIr<>r#r<><00>_rotation_on_pressr<73>)rrArbrcs rr<>zRectangleSelector._press<73> s<><00><00> <10> <1C> <1C><14>!7<>!7<>!C<>!C<>!E<> <10> #<23> #<23>E<EFBFBD> *<2A>"&<26>D<EFBFBD> <1F> <11> <20> <20> (<28><04>0A<30>0A<30><14>$<24>$<24> <10>K<EFBFBD>K<EFBFBD>M<EFBFBD> <10> <1F> <1F> '<27><04>0I<30>0I<30><14>$<24>$<24><17>(<28>(<28><15>/<2F>D<EFBFBD>A<EFBFBD>q<EFBFBD>!<21>D<EFBFBD>M<EFBFBD><1C>a<EFBFBD><11>A<EFBFBD>:<3A>D<EFBFBD>L<EFBFBD> <20>D<EFBFBD>M<EFBFBD> <10> <1C> <1C>T<EFBFBD> "<22>!%<25><1C><1C><04><1E>"&<26>.<2E>.<2E><04><1F> <0C>)<29>)<29>+<2B>r!c<00><><00>|js|jjd<01>|j<00>|jr |j
ry|j \}}}}||j_||j_ |jjj||g<02>}|\|j_ |j_||j_||j_ |jjj||g<02>}|\|j_ |j_|j dk(rmt#|jj|jjz
<00>}t#|jj|jjz
<00>} n<>|j dk(rmt#|jj|jjz
<00>}t#|jj|jjz
<00>} n#t%j&ddg|j <00><05>|j(ks |j*krC|jr&|j-|j|j<00>|j/<00>n-|j-|j|j<00>d|_|j1<00>d|_d|_y)r<>FNr<4E>r<>r<>T)r$rr<>r8r<>rrIr<>r]r^rIr_rarbrcr<>r<>r<>rr<>r<>r<>r<>r<>r<>r#)
rrAr<>r<>r<>r<><00>xy0<79>xy1<79>spanx<6E>spanys
rr|zRectangleSelector._release<73> sV<00><00><13> <20> <20> <10> "<22> "<22> .<2E> .<2E>u<EFBFBD> 5<> <10> <1F> <1F> '<27>D<EFBFBD>,E<>,E<><14>)<29>)<29> <12><1E><1C><1C><0E><02>B<EFBFBD><02>B<EFBFBD>!#<23><04><18><18><1E>!#<23><04><18><18><1E><12>g<EFBFBD>g<EFBFBD><1F><1F>)<29>)<29>2<EFBFBD>r<EFBFBD>(<28>3<><03>14<31>.<2E><04><18><18><1A>D<EFBFBD>,<2C>,<2C>.<2E>#%<25><04><1A><1A> <20>#%<25><04><1A><1A> <20><12>g<EFBFBD>g<EFBFBD><1F><1F>)<29>)<29>2<EFBFBD>r<EFBFBD>(<28>3<><03>58<35>2<><04><1A><1A><1C>d<EFBFBD>0<>0<>2<> <10>?<3F>?<3F>f<EFBFBD> $<24><17><04>(<28>(<28>.<2E>.<2E><14>1C<31>1C<31>1I<31>1I<31>I<>J<>E<EFBFBD><17><04>(<28>(<28>.<2E>.<2E><14>1C<31>1C<31>1I<31>1I<31>I<>J<>E<EFBFBD> <11>_<EFBFBD>_<EFBFBD><08> (<28><17><04>(<28>(<28>*<2A>*<2A>T<EFBFBD>-?<3F>-?<3F>-A<>-A<>A<>B<>E<EFBFBD><17><04>(<28>(<28>*<2A>*<2A>T<EFBFBD>-?<3F>-?<3F>-A<>-A<>A<>B<>E<EFBFBD> <10> <1E> <1E><06><08>1<>*.<2E>/<2F>/<2F> ;<3B> <11>D<EFBFBD>M<EFBFBD>M<EFBFBD> !<21>U<EFBFBD>d<EFBFBD>m<EFBFBD>m<EFBFBD>%;<3B><13>(<28>(<28><14> <0A> <0A>d<EFBFBD>.<2E>.<2E><04>0B<30>0B<30>C<> <10> &<26> &<26> (<28> <10>M<EFBFBD>M<EFBFBD>$<24>*<2A>*<2A>D<EFBFBD>,><3E>,><3E> ?<3F>(,<2C>D<EFBFBD> %<25> <0C> <0B> <0B> <0A>"<22><04><1B>!%<25><04><1E>r!c<00>< <00>|j}|j}d|vxr|j|jv}|jdk(}|jxr| }|j |<01>\}}|rh|j <00>j <00>} | j||g<02>\}}| j|j|jf<02>\|_|_ ||jz
}
||jz
} d} |jr|
| }} n2|j|jz
} |j|jz
}|j\}}}}|r<>|j|jf}|j}||f}tj |d|dz
|d|dz
<00>tj |d|dz
|d|dz
<00>z
}tj"|j$|z<00>|_<00>n<>|<06>r=||z
||z
g}||ddz z||ddz zf}d|v<00>rd|vrm|j|jvrt)| |t*<00> <09>} |jd
vs| | k(r||dz
}||j,z }n<>||dz
}||j,z}nl|ddz }|ddz }|jd d g|jzvrt+||dz
<00>}|jd dg|jzvrt+||dz
<00>}|d|z
|d|z|d|z
|d|zf\}}}}<12>n{d |jvr|}d|jvr|}|jd d g|jzvr|}|jd dg|jzvr|}d|v<00>r|j|jvrt)| |t*<00> <09>} |jd
vs| | k(r;tj.||z
<00>}||t+||z
<00>z|j,z z}<12>n<>tj.||z
<00>}||t+||z
<00>z|j,zz}<10>ne|rE|j\}}}}||jz
}
||jz
} ||
z }||
z }|| z }|| z }<12>nd|_|j2r |j4s |j6sy|j|jg}||dz
dz }
||dz
dz } d|vrtt)| |t*<00> <09>} | | k(r/tj.| <0B>t+|
<EFBFBD>z|j,z } n.tj.|
<EFBFBD>t+| <0B>z|j,z}
d|vr |
dz}
| dz} n|dxx|
z cc<|dxx| z cc<|d|
z
|d|
z|d| z
|d| zf\}}}}||||f|_y)z<>
Motion notify event handler.
This can do one of four things:
- Translate
- Rotate
- Re-size
- Continue the creation of a new shape
r<>rONrrr)rjr<>r<>)r<>r<>r<>r<>r<>r<>)r<>r<>r8r<>rd<00>_get_rotation_transformr`rar]r^r<>rbrcr#rjr<><00>arctan2<6E>rad2degr<67><00>rotationrJr<>r<>rbr<>rr<>r<>rI)rrA<00>
eventpressr<EFBFBD>r<>r<><00>resizer]r^<00>inv_tr<74>dx<64>dy<64>refmax<61>refx<66>refyr<79>r<>r<>r<>r<><00>brY<00>angle<6C> size_on_pressrj<00>hw<68>hhrbs rr<>zRectangleSelector._onmove<76> s
<00><00><1A>%<25>%<25>
<EFBFBD><15> <0B> <0B><05><19>U<EFBFBD>"<22>P<>t<EFBFBD>':<3A>':<3A>d<EFBFBD>>P<>>P<>'P<><06><13>"<22>"<22>c<EFBFBD>)<29><04><15>$<24>$<24>1<>T<EFBFBD><18><06><1B>,<2C>,<2C>U<EFBFBD>3<> <0C><05>u<EFBFBD> <11><19>1<>1<>3<><<3C><<3C>><3E>F<EFBFBD>!<21>+<2B>+<2B>U<EFBFBD>E<EFBFBD>N<EFBFBD>;<3B>L<EFBFBD>E<EFBFBD>5<EFBFBD>17<31>1A<31>1A<31><1B>!<21>!<21>:<3A>#3<>#3<>4<>26<32> .<2E>J<EFBFBD> <1C>j<EFBFBD>.<2E><13>Z<EFBFBD>%<25>%<25> %<25><02> <12>Z<EFBFBD>%<25>%<25> %<25><02><16><06> <0F> %<25> %<25><1B>R<EFBFBD>$<24>D<EFBFBD><19>7<EFBFBD>7<EFBFBD>Z<EFBFBD>\<5C>\<5C>)<29>D<EFBFBD><18>7<EFBFBD>7<EFBFBD>Z<EFBFBD>\<5C>\<5C>)<29>D<EFBFBD><1D>/<2F>/<2F><0E><02>B<EFBFBD><02>B<EFBFBD> <11><1B>!<21>!<21>:<3A>#3<>#3<>4<>A<EFBFBD><14> <0B> <0B>A<EFBFBD><16><05><0E>A<EFBFBD><17>Z<EFBFBD>Z<EFBFBD><01>!<21><04>Q<EFBFBD>q<EFBFBD>T<EFBFBD> <09>1<EFBFBD>Q<EFBFBD>4<EFBFBD><01>!<21><04>9<EFBFBD>5<><17>Z<EFBFBD>Z<EFBFBD><01>!<21><04>Q<EFBFBD>q<EFBFBD>T<EFBFBD> <09>1<EFBFBD>Q<EFBFBD>4<EFBFBD><01>!<21><04>9<EFBFBD>5<>6<>E<EFBFBD><1E>J<EFBFBD>J<EFBFBD>t<EFBFBD>'><3E>'><3E><15>'F<>G<>D<EFBFBD>M<EFBFBD> <13><1F>"<22>W<EFBFBD>b<EFBFBD>2<EFBFBD>g<EFBFBD>.<2E>M<EFBFBD><18>=<3D><11>+<2B>a<EFBFBD>/<2F>/<2F><12>m<EFBFBD>A<EFBFBD>6F<36><11>6J<36>1J<31>K<>F<EFBFBD><18>5<EFBFBD> <20><1B>u<EFBFBD>$<24><1B>*<2A>*<2A>d<EFBFBD>.@<40>.@<40>@<40>!$<24>T<EFBFBD>4<EFBFBD>S<EFBFBD>!9<><06><1B>*<2A>*<2A>j<EFBFBD>8<>F<EFBFBD>d<EFBFBD>N<EFBFBD>"<22>V<EFBFBD>A<EFBFBD>Y<EFBFBD>.<2E><02><1F>$<24>"?<3F>"?<3F>?<3F><02>"<22>V<EFBFBD>A<EFBFBD>Y<EFBFBD>.<2E><02><1F>$<24>"?<3F>"?<3F>?<3F><02>&<26>q<EFBFBD>)<29>A<EFBFBD>-<2D>B<EFBFBD>&<26>q<EFBFBD>)<29>A<EFBFBD>-<2D>B<EFBFBD><1B>*<2A>*<2A>s<EFBFBD>C<EFBFBD>j<EFBFBD>4<EFBFBD>;M<>;M<>.M<>M<> <20><15><16><01><19>!2<>3<><02><1B>*<2A>*<2A>s<EFBFBD>C<EFBFBD>j<EFBFBD>4<EFBFBD>;M<>;M<>.M<>M<> <20><15><16><01><19>!2<>3<><02>"(<28><11>)<29>b<EFBFBD>.<2E>&<26><11>)<29>b<EFBFBD>.<2E>"(<28><11>)<29>b<EFBFBD>.<2E>&<26><11>)<29>b<EFBFBD>.<2E>"B<01><0E><02>B<EFBFBD><02>B<EFBFBD> <17>$<24>-<2D>-<2D>-<2D><1B>B<EFBFBD><16>$<24>-<2D>-<2D>-<2D><1B>B<EFBFBD><17>&<26>&<26>3<EFBFBD><03>*<2A>t<EFBFBD>7I<37>7I<37>*I<>I<><1E>B<EFBFBD><17>&<26>&<26>3<EFBFBD><03>*<2A>t<EFBFBD>7I<37>7I<37>*I<>I<><1E>B<EFBFBD><1B>u<EFBFBD>$<24><1B>*<2A>*<2A>d<EFBFBD>.@<40>.@<40>@<40>!$<24>T<EFBFBD>4<EFBFBD>S<EFBFBD>!9<><06><1B>*<2A>*<2A>j<EFBFBD>8<>F<EFBFBD>d<EFBFBD>N<EFBFBD>!<21>w<EFBFBD>w<EFBFBD>u<EFBFBD>r<EFBFBD>z<EFBFBD>2<><04><1F>$<24><13>R<EFBFBD>"<22>W<EFBFBD><1C>"5<><04>8U<38>8U<38>"U<>U<><02>!<21>w<EFBFBD>w<EFBFBD>u<EFBFBD>r<EFBFBD>z<EFBFBD>2<><04><1F>$<24><13>R<EFBFBD>"<22>W<EFBFBD><1C>"5<><04>8U<38>8U<38>"U<>U<><02> <11>!<21>3<>3<>N<EFBFBD>B<EFBFBD><02>B<EFBFBD><02><16><1A>)<29>)<29>)<29>B<EFBFBD><16><1A>)<29>)<29>)<29>B<EFBFBD> <0E>"<22>H<EFBFBD>B<EFBFBD> <0E>"<22>H<EFBFBD>B<EFBFBD> <0E>"<22>H<EFBFBD>B<EFBFBD> <0E>"<22>H<EFBFBD>B<EFBFBD><1F>D<EFBFBD>N<EFBFBD><16>*<2A>*<2A>t<EFBFBD>/H<>/H<><1C>,<2C>,<2C><16> <20>&<26>&<26>
<EFBFBD>(8<>(8<>9<>F<EFBFBD><17>&<26><11>)<29>#<23>q<EFBFBD>(<28>B<EFBFBD><17>&<26><11>)<29>#<23>q<EFBFBD>(<28>B<EFBFBD><18>5<EFBFBD> <20><1C>T<EFBFBD>4<EFBFBD>S<EFBFBD>1<><06><19>T<EFBFBD>><3E><1B><17><17><12><1B>s<EFBFBD>2<EFBFBD>w<EFBFBD>.<2E><14>1N<31>1N<31>N<>B<EFBFBD><1B><17><17><12><1B>s<EFBFBD>2<EFBFBD>w<EFBFBD>.<2E><14>1N<31>1N<31>N<>B<EFBFBD><18>5<EFBFBD> <20><12>a<EFBFBD><07><02><12>a<EFBFBD><07><02><17>q<EFBFBD> <09>R<EFBFBD><0F> <09><16>q<EFBFBD> <09>R<EFBFBD><0F> <09>$<24>Q<EFBFBD>i<EFBFBD>"<22>n<EFBFBD>f<EFBFBD>Q<EFBFBD>i<EFBFBD>"<22>n<EFBFBD>$<24>Q<EFBFBD>i<EFBFBD>"<22>n<EFBFBD>f<EFBFBD>Q<EFBFBD>i<EFBFBD>"<22>n<EFBFBD>><3E>N<EFBFBD>B<EFBFBD><02>B<EFBFBD><02><1A>2<EFBFBD>r<EFBFBD>2<EFBFBD>~<7E><04> r!c<00>J<00>|jj<00>jSr)r<00>get_bbox<6F>boundsrs r<00>
_rect_bboxzRectangleSelector._rect_bbox<6F> s<00><00><13>%<25>%<25>.<2E>.<2E>0<>7<>7<>7r!c<00><><00>|jj<00>}||j_|jrd|_y||_y)Nr)rI<00>_get_aspect_ratiorr<>r<><00>r<00> aspect_ratios rr<>z.RectangleSelector._set_aspect_ratio_correction<6F> s;<00><00><1B>w<EFBFBD>w<EFBFBD>0<>0<>2<> <0C>:F<><04><1E><1E>7<> <0F> %<25> %<25>,-<2D>D<EFBFBD> )<29>,8<>D<EFBFBD> )r!c<00>H<00>|jj<00>}t<00>j|jd |jd <00>j d|<01>j |j<00>j dd|z <00>j|j<00>S<00>Nrr)rIr<>r<00> translaterj<00>scaler<65>r<>r<>s rr<>z)RectangleSelector._get_rotation_transform<72> s~<00><00><1B>w<EFBFBD>w<EFBFBD>0<>0<>2<> <0C><1B>x<EFBFBD>z<EFBFBD>#<23>#<23>T<EFBFBD>[<5B>[<5B><11>^<5E>O<EFBFBD>d<EFBFBD>k<EFBFBD>k<EFBFBD>!<21>n<EFBFBD>_<EFBFBD>E<><16><15>q<EFBFBD>,<2C>'<27><17><16><04><0E><0E>'<27><16><15>q<EFBFBD>!<21>l<EFBFBD>*<2A>+<2B><1A><19>D<EFBFBD>K<EFBFBD>K<EFBFBD> )<29> )r!c<00><><00>|j\}}}}|||z||z|f}||||z||zf}|j<00>}|jtj||g<02>j
<00>j
}|d|dfS)ze
Corners of rectangle in data coordinates from lower left,
moving clockwise.
rr<00>r<>r<>rar<>r.r<>) rr<>r<>rr<>r<>r<>rar<>s rr<>zRectangleSelector.corners<72> s<><00><00> !%<25><0F><0F><1D><02>B<EFBFBD><05>v<EFBFBD> <0F><12>e<EFBFBD><1A>R<EFBFBD>%<25>Z<EFBFBD><12> +<2B><02> <0F><12>R<EFBFBD>&<26>[<5B>"<22>v<EFBFBD>+<2B> -<2D><02><18>0<>0<>2<> <09><1A>$<24>$<24>R<EFBFBD>X<EFBFBD>X<EFBFBD>r<EFBFBD>2<EFBFBD>h<EFBFBD>%7<>%9<>%9<>:<3A><<3C><<3C><06><15>a<EFBFBD>y<EFBFBD>&<26><11>)<29>#<23>#r!c<00><00>|j\}}}}|dz }|dz }|||z||z||zf}||z|||z||zf}|j<00>} | jtj||g<02>j
<00>j
}
|
d|
dfS)zk
Midpoint of rectangle edges in data coordinates from left,
moving anti-clockwise.
<20>@rrr<>) rr<>r<>rr<>r.rWr<>r<>rar<>s rr<>zRectangleSelector.edge_centers<72> s<><00><00> !%<25><0F><0F><1D><02>B<EFBFBD><05>v<EFBFBD> <11>B<EFBFBD>J<EFBFBD><01> <12>R<EFBFBD>K<EFBFBD><01> <0F><12>a<EFBFBD><16><12>e<EFBFBD><1A>R<EFBFBD>!<21>V<EFBFBD> +<2B><02> <0F>!<21>V<EFBFBD>R<EFBFBD><12>a<EFBFBD><16><12>f<EFBFBD><1B> ,<2C><02><18>0<>0<>2<> <09><1A>$<24>$<24>R<EFBFBD>X<EFBFBD>X<EFBFBD>r<EFBFBD>2<EFBFBD>h<EFBFBD>%7<>%9<>%9<>:<3A><<3C><<3C><06><15>a<EFBFBD>y<EFBFBD>&<26><11>)<29>#<23>#r!c<00>D<00>|j\}}}}||dz z||dz zfS)z(Center of rectangle in data coordinates.r<>)r<>)rr<>r<>rr<>s rrjzRectangleSelector.center<65> s2<00><00>!%<25><0F><0F><1D><02>B<EFBFBD><05>v<EFBFBD><11>E<EFBFBD>B<EFBFBD>J<EFBFBD><EFBFBD><02>V<EFBFBD>b<EFBFBD>[<5B> 0<>0<>0r!c<00>|<00>|j\}}}}t|||zg<02>\}}t|||zg<02>\}}||||fS)z}
Return (xmin, xmax, ymin, ymax) in data coordinates as defined by the
bounding box before rotation.
)r<>r<>) rr<>r<>rr<>r<>r<>r<>r<>s rrIzRectangleSelector.extents<74> sS<00><00> !%<25><0F><0F><1D><02>B<EFBFBD><05>v<EFBFBD><1B>R<EFBFBD><12>e<EFBFBD><1A>,<2C>-<2D>
<EFBFBD><04>d<EFBFBD><1B>R<EFBFBD><12>f<EFBFBD><1B>-<2D>.<2E>
<EFBFBD><04>d<EFBFBD><13>T<EFBFBD>4<EFBFBD><14>%<25>%r!c<00>z<00>|j|<01>|jrs|jj|j<00>|j
j|j <00>|j\}}|jj|g|g<01>|j|j<00>|j<00>yr) rVr$r<>rnr<>r%r<>rjr<>r<>r<>r<>)rrIrbrcs rrIzRectangleSelector.extents<74> s<><00><00> <0A><18><18><17>!<21> <0F> <1C> <1C> )<29>D<EFBFBD> <20> <20> )<29> )<29>4<EFBFBD><<3C><<3C> 8<> '<27>D<EFBFBD> <1E> <1E> '<27> '<27><14>):<3A>):<3A> ;<3B><17>;<3B>;<3B>D<EFBFBD>A<EFBFBD>q<EFBFBD> <10> <1F> <1F> (<28> (<28>!<21><13>q<EFBFBD>c<EFBFBD> 2<> <0C><18><18><14><1D><1D>'<27> <0C> <0B> <0B> r!c<00>@<00>tj|j<00>S)u<>
Rotation in degree in interval [-45°, 45°]. The rotation is limited in
range to keep the implementation simple.
)r<>r<>r<>rs rr<>zRectangleSelector.rotation<6F> s<00><00> <12>z<EFBFBD>z<EFBFBD>$<24>.<2E>.<2E>)<29>)r!c<00>r<00>d|kr2|dkr,tj|<01>|_|j|_yyy)Ni<4E><69><EFBFBD><EFBFBD><EFBFBD>-)r<><00>deg2radr<64>rI)rr s rr<>zRectangleSelector.rotation<6F> s3<00><00> <0F>%<25><<3C>E<EFBFBD>R<EFBFBD>K<EFBFBD><1F>Z<EFBFBD>Z<EFBFBD><05>.<2E>D<EFBFBD>N<EFBFBD><1F><<3C><<3C>D<EFBFBD>L<EFBFBD>(<28><r!c<00><><00>|\}}}}t||g<02>\}}t||g<02>\}} t|jj<00><00>}
t|jj<00><00>} t |
d|<06>}t | d|<08>}t ||
d<00>}t | | d<00>} |j j|<06>|j j|<08>|j j||z
<00>|j j| |z
<00>|j j|j<00>yr<>) r<>rIr<>r<>rJrFrrSrTrr<00> set_angler<65>) rrIr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>s rrVzRectangleSelector._draw_shape<70> s<00><00> <20><0E><02>B<EFBFBD><02>B<EFBFBD><1B>R<EFBFBD><12>H<EFBFBD>%<25>
<EFBFBD><04>d<EFBFBD><1B>R<EFBFBD><12>H<EFBFBD>%<25>
<EFBFBD><04>d<EFBFBD><15>d<EFBFBD>g<EFBFBD>g<EFBFBD>&<26>&<26>(<28>)<29><04><15>d<EFBFBD>g<EFBFBD>g<EFBFBD>&<26>&<26>(<28>)<29><04><12>4<EFBFBD><01>7<EFBFBD>D<EFBFBD>!<21><04><12>4<EFBFBD><01>7<EFBFBD>D<EFBFBD>!<21><04><12>4<EFBFBD><14>a<EFBFBD><17>!<21><04><12>4<EFBFBD><14>a<EFBFBD><17>!<21><04> <0C><1E><1E>$<24>$<24>T<EFBFBD>*<2A> <0C><1E><1E>$<24>$<24>T<EFBFBD>*<2A> <0C><1E><1E>(<28>(<28><14><04><1B>5<> <0C><1E><1E>)<29>)<29>$<24><14>+<2B>6<> <0C><1E><1E>(<28>(<28><14><1D><1D>7r!c<00><><00>|jj|j|j<00>\}}|jj|j|j<00>\}}|j
j|j|j<00>\}}d|j vrd|_y||jdzkrd|_y||jkDr<||jkDr-|jr|j|<01>rd|_yd|_y||kr|j||_y|j||_y)rXr<>rOr)N) r<>rLrbrcr%r<>r<>r8rrrYr<>r')rrA<00>c_idx<64>c_distrZrM<00>m_idx<64>m_dists rr@z$RectangleSelector._set_active_handle<6C> s
<00><00><1D>,<2C>,<2C>4<>4<>U<EFBFBD>W<EFBFBD>W<EFBFBD>e<EFBFBD>g<EFBFBD>g<EFBFBD>F<> <0A><05>v<EFBFBD><1C>*<2A>*<2A>2<>2<>5<EFBFBD>7<EFBFBD>7<EFBFBD>E<EFBFBD>G<EFBFBD>G<EFBFBD>D<> <0A><05>v<EFBFBD><1C>+<2B>+<2B>3<>3<>E<EFBFBD>G<EFBFBD>G<EFBFBD>U<EFBFBD>W<EFBFBD>W<EFBFBD>E<> <0A><05>v<EFBFBD> <11>T<EFBFBD>[<5B>[<5B> <20>"%<25>D<EFBFBD> <1F> <13>d<EFBFBD>o<EFBFBD>o<EFBFBD><01>)<29> )<29>"%<25>D<EFBFBD> <1F> <13>d<EFBFBD>o<EFBFBD>o<EFBFBD> %<25>&<26>4<EFBFBD>?<3F>?<3F>*B<><13>&<26>&<26>4<EFBFBD>><3E>><3E>%<25>+@<40>&)<29><04>#<23>&*<2A><04>#<23><16> <13>f<EFBFBD>_<EFBFBD>"&<26>"4<>"4<>U<EFBFBD>";<3B>D<EFBFBD> <1F>#'<27>"2<>"2<>5<EFBFBD>"9<>D<EFBFBD> r!c<00>B<00>|jj|d<01><02>dSr\r^r@s rrYzRectangleSelector._containsr_r!c<00>j<00>t|jd<01>rq|jjj <00>}|j |jj <00><00>j\}}tj||g<02>Stj|jj<00><00>S)a
Return an array of shape (2, 5) containing the
x (``RectangleSelector.geometry[1, :]``) and
y (``RectangleSelector.geometry[0, :]``) data coordinates of the four
corners of the rectangle starting and ending in the top left corner.
<20> get_verts) r<>rrIr_r`rar<>r<>r<>r.<00>get_data)r<00>xfmrcrbs r<00>geometryzRectangleSelector.geometrys<><00><00> <13>4<EFBFBD>)<29>)<29>;<3B> 7<><16>'<27>'<27>#<23>#<23>,<2C>,<2C>.<2E>C<EFBFBD><16>=<3D>=<3D><14>!7<>!7<>!A<>!A<>!C<>D<>F<>F<>D<EFBFBD>A<EFBFBD>q<EFBFBD><15>8<EFBFBD>8<EFBFBD>Q<EFBFBD><01>F<EFBFBD>#<23> #<23><15>8<EFBFBD>8<EFBFBD>D<EFBFBD>2<>2<>;<3B>;<3B>=<3D>><3E> >r!r)r0r1r2r3r rEr<>r<>r<>r|r<>r<>r<>r<>r<>r<>rjrIrJr<>rVr@rYr<>r<>r<>s@rr<>r<>= s5<00><><00><08>:@&<26>a<EFBFBD><1B>U<EFBFBD><1B><06>t<EFBFBD><02>"<22><05>%)<29>e<EFBFBD>&+<2B>%<25> @&<26>D<0E>-<2D><0E>-<2D>;<3B><15>8.<15>`M&<26>^<0E>8<><0E>8<>9<>)<29><0E>
$<24><0E>
$<24><0E> $<24><0E> $<24><0E>1<><0E>1<>
<0E>&<26><0E>&<26> <0A>^<5E>^<5E>
<16><14>
<16><0E>*<2A><0E>*<2A><0E>_<EFBFBD>_<EFBFBD>(<28><15>(<28>8<>$:<3A>8C<01><0E> ?<3F><0E> ?r!r<><00>ellipsec<00>,<00>eZdZdZd<02>Zd<03>Zed<04><00>Zy)<06>EllipseSelectorao
Select an elliptical region of an Axes.
For the cursor to remain responsive you must keep a reference to it.
Press and release events triggered at the same coordinates outside the
selection will clear the selector, except when
``ignore_event_outside=True``.
%s
Examples
--------
:doc:`/gallery/widgets/rectangle_selector`
c <00><00>tdddi|<01><01>S)Nr<4E>r<>F)rr<>s rr<>zEllipseSelector._init_shape6s<00><00><16><<3C>U<EFBFBD><<3C>e<EFBFBD><<3C><r!c<00>F<00>|\}}}}t||g<02>\}}t||g<02>\}} |||z
dz z|||z
dz zg}
||z
dz } | |z
dz } |
|j_d| z|j_d| z|j_|j
|j_y)Nr<4E>r))r<>rrjrr<>r<>r<>) rrIr<>r<>r<>r<>r<>r<>r<>r<>rjr<>r<>s rrVzEllipseSelector._draw_shape9s<><00><00> <20><0E><02>B<EFBFBD><02>B<EFBFBD><1B>R<EFBFBD><12>H<EFBFBD>%<25>
<EFBFBD><04>d<EFBFBD><1B>R<EFBFBD><12>H<EFBFBD>%<25>
<EFBFBD><04>d<EFBFBD><14><02>R<EFBFBD><07>2<EFBFBD>~<7E>%<25>r<EFBFBD>R<EFBFBD>"<22>W<EFBFBD><02>N<EFBFBD>':<3A>;<3B><06> <11>D<EFBFBD>[<5B>B<EFBFBD> <1E><01> <11>D<EFBFBD>[<5B>B<EFBFBD> <1E><01>(.<2E><04><1E><1E>%<25>'(<28>1<EFBFBD>u<EFBFBD><04><1E><1E>$<24>()<29>A<EFBFBD><05><04><1E><1E>%<25>'+<2B>}<7D>}<7D><04><1E><1E>$r!c<00><><00>|jj\}}|jj}|jj}||dz z
||dz z
||fS)Nr<4E>)rrjrr<>)rrbrcrr<>s rr<>zEllipseSelector._rect_bboxFsX<00><00><13>%<25>%<25>,<2C>,<2C><04><01>1<EFBFBD><14>&<26>&<26>,<2C>,<2C><05><15>'<27>'<27>.<2E>.<2E><06><10>5<EFBFBD>2<EFBFBD>:<3A>~<7E>q<EFBFBD>6<EFBFBD>B<EFBFBD>;<3B><EFBFBD><05>v<EFBFBD>=<3D>=r!N)r0r1r2r3r<>rVrEr<>r4r!rrr$s%<00><00><08>=<3D> 5<><0E>><3E><0E>>r!rc<00>@<00><00>eZdZdZd dddd<04><03>fd<05> Zd<06>Zd<07>Zd<08>Z<07>xZS)
<EFBFBD> LassoSelectora
Selection curve of an arbitrary shape.
For the selector to remain responsive you must keep a reference to it.
The selected path can be used in conjunction with `~.Path.contains_point`
to select data points from an image.
In contrast to `Lasso`, `LassoSelector` is written with an interface
similar to `RectangleSelector` and `SpanSelector`, and will continue to
interact with the Axes until disconnected.
Example usage::
ax = plt.subplot()
ax.plot(x, y)
def onselect(verts):
print(verts)
lasso = LassoSelector(ax, onselect)
Parameters
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
onselect : function, optional
Whenever the lasso is released, the *onselect* function is called and
passed the vertices of the selected path.
useblit : bool, default: True
Whether to use blitting for faster drawing (if supported by the
backend). See the tutorial :ref:`blitting`
for details.
props : dict, optional
Properties with which the line is drawn, see `.Line2D`
for valid properties. Default values are defined in ``mpl.rcParams``.
button : `.MouseButton` or list of `.MouseButton`, optional
The mouse buttons used for rectangle selection. Default is ``None``,
which corresponds to all buttons.
NT)rgrorc<00><><00><01>t<00>|<00>||||<05><01>d|_i|<04>|ni<00>|jdd<03><02>}t ggfi|<04><01>}|j
j |<06>||_y)N)rgrF)r~r<>)rsr rCrgrrIr<>r)rrIr<>rgrorr<>r<>s <20>rr zLassoSelector.__init__wss<00><><00> <0A><07><18><12>X<EFBFBD>w<EFBFBD>v<EFBFBD><18>F<><19><04>
<EFBFBD>
<EFBFBD><1D>)<29>u<EFBFBD>r<EFBFBD>
<EFBFBD><1D> <0C> <0C><15> 
<EFBFBD><05> <16>b<EFBFBD>"<22>&<26><05>&<26><04> <0C><07><07><18><18><14><1E>!%<25><04>r!c<00>h<00>|j|<01>g|_|jjd<01>yrk)r<>rCrr<>r@s rr<>zLassoSelector._press<73>s)<00><00><1A>n<EFBFBD>n<EFBFBD>U<EFBFBD>+<2B>,<2C><04>
<EFBFBD> <0C><1E><1E>*<2A>*<2A>4<EFBFBD>0r!c<00>$<00>|j<00>E|jj|j|<01><00>|j|j<00>|jj ggg<02>|jj d<01>d|_yr<>)rCrSr<>r<>rrnr<>r@s rr|zLassoSelector._release<73>sj<00><00> <0F>:<3A>:<3A> !<21> <10>J<EFBFBD>J<EFBFBD> <1D> <1D>d<EFBFBD>n<EFBFBD>n<EFBFBD>U<EFBFBD>3<> 4<> <10>M<EFBFBD>M<EFBFBD>$<24>*<2A>*<2A> %<25> <0C><1E><1E>'<27>'<27><12>R<EFBFBD><08>1<> <0C><1E><1E>*<2A>*<2A>5<EFBFBD>1<><19><04>
r!c<00><><00>|j<00>y|jj|j|<01><00>|jj t t |j<00><00><00>|j<00>yr)rCrSr<>rrn<00>listr<74>r<>r@s rr<>zLassoSelector._onmove<76>sU<00><00> <0F>:<3A>:<3A> <1D> <12> <0C>
<EFBFBD>
<EFBFBD><19><19>$<24>.<2E>.<2E><15>/<2F>0<> <0C><1E><1E>'<27>'<27><04>S<EFBFBD>$<24>*<2A>*<2A>-=<3D>(><3E>?<3F> <0C> <0B> <0B> r!r) r0r1r2r3r r<>r|r<>r<>r<>s@rrrNs(<00><><00>&<08>P &<26>T<EFBFBD><14>d<EFBFBD> &<26>1<><1A>r!rc <00><><00><00>eZdZdZddddddddd<05><07>fd<06> Zd<07>Zd<08>Zd <09>Zd
<EFBFBD>Zd <0B>Z e
d <0C><00>Z d <0A>Z d<0E>Z d<0F>Zd<10>Zd<11>Zd<12>Zd<13>Zd<14>Zd<15>Ze
d<16><00>Zej,d<17><00>Zd<18>Z<17>xZS)<1A>PolygonSelectora
Select a polygon region of an Axes.
Place vertices with each mouse click, and make the selection by completing
the polygon (clicking on the first vertex). Once drawn individual vertices
can be moved by clicking and dragging with the left mouse button, or
removed by clicking the right mouse button.
In addition, the following modifier keys can be used:
- Hold *ctrl* and click and drag a vertex to reposition it before the
polygon has been completed.
- Hold the *shift* key and click and drag anywhere in the Axes to move
all vertices.
- Press the *esc* key to start a new polygon.
For the selector to remain responsive you must keep a reference to it.
Parameters
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
onselect : function, optional
When a polygon is completed or modified after completion,
the *onselect* function is called and passed a list of the vertices as
``(xdata, ydata)`` tuples.
useblit : bool, default: False
Whether to use blitting for faster drawing (if supported by the
backend). See the tutorial :ref:`blitting`
for details.
props : dict, optional
Properties with which the line is drawn, see `.Line2D` for valid properties.
Default::
dict(color='k', linestyle='-', linewidth=2, alpha=0.5)
handle_props : dict, optional
Artist properties for the markers drawn at the vertices of the polygon.
See the marker arguments in `.Line2D` for valid
properties. Default values are defined in ``mpl.rcParams`` except for
the default value of ``markeredgecolor`` which will be the same as the
``color`` property in *props*.
grab_range : float, default: 10
A vertex is selected (to complete the polygon or to move a vertex) if
the mouse click is within *grab_range* pixels of the vertex.
draw_bounding_box : bool, optional
If `True`, a bounding box will be drawn around the polygon selector
once it is complete. This box can be used to move and resize the
selector.
box_handle_props : dict, optional
Properties to set for the box handles. See the documentation for the
*handle_props* argument to `RectangleSelector` for more info.
box_props : dict, optional
Properties to set for the box. See the documentation for the *props*
argument to `RectangleSelector` for more info.
Examples
--------
:doc:`/gallery/widgets/polygon_selector_simple`
:doc:`/gallery/widgets/polygon_selector_demo`
Notes
-----
If only one point remains after removing points, the selector reverts to an
incomplete state and you can start drawing a new polygon from the existing
point.
NFr<46>)rgrorr<00>draw_bounding_box<6F>box_handle_props<70> box_propsc <00>f<00><01>tddddddd<04><05>}
t<00> |<00> ||||
<EFBFBD><06>dg|_|<04>tdd d
d <0B> <0C>}i|<04>d |ji<01>}t ggfi|<04><01>x|_} |jj| <0B>|<05>td|jdd<08><00><0F>}||_
t|jgg|j|j<00><10>|_ d|_ ||_|jd<12>||_d|_|<08>i}|jj%|<08>|_| |_y)Nr<4E>r<>r<>r
)r<><00> move_vertex<65>move_allr<6C>r<>rjr<>)rgr<>r*r<00>-r)ri)r<>r<>ryrr~r<>)r<>r<>)rgr rwT)r<>rsr <00>_xysrgrrrIr<>r<>rr<><00>_polygon_handles<65>_active_handle_idxrr<><00> _draw_box<6F>_boxr<78><00>_box_handle_props<70>
_box_props) rrIr<>rgrorrrrrr<>r<>r<>s <20>rr zPolygonSelector.__init__<5F>sL<00><><00>#<23><18>y<EFBFBD>,3<>:J<>*:<3A>*:<3A>*:<3A> <<3C><1B>
<0E><07><18><12>X<EFBFBD>w<EFBFBD>-@<40> <19> B<01><1C>H<EFBFBD><04> <09> <10>=<3D><18>s<EFBFBD>c<EFBFBD>Q<EFBFBD>c<EFBFBD>J<>E<EFBFBD>3<>5<EFBFBD>3<>*<2A>d<EFBFBD>l<EFBFBD>l<EFBFBD>3<><05>(.<2E>r<EFBFBD>2<EFBFBD>(?<3F><15>(?<3F>?<3F><04><1E><14> <0C><07><07><18><18><14><1E> <17> <1F><1F><03>05<30> <09> <09>'<27>3<EFBFBD>0G<30>I<01>L<EFBFBD>)<29><04><1A> +<2B>D<EFBFBD>G<EFBFBD>G<EFBFBD>R<EFBFBD><12>48<34>L<EFBFBD>L<EFBFBD>9=<3D>9K<39>9K<39>!M<01><04><1D>#%<25><04><1F>$<24><04><0F> <0C><18><18><14><1E>*<2A><04><0E><18><04> <09> <1B> #<23>!<21> <1C>!%<25>!3<>!3<>!:<3A>!:<3A>;K<>!L<><04><1E>#<23><04>r!c<00>6<00>|jj<00>Sr)rr<>rs r<00> _get_bboxzPolygonSelector._get_bboxs<00><00><13>%<25>%<25>.<2E>.<2E>0<>0r!c<00><><00>t|j|j|j|j|j
d<01><02>|_|j jjd<03>|j jd|j<00>|j<00>d|j _ d|j _ |j<00>y)NT)rgrrrorr<>rrF)r<>rIrgrrrrr<>r<>rV<00>_scale_polygon<6F> _update_boxr<78>r<><00> _draw_polygonrs r<00>_add_boxzPolygonSelector._add_boxs<><00><00>%<25>d<EFBFBD>g<EFBFBD>g<EFBFBD>.2<EFBFBD>l<EFBFBD>l<EFBFBD>15<EFBFBD><1F><1F>37<33>3I<33>3I<33>,0<>O<EFBFBD>O<EFBFBD>26<32> 8<><04> <09> <0A> <09> <09>&<26>&<26>*<2A>*<2A>8<EFBFBD>4<> <0C> <09> <09><1F><1F> 5<>t<EFBFBD>7J<37>7J<37>K<> <0C><18><18><1A>%*<2A><04> <09> <09>!<21>)-<2D><04> <09> <09>&<26> <0C><1A><1A>r!c<00>b<00>|j<00>#|jjd<01>d|_yyr<>)rr<>rs r<00> _remove_boxzPolygonSelector._remove_box%s*<00><00> <0F>9<EFBFBD>9<EFBFBD> <20> <10>I<EFBFBD>I<EFBFBD> !<21> !<21>%<25> (<28><1C>D<EFBFBD>I<EFBFBD> !r!c<00><><00>|j<00>i|j<00>}|j|j|j|j
g|j_|jj |_yyr)rrr<>r<>r<>r<>rI<00>_old_box_extents)rr<>s rr!zPolygonSelector._update_box*sT<00><00> <0F>9<EFBFBD>9<EFBFBD> <20><17>><3E>><3E>#<23>D<EFBFBD>!%<25><17><17>$<24>'<27>'<27>4<EFBFBD>7<EFBFBD>7<EFBFBD>D<EFBFBD>G<EFBFBD>G<EFBFBD> D<>D<EFBFBD>I<EFBFBD>I<EFBFBD> <1D>$(<28>I<EFBFBD>I<EFBFBD>$5<>$5<>D<EFBFBD> !<21> !r!c<00><><00>|jsy|j|jjk(ry|jj\}}}}|j <00>}t j<00>j|j |j <00>jd|jz d|jz <00>j||<05>j||<03>}|jtj |j"<00><00>D<00><08> cgc] \}} || f<02><02> }
}} g|
<EFBFBD>|
d<00>|_|j'<00>|jj|_ycc} }w)z<>
Scale the polygon selector points when the bounding box is moved or
scaled.
This is set as a callback on the bounding box RectangleSelector.
Nrr)r<>r'rrIr<>rrrr<>r<>r<>r<>rr<>rar<>r.rCrr") rrAr<>r<><00>w1<77>h1<68>old_bbox<6F>trbrc<00> new_vertss rr zPolygonSelector._scale_polygon2s<00><00><14>(<28>(<28> <12> <0F> <20> <20>D<EFBFBD>I<EFBFBD>I<EFBFBD>$5<>$5<> 5<> <12><1E><19><19>-<2D>-<2D><0E><02>B<EFBFBD><02>B<EFBFBD><17>><3E>><3E>#<23><08> <17> <20> <20> "<22><17>i<EFBFBD><18><1B><1B> <0C>x<EFBFBD>{<7B>{<7B>l<EFBFBD>3<><13>e<EFBFBD>A<EFBFBD><08><0E><0E>&<26><01>H<EFBFBD>O<EFBFBD>O<EFBFBD>(;<3B><<3C><13>e<EFBFBD>B<EFBFBD><02>m<EFBFBD><17>i<EFBFBD><02>B<EFBFBD><1F>
<EFBFBD>)*<2A> <0B> <0B>B<EFBFBD>H<EFBFBD>H<EFBFBD>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>4H<34>(I<>J<><04><01>1<EFBFBD>a<EFBFBD><11>V<EFBFBD>J<> <09>J<>.<2E>i<EFBFBD>.<2E><19>1<EFBFBD><1C>.<2E><04> <09> <0C><1A><1A><1C> $<24> <09> <09> 1<> 1<><04><1D><>Ks<00>Ec<00>.<00>|jjSr)rr<>rs rr<>z PolygonSelector._handles_artistsNs<00><00><13>$<24>$<24>,<2C>,<2C>,r!c<00><><00>t|j<00>dkDr<>|jr{|dt|j<00>dz
fvr_|jjd<02>|jjd<04>|jj |jd<00>n|jj|<01>t|j<00>dkrd|_|j <00>yy)zRemove vertex with index i.r)rrrwFN)r<>rr<>r<>rSr%)rr<>s r<00>_remove_vertexzPolygonSelector._remove_vertexRs<><00><00> <0F><04> <09> <09>N<EFBFBD>Q<EFBFBD> <1E><14>)<29>)<29><11>a<EFBFBD><13>T<EFBFBD>Y<EFBFBD>Y<EFBFBD><1E>!<21>+<2B>,<2C>,<2C> <11>I<EFBFBD>I<EFBFBD>M<EFBFBD>M<EFBFBD>!<21> <1C> <10>I<EFBFBD>I<EFBFBD>M<EFBFBD>M<EFBFBD>"<22> <1D> <11>I<EFBFBD>I<EFBFBD> <1C> <1C>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>q<EFBFBD>\<5C> *<2A> <10>I<EFBFBD>I<EFBFBD>M<EFBFBD>M<EFBFBD>!<21> <1C> <0E>t<EFBFBD>y<EFBFBD>y<EFBFBD>><3E>Q<EFBFBD> <1E>).<2E>D<EFBFBD> %<25> <10> <1C> <1C> <1E> r!c<00>8<00>|jsd|jvrat|j<00>dkDrI|jj |j |j<00>\}}||jkr||_ |jj<00>|_ y)r<>rrN) r<>r<>r<>rrrLrbrcrrr<><00> _xys_at_press)rrA<00>h_idx<64>h_dists rr<>zPolygonSelector._pressfsu<00><00><12> &<26> &<26>-<2D>4<EFBFBD>;<3B>;<3B>*F<><17><04> <09> <09>N<EFBFBD>Q<EFBFBD>&<26> <20>1<>1<>9<>9<>%<25>'<27>'<27>5<EFBFBD>7<EFBFBD>7<EFBFBD>K<>M<EFBFBD>E<EFBFBD>6<EFBFBD><15><04><0F><0F>'<27>*/<2F><04>'<27>"<22>Y<EFBFBD>Y<EFBFBD>^<5E>^<5E>-<2D><04>r!c<00>j<00>|jdk\rB|jdk(r+|j|j<00>|j<00>d|_n<>t |j
<00>dkDrO|j
d|j
dk(r0d|_|jrp|j<00>d|j<00>nS|j sGd|jvr9d|jvr+|j
jd|j|<01><00>|j r|j|j<00>yy)r<>rr?rwTNrr)rrr0r"r<>rr<>rrr#r<><00>insertrdr<>rCr@s rr|zPolygonSelector._releasers<><00><00> <10> "<22> "<22>a<EFBFBD> '<27><14>|<7C>|<7C>q<EFBFBD> <20><14>#<23>#<23>D<EFBFBD>$;<3B>$;<3B><<3C><14>"<22>"<22>$<24>&(<28>D<EFBFBD> #<23><11><14><19><19>^<5E>a<EFBFBD> <1F>D<EFBFBD>I<EFBFBD>I<EFBFBD>b<EFBFBD>M<EFBFBD>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>q<EFBFBD>\<5C>$A<>(,<2C>D<EFBFBD> %<25><13>~<7E>~<7E>$<24>)<29>)<29>"3<><14> <0A> <0A><0F><17>+<2B>+<2B><1C>D<EFBFBD>K<EFBFBD>K<EFBFBD>/<2F><1F>t<EFBFBD>{<7B>{<7B>2<> <10>I<EFBFBD>I<EFBFBD> <1C> <1C>R<EFBFBD><14>!6<>!6<>u<EFBFBD>!=<3D> ><3E> <0F> $<24> $<24> <10>M<EFBFBD>M<EFBFBD>$<24>*<2A>*<2A> %<25> %r!c<00>H<00>|j|<01>ro|jjj|<00>sI|jr=t
j t
j f|jd<|j<00>y|j|<01>}|j|<01>y)r<>rwFT)
rBrOr{r$rr<><00>nanr"r<>r<>r@s rrqzPolygonSelector.onmove<76>sx<00><00> <10>;<3B>;<3B>u<EFBFBD> <1D><17>;<3B>;<3B>)<29>)<29>3<>3<>D<EFBFBD>9<>d<EFBFBD>i<EFBFBD>i<EFBFBD>!#<23><16><16><12><16><16> 0<><04> <09> <09>"<22> <0A><14>"<22>"<22>$<24><18><19>%<25>%<25>e<EFBFBD>,<2C>E<EFBFBD> <10>L<EFBFBD>L<EFBFBD><15> <1F>r!c<00>><00>|jdk\r]|j}|j|<01>|j|<|dk(<00>r<>|j<00>r<>|j|<01>|jd<<00>n<>d|jvr<>|j
r<>|j|<01>\}}||j
j z
}||j
jz
}tt|j<00><00>D]+}|j|\}} ||z| |zf|j|<<00>-n<>|jsd|jvsd|jvry|jj<00>j|jd<00>\}
} tj|
|j z
| |j"z
<00>} t|j<00>dkDr,| |j$kr|jd|jd<n|j|<01>|jd<|j'<00>y)r<>rrwrrNr?)rrdrr<>r<>r<>r]r^r<>r<>r2r<00> get_transformrar<>r<>rbrcrr") rrArRr]r^r<>r<>r<00>
x_at_press<EFBFBD>
y_at_pressr<EFBFBD>r<><00>v0_dists rr<>zPolygonSelector._onmove<76>s<><00><00> <10> "<22> "<22>a<EFBFBD> '<27><16>)<29>)<29>C<EFBFBD>!<21>2<>2<>5<EFBFBD>9<>D<EFBFBD>I<EFBFBD>I<EFBFBD>c<EFBFBD>N<EFBFBD><13>a<EFBFBD>x<EFBFBD>D<EFBFBD>5<>5<> $<24> 5<> 5<>e<EFBFBD> <<3C><04> <09> <09>"<22> <0A><18>4<EFBFBD>;<3B>;<3B> &<26>4<EFBFBD>+;<3B>+;<3B><1F>0<>0<><15>7<>L<EFBFBD>E<EFBFBD>5<EFBFBD><16><14>)<29>)<29>/<2F>/<2F>/<2F>B<EFBFBD><16><14>)<29>)<29>/<2F>/<2F>/<2F>B<EFBFBD><1A>3<EFBFBD>t<EFBFBD>y<EFBFBD>y<EFBFBD>><3E>*<2A> @<01><01>)-<2D>);<3B>);<3B>A<EFBFBD>)><3E>&<26>
<EFBFBD>J<EFBFBD>)<29>B<EFBFBD><EFBFBD>
<EFBFBD>R<EFBFBD><0F>?<3F><04> <09> <09>!<21> <0C> @<01>
<13>'<27>'<27><1E>$<24>+<2B>+<2B>-<2D><1A>t<EFBFBD>{<7B>{<7B>1J<31> <12> <15>&<26>&<26>4<>4<>6<>@<40>@<40><14><19><19>1<EFBFBD><1C>N<> <13>B<EFBFBD><02><18>h<EFBFBD>h<EFBFBD>r<EFBFBD>E<EFBFBD>G<EFBFBD>G<EFBFBD>|<7C>R<EFBFBD>%<25>'<27>'<27>\<5C>:<3A>G<EFBFBD><12>4<EFBFBD>9<EFBFBD>9<EFBFBD>~<7E><01>!<21>g<EFBFBD><04><0F><0F>&?<3F> $<24> <09> <09>!<21> <0C><04> <09> <09>"<22> <0A> $<24> 5<> 5<>e<EFBFBD> <<3C><04> <09> <09>"<22> <0A> <0C><1A><1A>r!c<00><><00>|jsHd|jvsd|jvr+|jj<00>|j <00>yyy)zKey press event handler.rrN)r<>r<>rr<>r"r@s rr<>zPolygonSelector._on_key_press<73>sH<00><00><15>)<29>)<29>"<22>d<EFBFBD>k<EFBFBD>k<EFBFBD>1<><1F>4<EFBFBD>;<3B>;<3B>.<2E> <10>I<EFBFBD>I<EFBFBD>M<EFBFBD>M<EFBFBD>O<EFBFBD> <10> <1E> <1E> <20>/<2F>*r!c<00>$<00>|js<>|j|jjd<01>k(s(|j|jjd<02>k(r;|jj |j |<01><00>|j<00>y|j|jjd<03>k(rQ|j|<01>}|j |<01>g|_d|_|j<00>|jd<05>yy)r<>rrr<>FTN) r<>rr<>r<>rrSrdr"r<>r%r<>r@s rr<>zPolygonSelector._on_key_release<73>s<><00><00><15>)<29>)<29><16><19><19>d<EFBFBD>7<>7<>;<3B>;<3B>M<EFBFBD>J<>J<><19>I<EFBFBD>I<EFBFBD><14>!:<3A>!:<3A>!><3E>!><3E>z<EFBFBD>!J<>J<> <10>I<EFBFBD>I<EFBFBD> <1C> <1C>T<EFBFBD>2<>2<>5<EFBFBD>9<> :<3A> <10> <1E> <1E> <20> <12>Y<EFBFBD>Y<EFBFBD>$<24>3<>3<>7<>7<><07>@<40> @<40><18>%<25>%<25>e<EFBFBD>,<2C>E<EFBFBD><1D>.<2E>.<2E>u<EFBFBD>5<>6<>D<EFBFBD>I<EFBFBD>(-<2D>D<EFBFBD> %<25> <10> <1C> <1C> <1E> <10> <1C> <1C>T<EFBFBD> "<22> Ar!c<00><><00>|jrt|j<00>nggf\}}|jj||<02>|j <00>|j
s7t |j<00>dkDrB|jd|jdk(r#|jj|dd|dd<00>y|jj||<02>y)z>Redraw the polygon based on new vertex positions, no update().r?rwrN)rr<>rrnr!r<>r<>r)r<00>xsr<73>s r<00>_draw_polygon_without_updatez,PolygonSelector._draw_polygon_without_update<74>s<><00><00>$(<28>I<EFBFBD>I<EFBFBD><13>d<EFBFBD>i<EFBFBD>i<EFBFBD><1F>B<EFBFBD><02>8<EFBFBD><06><02>B<EFBFBD> <0C><1E><1E>'<27>'<27><02>B<EFBFBD>/<2F> <0C><18><18><1A> <11> %<25> %<25><17><04> <09> <09>N<EFBFBD>Q<EFBFBD>&<26><1C> <09> <09>"<22> <0A><14><19><19>1<EFBFBD><1C>5<> <10> !<21> !<21> *<2A> *<2A>2<EFBFBD>c<EFBFBD>r<EFBFBD>7<EFBFBD>B<EFBFBD>s<EFBFBD><02>G<EFBFBD> <<3C> <10> !<21> !<21> *<2A> *<2A>2<EFBFBD>r<EFBFBD> 2r!c<00>D<00>|j<00>|j<00>y)z5Redraw the polygon based on the new vertex positions.N)rBr<>rs rr"zPolygonSelector._draw_polygon<6F>s<00><00> <0C>)<29>)<29>+<2B> <0C> <0B> <0B> r!c<00> <00>|jddS)z4The polygon vertices, as a list of ``(x, y)`` pairs.Nrw)rrs rrCzPolygonSelector.verts<74>s<00><00><14>y<EFBFBD>y<EFBFBD><13>"<22>~<7E>r!c<00><><00>g|<01>|d<00>|_d|_|jd<02>|jr|j<00>|j <00>|j <00>y)z<>
Set the polygon vertices.
This will remove any preexisting vertices, creating a complete polygon
with the new vertices.
rTN)rr<>r<>rrr#r")r<00>xyss rrCzPolygonSelector.verts<74>sR<00><00>#<23>c<EFBFBD>N<EFBFBD>3<EFBFBD>q<EFBFBD>6<EFBFBD>N<EFBFBD><04> <09>$(<28><04>!<21> <0C><18><18><14><1E> <0F>><3E>><3E>d<EFBFBD>i<EFBFBD>i<EFBFBD>/<2F> <10>M<EFBFBD>M<EFBFBD>O<EFBFBD> <0C><1A><1A>r!c<00>B<00>d|_dg|_|j<00>y)NFr*)r<>rrBrs rr<>z%PolygonSelector._clear_without_updates<00><00>$)<29><04>!<21><1B>H<EFBFBD><04> <09> <0C>)<29>)<29>+r!r)r0r1r2r3r rr#r%r!r rEr<>r0r<>r|rqr<>r<>r<>rBr"rCrJr<>r<>r<>s@rrr<00>s<><00><><00>I<08>V+$<24>U<EFBFBD><1B>$<24>2<EFBFBD>#(<28>4<EFBFBD><1F>+$<24>Z1<><1D> <1D>
6<>2<>8<0E>-<2D><0E>-<2D><1F>(
.<2E>&<26>0<18>$%<1D>N!<21>#<23>$ 3<><16>
<0E><1E><0E><1E> <0B>\<5C>\<5C> <1D><12> <1D>,r!rc<00>6<00><00>eZdZdZddd<04><02>fd<05>
Zd<06>Zd<07>Z<06>xZS)<08>Lassoa
Selection curve of an arbitrary shape.
The selected path can be used in conjunction with
`~matplotlib.path.Path.contains_point` to select data points from an image.
Unlike `LassoSelector`, this must be initialized with a starting
point *xy*, and the `Lasso` events are destroyed upon release.
Parameters
----------
ax : `~matplotlib.axes.Axes`
The parent Axes for the widget.
xy : (float, float)
Coordinates of the start of the lasso.
callback : callable
Whenever the lasso is released, the *callback* function is called and
passed the vertices of the selected path.
useblit : bool, default: True
Whether to use blitting for faster drawing (if supported by the
backend). See the tutorial :ref:`blitting`
for details.
props: dict, optional
Lasso line properties. See `.Line2D` for valid properties.
Default *props* are::
{'linestyle' : '-', 'color' : 'black', 'lw' : 2}
.. versionadded:: 3.9
TN)rgroc<00>"<00><01>t<00> |<00>|<01>|xr|jj|_|jr4|jj |j j<00>|_dddd<04>}|<05>|j|<05>|\}}||fg|_
t|g|gfi|<06><01>|_ |j j|j<00>||_|jd|j <00>|jd|j"<00>y)Nrr{r))r<>r<>r<>rqrr)rsr rOrwrgr<>rIr<>rvr<>rCrr<>r<>rTrV<00> onreleaserq)
rrIr@rTrgro<00>stylerbrcr<>s
<20>rr zLasso.__init__,s<><00><><00> <0A><07><18><12><1C><1E><<3C>4<EFBFBD>;<3B>;<3B>#<<3C>#<<3C><04> <0C> <0F><<3C><<3C>"<22>k<EFBFBD>k<EFBFBD>8<>8<><14><17><17><1C><1C>F<>D<EFBFBD>O<EFBFBD>!<21>G<EFBFBD>1<EFBFBD>=<3D><05> <10> <1C> <11>L<EFBFBD>L<EFBFBD><15> <1F><11><04><01>1<EFBFBD><18>!<21>f<EFBFBD>X<EFBFBD><04>
<EFBFBD><1A>A<EFBFBD>3<EFBFBD><11><03>-<2D>u<EFBFBD>-<2D><04> <09> <0C><07><07><18><18><14><19><19>#<23> <20><04> <0A> <0C><1A><1A>1<>4<EFBFBD>><3E>><3E>B<> <0C><1A><1A>0<>$<24>+<2B>+<2B>>r!c<00>\<00>|j|<01>ry|j<00>w|jj|j|<01><00>t |j<00>dkDr|j |j<00>|j j<00>d|_|j<00>y)Nr)) rBrCrSrdr<>rTr<>r[rZr@s rrKzLasso.onrelease@s{<00><00> <0F>;<3B>;<3B>u<EFBFBD> <1D> <12> <0F>:<3A>:<3A> !<21> <10>J<EFBFBD>J<EFBFBD> <1D> <1D>d<EFBFBD>3<>3<>E<EFBFBD>:<3A> ;<3B><12>4<EFBFBD>:<3A>:<3A><EFBFBD><11>"<22><14> <0A> <0A>d<EFBFBD>j<EFBFBD>j<EFBFBD>)<29> <10>I<EFBFBD>I<EFBFBD> <1C> <1C> <1E><19><04>
<EFBFBD> <0C><1E><1E> r!c<00><><00>|j|<01>s9|j<00>-|jdk7s|jj |<01>dsy|jj |j |<01><00>|jjtt|j<00><00><00>|jrz|jj|j<00>|jj|j<00>|jj!|jj"<00>y|jj%<00>y)Nrr)rBrCrrIr<>rSrdr<>rnr r<>rgrOr<>rvr<>r<>r<>rr@s rrqz Lasso.onmoveKs<><00><00> <10>K<EFBFBD>K<EFBFBD><05> <1E><17>:<3A>:<3A>%<25><18><<3C><<3C>1<EFBFBD>$<24><1B>w<EFBFBD>w<EFBFBD>'<27>'<27><05>.<2E>q<EFBFBD>1<> <12> <0C>
<EFBFBD>
<EFBFBD><19><19>$<24>/<2F>/<2F><05>6<>7<> <0C> <09> <09><1A><1A>4<EFBFBD><03>T<EFBFBD>Z<EFBFBD>Z<EFBFBD> 0<>1<>2<> <0F><<3C><<3C> <10>K<EFBFBD>K<EFBFBD> &<26> &<26>t<EFBFBD><EFBFBD><EFBFBD> 7<> <10>G<EFBFBD>G<EFBFBD> <1F> <1F><04> <09> <09> *<2A> <10>K<EFBFBD>K<EFBFBD> <1C> <1C>T<EFBFBD>W<EFBFBD>W<EFBFBD>\<5C>\<5C> *<2A> <10>K<EFBFBD>K<EFBFBD> !<21> !<21> #r!)r0r1r2r3r rKrqr<>r<>s@rrIrI s<00><><00><08><59<35><04>?<3F>( !<21>$r!rI):r3<00>
contextlibrr<>rl<00>numbersrrr<00>numpyr<79><00>
matplotlibr<EFBFBD>r/rr r
r r r rrjrr<00>linesr<00>patchesrrrrrrr6rGrfr<>r<>r'rprrr<>r1rLrmr~r<>rr2r<><00>'_RECTANGLESELECTOR_PARAMETERS_DOCSTRING<4E> Substitutionr<6E>r<>rrrrIr4r!r<00><module>rWs<><00><01> <04>!<21> <0B><10>$<24><19><12><18>2<>2<>2<><19>0<>0<>6<>#'<27>#'<27>L<1F><1F>83Q<01><16>3Q<01>ld(<28>Z<EFBFBD>d(<28>NK'<27><1A>K'<27>\GI<01>Z<EFBFBD>GI<01>TuI<01>*<2A>uI<01>p @<01>
n(<28>:<3A>n(<28>b A(<28>j<EFBFBD>A(<28>HH(<28>:<3A>H(<28>VE&<26>&<26>E&<26>PT$<24>Z<EFBFBD>T$<24>nB#<23>&<26>B#<23>Ja"<22>j<EFBFBD>a"<22>H [<16>?<3F>[<16>| k"<22>k"<22>\>*<2A>>*<2A>DT<08>(<28>p<19><1A><18><18>@<40>H<>H<><15>{<7B>$<24>%<25>b?<3F><0F>b?<3F>%<25>b?<3F>J<19><1A><18><18>@<40>H<>H<><15>y<EFBFBD>"<22>#<23>%><3E>'<27>%><3E>#<23>%><3E>PH<16>O<EFBFBD>H<16>Vq,<2C>o<EFBFBD>q,<2C>h L$<24>J<EFBFBD>L$r!