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

770 lines
73 KiB
Text
Raw Normal View History

<EFBFBD>
<00>Rj<><6A><00><00>L<00>dZddlZddlZddlZddlmZmZddlm Z
ddl m Z ddlmZddlmZddlmZddlmZddlmZmZmZddlmZmZmZdZ d <09>Z!d
<EFBFBD>Z"d,d <0B>Z#d-d <0C>Z$Gd <0A>de
jJ<00>Z&Gd<0F>de&<26>Z'Gd<11>de'<27>Z(Gd<13>de'<27>Z)Gd<15>de&<26>Z*Gd<17>de&<26>Z+Gd<19>de&<26>Z,Gd<1B>de&<26>Z-Gd<1D>de&<26>Z.d<1F>Z/Gd <20>d!e.<2E>Z0Gd"<22>d#e&<26>Z1Gd$<24>d%e
jJejd<00>Z3Gd&<26>d'<27>Z4Gd(<28>d)e4<65>Z5Gd*<2A>d+e4<65>Z6y).ac
Container classes for `.Artist`\s.
`OffsetBox`
The base of all container artists defined in this module.
`AnchoredOffsetbox`, `AnchoredText`
Anchor and align an arbitrary `.Artist` or a text relative to the parent
axes or a specific anchor point.
`DrawingArea`
A container with fixed width and height. Children have a fixed position
inside the container and may be clipped.
`HPacker`, `VPacker`
Containers for layouting their children vertically or horizontally.
`PaddedBox`
A container to add a padding around an `.Artist`.
`TextArea`
Contains a single `.Text` instance.
<EFBFBD>N)<02>_api<70>
_docstring)<01>FontProperties)<01> BboxImage)<03>FancyBboxPatch<63>FancyArrowPatch<63> bbox_artist)<03>Bbox<6F>BboxBase<73>TransformedBboxFc<00>R<00><00><02>d<01>d<02>g<02>tj<00><00><00><00>fd<03><08>}|S)z<>
Decorator for the get_offset method of OffsetBox and subclasses, that
allows supporting both the new signature (self, bbox, renderer) and the old
signature (self, width, height, xdescent, ydescent, renderer).
c<00><00>t<00>S<00>N<><01>locals)<06>self<6C>width<74>height<68>xdescent<6E>ydescent<6E>renderers <20>W/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/offsetbox.py<70><lambda>z$_compat_get_offset.<locals>.<lambda>3s<00><00>f<EFBFBD>h<EFBFBD><00>c<00><00>t<00>Srr<00>r<00>bboxrs rrz$_compat_get_offset.<locals>.<lambda>4s<00><00><16><18>rc<00><><00><02>tj<00>|g|<01><01>i|<02><01>}d|vr|dn%tj|d |d |d|d<00>}<00>|d||d<00>S)Nrrrrrrr)r<00>select_matching_signaturer
<00> from_bounds)r<00>args<67>kwargs<67>paramsr<00>meth<74>sigss <20><>r<00>
get_offsetz&_compat_get_offset.<locals>.get_offset6s}<00><><00><15>/<2F>/<2F><04>d<EFBFBD>L<>T<EFBFBD>L<>V<EFBFBD>L<><06>"(<28>F<EFBFBD>"2<><06>v<EFBFBD><0E><14> <20> <20>&<26><1A>"4<>!4<>v<EFBFBD>j<EFBFBD>7I<37>6I<36>!'<27><07><1F>&<26><18>2B<32>D<01> <0A><14>F<EFBFBD>6<EFBFBD>N<EFBFBD>D<EFBFBD>&<26><1A>*<<3C>=<3D>=r)<02> functools<6C>wraps)r$r&r%s` @r<00>_compat_get_offsetr)-s8<00><><00> O<01> 1<> 3<>D<EFBFBD><0F>_<EFBFBD>_<EFBFBD>T<EFBFBD><1A>><3E><1B>><3E> <16>rc<00>(<00>tr t|i|<01><01>yyr)<02>DEBUG<55> mbbox_artist)r!r"s r<00> _bbox_artistr-As<00><00> <0C><14>d<EFBFBD>%<25>f<EFBFBD>%<25> rc<00>v<00>tjgd<01>|<03><02>|dk(r=tjdg|D<00>cgc]}||z<00><02> c}z<00>}|dd}|<01>|d|z
}||fS|dk(re|<01>d}t |<00>dkDr|t |<00>z
t |<00>dz
z }nd}tjdg|D<00>cgc]}||z<00><02> c}z<00>}|dd}||fS|d k(ret |<00>}|<01>|<02> td
<EFBFBD><00>||zt |<00>z}n|t |<00>z |z
}||ztjt |<00><00>z}||fSycc}wcc}w) a[
Pack boxes specified by their *widths*.
For simplicity of the description, the terminology used here assumes a
horizontal layout, but the function works equally for a vertical layout.
There are three packing *mode*\s:
- 'fixed': The elements are packed tight to the left with a spacing of
*sep* in between. If *total* is *None* the returned total will be the
right edge of the last box. A non-*None* total will be passed unchecked
to the output. In particular this means that right edge of the last
box may be further to the right than the returned total.
- 'expand': Distribute the boxes with equal spacing so that the left edge
of the first box is at 0, and the right edge of the last box is at
*total*. The parameter *sep* is ignored in this mode. A total of *None*
is accepted and considered equal to 1. The total is returned unchanged
(except for the conversion *None* to 1). If the total is smaller than
the sum of the widths, the laid out boxes will overlap.
- 'equal': If *total* is given, the total space is divided in N equal
ranges and each box is left-aligned within its subspace.
Otherwise (*total* is *None*), *sep* must be provided and each box is
left-aligned in its subspace of width ``(max(widths) + sep)``. The
total width is then calculated to be ``N * (max(widths) + sep)``.
Parameters
----------
widths : list of float
Widths of boxes to be packed.
total : float or None
Intended total length. *None* if not used.
sep : float or None
Spacing between boxes.
mode : {'fixed', 'expand', 'equal'}
The packing mode.
Returns
-------
total : float
The total width needed to accommodate the laid out boxes.
offsets : array of float
The left offsets of the boxes.
)<03>fixed<65>expand<6E>equal)<01>moder/rN<><4E><EFBFBD><EFBFBD><EFBFBD>r0<00>r1z@total and sep cannot both be None when using layout mode 'equal') r<00> check_in_list<73>np<6E>cumsum<75>len<65>sum<75>max<61>
ValueError<EFBFBD>arange)<08>widths<68>total<61>sepr2<00>w<>offsets_<73>offsets<74>maxhs r<00>_get_packed_offsetsrDFsf<00><00>\ <09><16><16>3<>$<24>?<3F> <0B>w<EFBFBD><EFBFBD><15>9<EFBFBD>9<EFBFBD>a<EFBFBD>S<EFBFBD>V<EFBFBD>#<<3C><01>A<EFBFBD><03>G<EFBFBD>#<<3C><<3C>=<3D><08><1A>3<EFBFBD>B<EFBFBD>-<2D><07> <10>=<3D><1C>R<EFBFBD>L<EFBFBD>3<EFBFBD>&<26>E<EFBFBD><14>g<EFBFBD>~<7E><1D> <0A><18> <19> <11>=<3D><15>E<EFBFBD> <0E>v<EFBFBD>;<3B><11>?<3F><18>3<EFBFBD>v<EFBFBD>;<3B>&<26>3<EFBFBD>v<EFBFBD>;<3B><11>?<3F>;<3B>C<EFBFBD><13>C<EFBFBD><15>9<EFBFBD>9<EFBFBD>a<EFBFBD>S<EFBFBD>V<EFBFBD>#<<3C><01>A<EFBFBD><03>G<EFBFBD>#<<3C><<3C>=<3D><08><1A>3<EFBFBD>B<EFBFBD>-<2D><07><14>g<EFBFBD>~<7E><1D> <0A><17><1F><12>6<EFBFBD>{<7B><04> <10>=<3D><12>{<7B> <20>"=<3D>><3E>><3E><19>C<EFBFBD>Z<EFBFBD>3<EFBFBD>v<EFBFBD>;<3B>.<2E>E<EFBFBD><17>#<23>f<EFBFBD>+<2B>%<25><04>,<2C>C<EFBFBD><17>#<23>:<3A><12><19><19>3<EFBFBD>v<EFBFBD>;<3B>!7<>7<><07><14>g<EFBFBD>~<7E><1D>
<19><>'$=<3D><>$=s <00> D1
<EFBFBD>( D6
c<00><><00>tjgd<01>|<02><02>|<01>td<03>|D<00><00>}|dk(r7td<05>|D<00><00>td<06>|D<00><00>f}dgt |<00>z}||fS|dvrd|f}|D<00><05>cgc]\}}| <00><02>
}}}||fS|d vrd|f}|D<00><05>cgc]
\}}||z
<00><02> }}}||fS|d
k(r$d|f}|D<00><05>cgc]\}}|||z
z
d z|z
<00><02>}}}fScc}}wcc}}wcc}}w) a<>
Align boxes each specified by their ``(y0, y1)`` spans.
For simplicity of the description, the terminology used here assumes a
horizontal layout (i.e., vertical alignment), but the function works
equally for a vertical layout.
Parameters
----------
yspans
List of (y0, y1) spans of boxes to be aligned.
height : float or None
Intended total height. If None, the maximum of the heights
(``y1 - y0``) in *yspans* is used.
align : {'baseline', 'left', 'top', 'right', 'bottom', 'center'}
The alignment anchor of the boxes.
Returns
-------
(y0, y1)
y range spanned by the packing. If a *height* was originally passed
in, then for all alignments other than "baseline", a span of ``(0,
height)`` is used without checking that it is actually large enough).
descent
The descent of the packing.
offsets
The bottom offsets of the boxes.
)<06>baseline<6E>left<66>top<6F>right<68>bottom<6F>center)<01>alignc3<00>,K<00>|] \}}||z
<00><01><00>y<00>wr<00><00><03>.0<EFBFBD>y0<79>y1s r<00> <genexpr>z'_get_aligned_offsets.<locals>.<genexpr><3E>s<00><00><><00>2<><16><12>R<EFBFBD>R<EFBFBD>"<22>W<EFBFBD>2<>s<00>rFc3<00>&K<00>|] \}}|<01><01><00> y<00>wrrNrOs rrSz'_get_aligned_offsets.<locals>.<genexpr><3E>s<00><00><><00>-<2D>F<EFBFBD>B<EFBFBD><02>R<EFBFBD>-<2D><><00>c3<00>&K<00>|] \}}|<02><01><00> y<00>wrrNrOs rrSz'_get_aligned_offsets.<locals>.<genexpr><3E>s<00><00><><00>2K<32>&<26>"<22>b<EFBFBD>2<EFBFBD>2K<32>rUr)rGrJ)rIrHrK<00><00>?)rr5r:<00>minr8)<07>yspansrrL<00>yspanrBrQrRs r<00>_get_aligned_offsetsr[<00>s<<00><00>< <09><16><16>@<40><05>O<01> <0A>~<7E><14>2<>6<EFBFBD>2<>2<><06> <0C>
<EFBFBD><1A><14>-<2D>f<EFBFBD>-<2D>-<2D>s<EFBFBD>2K<32>F<EFBFBD>2K<32>/K<>L<><05><14>#<23><03>F<EFBFBD> <0B>#<23><07> <11>'<27>><3E><19>
<0F>$<24> $<24><12>F<EFBFBD> <0B><05>%+<2B>,<2C>6<EFBFBD>2<EFBFBD>r<EFBFBD>B<EFBFBD>3<EFBFBD>,<2C><07>,<2C> <11>'<27>><3E><19>
<0F>"<22> "<22><12>F<EFBFBD> <0B><05>-3<>4<>6<EFBFBD>2<EFBFBD>r<EFBFBD>6<EFBFBD>B<EFBFBD>;<3B>4<><07>4<>
<11>'<27>><3E><19>
<0F>(<28> <1A><12>F<EFBFBD> <0B><05>@F<>G<>f<EFBFBD>b<EFBFBD>"<22>F<EFBFBD>b<EFBFBD>2<EFBFBD>g<EFBFBD>&<26>"<22>,<2C>r<EFBFBD>1<>G<><07>G<> <10>'<27>><3E><19><>-<2D><>5<><35>Hs<00>7 C<06>C!<06><C'c<00><><00><00>eZdZdZ<03>fd<02>Z<04>fd<03>Zejjjd<04><00>Zd<05>Z
d<06>Z e d<07><00>Z d<08>Zd <09>Zd
<EFBFBD>Zd <0B>Zd <0C>Zd <0A>Zdd<0E>Zd<0F>Z<15>xZS)<11> OffsetBoxz<78>
A simple container artist.
The child artists are meant to be drawn at a relative position to its
parent.
Being an artist itself, all parameters are passed on to `.Artist`.
c<00>~<00><01>t<00>|<00>|<01>|j|<02>|jd<01>g|_d|_y)NF<4E>rr)<06>super<65>__init__<5F>_internal_update<74> set_clip_on<6F> _children<65>_offset)rr!r"<00> __class__s <20>rrazOffsetBox.__init__<5F>s<<00><><00> <0A><07><18>$<24><1F> <0C><1D><1D>f<EFBFBD>%<25> <0A><18><18><15><1F><1B><04><0E><1D><04> rc<00>p<00><01>t<00>|<00>|<01>|j<00>D]}|j|<01><00>y)z<>
Set the `.Figure` for the `.OffsetBox` and all its children.
Parameters
----------
fig : `~matplotlib.figure.Figure`
N)r`<00>
set_figure<EFBFBD> get_children)r<00>fig<69>crfs <20>rrhzOffsetBox.set_figure<72>s6<00><><00> <0E><07><1A>3<EFBFBD><1F><15>"<22>"<22>$<24> <1E>A<EFBFBD> <0A>L<EFBFBD>L<EFBFBD><13> <1D> rc<00><><00>tjjj||<01>|j <00>D] }|<02><01>||_<00>yr)<05>martist<73>Artist<73>axes<65>fsetri)r<00>axrks rrozOffsetBox.axes<65>sB<00><00> <10><0E><0E><1B><1B> <20> <20><14>r<EFBFBD>*<2A><15>"<22>"<22>$<24> <1C>A<EFBFBD><10>}<7D><1B><01><06> rc<00><><00>|j|<01>rdifS|j<00>D]}|j|<01>\}}|s<01>||fcSdifS)a<>
Delegate the mouse event contains-check to the children.
As a container, the `.OffsetBox` does not respond itself to
mouseevents.
Parameters
----------
mouseevent : `~matplotlib.backend_bases.MouseEvent`
Returns
-------
contains : bool
Whether any values are within the radius.
details : dict
An artist-specific dictionary of details of the event context,
such as which points are contained in the pick radius. See the
individual Artist subclasses for details.
See Also
--------
.Artist.contains
F)<03>_different_canvasri<00>contains)r<00>
mouseeventrk<00>a<>bs rrtzOffsetBox.contains<6E>s^<00><00>0 <10> !<21> !<21>*<2A> -<2D><18>"<22>9<EFBFBD> <1C><15>"<22>"<22>$<24> <1C>A<EFBFBD><14>:<3A>:<3A>j<EFBFBD>)<29>D<EFBFBD>A<EFBFBD>q<EFBFBD><10><18>!<21>t<EFBFBD> <0B> <1C><15>b<EFBFBD>y<EFBFBD>rc<00> <00>||_d|_y)a<>
Set the offset.
Parameters
----------
xy : (float, float) or callable
The (x, y) coordinates of the offset in display units. These can
either be given explicitly as a tuple (x, y), or by providing a
function that converts the extent into the offset. This function
must have the signature::
def offset(width, height, xdescent, ydescent, renderer) -> (float, float)
TN)re<00>stale<6C>r<00>xys r<00>
set_offsetzOffsetBox.set_offsets<00><00><1A><04> <0C><19><04>
rc<00><><00>t|j<00>r?|j|j|j|j |j
|<02>S|jS)aO
Return the offset as a tuple (x, y).
The extent parameters have to be provided to handle the case where the
offset is dynamically determined by a callable (see
`~.OffsetBox.set_offset`).
Parameters
----------
bbox : `.Bbox`
renderer : `.RendererBase` subclass
)<06>callablererr<00>x0rQrs rr&zOffsetBox.get_offset#sM<00><00> <18><04> <0C> <0C>%<25> <11>L<EFBFBD>L<EFBFBD><14><1A><1A>T<EFBFBD>[<5B>[<5B>4<EFBFBD>7<EFBFBD>7<EFBFBD>(<28>T<EFBFBD>W<EFBFBD>W<EFBFBD>H<EFBFBD>h<EFBFBD> O<> <1F><16><1C><1C> rc<00> <00>||_d|_y)zh
Set the width of the box.
Parameters
----------
width : float
TN)rry)rrs r<00> set_widthzOffsetBox.set_width6s<00><00><1B><04>
<EFBFBD><19><04>
rc<00> <00>||_d|_y)zj
Set the height of the box.
Parameters
----------
height : float
TN)rry)rrs r<00>
set_heightzOffsetBox.set_heightAs<00><00><1D><04> <0B><19><04>
rc<00>b<00>|jD<00>cgc]}|j<00>s<01>|<01><02>c}Scc}w)z/Return a list of the visible child `.Artist`\s.)rd<00> get_visible)rrks r<00>get_visible_childrenzOffsetBox.get_visible_childrenLs"<00><00><1F>><3E>><3E>=<3D>a<EFBFBD>Q<EFBFBD>]<5D>]<5D>_<EFBFBD><01>=<3D>=<3D><>=s<00>,<04>,c<00><00>|jS)z'Return a list of the child `.Artist`\s.)rd<00>rs rrizOffsetBox.get_childrenP<00> <00><00><13>~<7E>~<7E>rc<00><00>td<01><00>)a/
Return the bbox of the offsetbox and the child offsets.
The bbox should satisfy ``x0 <= x1 and y0 <= y1``.
Parameters
----------
renderer : `.RendererBase` subclass
Returns
-------
bbox
list of (xoffset, yoffset) pairs
z:get_bbox_and_offsets must be overridden in derived classes)<01>NotImplementedError<6F>rrs r<00>_get_bbox_and_child_offsetsz%OffsetBox._get_bbox_and_child_offsetsTs<00><00>"<22> H<>J<01> Jrc<00>.<00>|j|<01>\}}|S)z:Return the bbox of the offsetbox, ignoring parent offsets.)r<>)rrrrBs r<00>get_bboxzOffsetBox.get_bboxfs<00><00><1C>8<>8<><18>B<> <0A><04>g<EFBFBD><13> rc<00><><00>|<01> |jd<01><02>j<00>}|j|<01>} |j||<01>\}}|j ||<04>S#t$r|j<00>\}}Y<00>0wxYw<01>NT<4E><01>root)<06>
get_figure<EFBFBD> _get_rendererr<72>r&<00> TypeError<6F>
translated)rrr<00>px<70>pys r<00>get_window_extentzOffsetBox.get_window_extentks|<00><00> <13> <1B><1B><EFBFBD><EFBFBD>D<EFBFBD><EFBFBD>1<>?<3F>?<3F>A<>H<EFBFBD><13>}<7D>}<7D>X<EFBFBD>&<26><04> '<27><19>_<EFBFBD>_<EFBFBD>T<EFBFBD>8<EFBFBD>4<>F<EFBFBD>B<EFBFBD><02><14><EFBFBD><EFBFBD>r<EFBFBD>2<EFBFBD>&<26>&<26><><19> '<27><19>_<EFBFBD>_<EFBFBD>&<26>F<EFBFBD>B<EFBFBD><02> '<27>s<00>A<00>A;<03>:A;c<00>4<00>|j|<01>\}}|j||<01>\}}t|j<00>|<03>D]2\}\}}|j ||z||zf<02>|j |<01><00>4t ||dtd<02><03><00><04>d|_y)zm
Update the location of children if necessary and draw them
to the given *renderer*.
F<><00><01>pad<61><02>fill<6C>propsN) r<>r&<00>zipr<70>r|<00>drawr-<00>dictry<00> rrrrBr<>r<>rk<00>ox<6F>oys rr<>zOffsetBox.drawvs<><00><00>
<1D>8<>8<><18>B<> <0A><04>g<EFBFBD><15><1F><1F><14>x<EFBFBD>0<><06><02>B<EFBFBD><1E>t<EFBFBD>8<>8<>:<3A>G<EFBFBD>D<> <1D>K<EFBFBD>A<EFBFBD>x<EFBFBD><02>B<EFBFBD> <0A>L<EFBFBD>L<EFBFBD>"<22>r<EFBFBD>'<27>2<EFBFBD><02>7<EFBFBD>+<2B> ,<2C> <0A>F<EFBFBD>F<EFBFBD>8<EFBFBD> <1C> <1D> <15>T<EFBFBD>8<EFBFBD>%<25>t<EFBFBD><02>|<7C>D<><1A><04>
rr)<17>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rarhrmrnro<00>setterrtr|r)r&r<>r<>r<>rir<>r<>r<>r<><00> __classcell__<5F>rfs@rr]r]<00>s~<00><><00><08><1E>
<1E> <0A>^<5E>^<5E><18><18><1F><1F><1C> <20><1C><19>@<1A>$<18><1F><18><1F>$ <1A> <1A>><3E><1E>J<01>$<14>
'<27> rr]c<00>$<00><00>eZdZ d<02>fd<01> Z<03>xZS)<03>
PackerBasec<00><><00><01>t<00>|<00><00>||_||_||_||_||_||_||_y)ao
Parameters
----------
pad : float, default: 0.0
The boundary padding in points.
sep : float, default: 0.0
The spacing between items in points.
width, height : float, optional
Width and height of the container box in pixels, calculated if
*None*.
align : {'top', 'bottom', 'left', 'right', 'center', 'baseline'}, default: 'baseline'
Alignment of boxes.
mode : {'fixed', 'expand', 'equal'}, default: 'fixed'
The packing mode.
- 'fixed' packs the given `.Artist`\s tight with *sep* spacing.
- 'expand' uses the maximal available space to distribute the
artists with equal spacing in between.
- 'equal': Each artist an equal fraction of the available space
and is left-aligned (or top-aligned) therein.
children : list of `.Artist`
The artists to pack.
Notes
-----
*pad* and *sep* are in points and will be scaled with the renderer
dpi, while *width* and *height* are in pixels.
N) r`rarrr?r<>r2rLrd) rr<>r?rrrLr2<00>childrenrfs <20>rrazPackerBase.__init__<5F>sB<00><><00>H <0E><07><18><1A><1C><04> <0B><1A><04>
<EFBFBD><16><04><08><16><04><08><18><04> <09><1A><04>
<EFBFBD>!<21><04>r)r<>r<>NNrFr/N)r<>r<>r<>rar<>r<>s@rr<>r<><00>s<00><><00>:><3E>:><3E>+"<22>+"rr<>c<00><00>eZdZdZd<02>Zy)<04>VPackerz<72>
VPacker packs its children vertically, automatically adjusting their
relative positions at draw time.
.. code-block:: none
+---------+
| Child 1 |
| Child 2 |
| Child 3 |
+---------+
c<00>X<00>|jd<01>}|j|z}|j|z}|j<00>Q|j <00>D]>}t |t <00>s<01>|jdk(s<01>$|j|j<00><00>@|j <00>D<00>cgc]}|j|<01><00><02>}}t|D<00>cgc]}|j<00><02>c}|j|j<00>\\}} }
t|D<00>cgc]}|j<00><02>c}|j||j<00>\} } | | |D<00>cgc]}|j<00><02>c}zz
} | d} | | z
} t!j"|| | |z
| <0B>j%|<03>gt'|
| <0C><00>fScc}wcc}wcc}wcc}w)N<><00>?r0r)<14>points_to_pixelsr<73>r?rr<><00>
isinstancer<EFBFBD>r2r<>r<>r[<00> intervalxrLrDrrRr
r <00>paddedr<64>)rr<00>dpicorr<72>r?rk<00>bboxesrr<00>x1<78>xoffsetsr<00>yoffsetsrs rr<>z#VPacker._get_bbox_and_child_offsets<74>s<><00><00><19>*<2A>*<2A>2<EFBFBD>.<2E><06><12>h<EFBFBD>h<EFBFBD><16><1F><03><12>h<EFBFBD>h<EFBFBD><16><1F><03> <0F>:<3A>:<3A> !<21><19>.<2E>.<2E>0<> ,<2C><01><1D>a<EFBFBD><1A>,<2C><11><16><16>8<EFBFBD>1C<31><15>K<EFBFBD>K<EFBFBD><04>
<EFBFBD>
<EFBFBD>+<2B> ,<2C>15<31>0I<30>0I<30>0K<30>L<>1<EFBFBD>!<21>*<2A>*<2A>X<EFBFBD>&<26>L<><06>L<>1<>(.<2E> /<2F><04>T<EFBFBD>^<5E>^<5E> /<2F><14><1A><1A>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>I<01><1A><08><12>R<EFBFBD>(<28>.<2E>%+<2B> ,<2C>T<EFBFBD>T<EFBFBD>[<5B>[<5B> ,<2C>d<EFBFBD>k<EFBFBD>k<EFBFBD>3<EFBFBD><04> <09> <09>K<01><18><06><08><1A>X<EFBFBD>V<EFBFBD>(D<>T<EFBFBD><14><17><17>(D<>D<>E<><08><1B>A<EFBFBD>;<3B><08><1B>h<EFBFBD>&<26><08> <11> <1C> <1C>R<EFBFBD>(<28><19>B<EFBFBD><12>G<EFBFBD>V<EFBFBD> <<3C> C<> C<>C<EFBFBD> H<> &<26>c<EFBFBD>(<28>H<EFBFBD>%<25> &<26>(<28> (<28><>M<01><> /<2F><> ,<2C><>(Ds<00>F<04>F<08>F"<08>;F'N<>r<>r<>r<>r<>r<>rNrrr<>r<><00>s <00><00> <08>(rr<>c<00><00>eZdZdZd<02>Zy)<04>HPackera 
HPacker packs its children horizontally, automatically adjusting their
relative positions at draw time.
.. code-block:: none
+-------------------------------+
| Child 1 Child 2 Child 3 |
+-------------------------------+
c<00><><00>|jd<01>}|j|z}|j|z}|j<00>D<00>cgc]}|j |<01><00><02>}}|s)t j dddd<02>j|<03>gfSt|D<00>cgc]}|j<00><02>c}|j|j<00>\\}} }
t|D<00>cgc]}|j<00><02>c}|j||j<00>\} } |dj} | |D<00>cgc]}|j<00><02>c}| z
z} t j | || | |z
<00>j|<03>gt!| |
<EFBFBD><00>fScc}wcc}wcc}wcc}w)Nr<4E>r)r<>r<>r?r<>r<>r
r r<>r[<00> intervalyrrLrDrr2rr<>)rrr<>r<>r?rkr<>rrQrRr<>rr<>rs rr<>z#HPacker._get_bbox_and_child_offsets<74>sZ<00><00><19>*<2A>*<2A>2<EFBFBD>.<2E><06><12>h<EFBFBD>h<EFBFBD><16><1F><03><12>h<EFBFBD>h<EFBFBD><16><1F><03>04<30>0I<30>0I<30>0K<30>L<>1<EFBFBD>!<21>*<2A>*<2A>X<EFBFBD>&<26>L<><06>L<><15><17>#<23>#<23>A<EFBFBD>q<EFBFBD>!<21>Q<EFBFBD>/<2F>6<>6<>s<EFBFBD>;<3B>R<EFBFBD>?<3F> ?<3F>1<>(.<2E> /<2F><04>T<EFBFBD>^<5E>^<5E> /<2F><14><1B><1B>d<EFBFBD>j<EFBFBD>j<EFBFBD>J<01><1A><08><12>R<EFBFBD>(<28>-<2D>$*<2A> +<2B>D<EFBFBD>T<EFBFBD>Z<EFBFBD>Z<EFBFBD> +<2B>T<EFBFBD>Z<EFBFBD>Z<EFBFBD><13>d<EFBFBD>i<EFBFBD>i<EFBFBD>I<01><0F><05>x<EFBFBD><14>A<EFBFBD>Y<EFBFBD>\<5C>\<5C><02><10>&<26>1<>$<24>d<EFBFBD>g<EFBFBD>g<EFBFBD>1<>B<EFBFBD>6<>7<><08><14> <20> <20><12>R<EFBFBD><15><02>R<EFBFBD><07>8<>?<3F>?<3F><03>D<>*<2A>#<23>h<EFBFBD><08>)<29>*<2A>,<2C> ,<2C><>M<01><>
0<><30> +<2B><>2s<00>E*<04>E/<08>E4<08>E9Nr<4E>rNrrr<>r<><00>s <00><00> <08>,rr<>c<00>F<00><00>eZdZdZd
ddd<04><02>fd<05> Zd<06>Zd<07>Zd d<08>Zd <09>Z<08>xZ S) <0C> PaddedBoxa<78>
A container to add a padding around an `.Artist`.
The `.PaddedBox` contains a `.FancyBboxPatch` that is used to visualize
it when rendering.
.. code-block:: none
+----------------------------+
| |
| |
| |
| <--pad--> Artist |
| ^ |
| pad |
| v |
+----------------------------+
Attributes
----------
pad : float
The padding in points.
patch : `.FancyBboxPatch`
When *draw_frame* is True, this `.FancyBboxPatch` is made visible and
creates a border around the box.
FN)<02>
draw_frame<EFBFBD> patch_attrsc <00><><00><01>t<00>|<00><00>||_|g|_t ddddddd|d<07><08> |_|<04>|j
j |<04>y y )
a
Parameters
----------
child : `~matplotlib.artist.Artist`
The contained `.Artist`.
pad : float, default: 0.0
The padding in points. This will be scaled with the renderer dpi.
In contrast, *width* and *height* are in *pixels* and thus not
scaled.
draw_frame : bool
Whether to draw the contained `.FancyBboxPatch`.
patch_attrs : dict or None
Additional parameters passed to the contained `.FancyBboxPatch`.
<20>r<>r<>r<>r@<00>kr4T<> square,pad=0<> r{rr<00> facecolor<6F> edgecolor<6F>mutation_scale<6C>snap<61>visible<6C>boxstyleN)r`rar<>rdr<00>patch<63>update)r<00>childr<64>r<>r<>rfs <20>rrazPaddedBox.__init__sc<00><><00> <0E><07><18><1A><16><04><08><1F><17><04><0E>#<23><19><12>B<EFBFBD><19>S<EFBFBD><1C><15><1E>#<23> 
<EFBFBD><04>
<EFBFBD> <17> "<22> <10>J<EFBFBD>J<EFBFBD> <1D> <1D>k<EFBFBD> *<2A> #rc<00><><00>|j|jd<01>z}|jdj|<01>j |<02>dgfS)Nr<4E>rr_)r<>r<>rdr<>r<>)rrr<>s rr<>z%PaddedBox._get_bbox_and_child_offsets6sG<00><00><12>h<EFBFBD>h<EFBFBD><18>2<>2<>2<EFBFBD>6<>6<><03><14><0E><0E>q<EFBFBD>!<21>*<2A>*<2A>8<EFBFBD>4<>;<3B>;<3B>C<EFBFBD>@<40>6<EFBFBD>(<28>K<>Krc<00>N<00>|j|<01>\}}|j||<01>\}}t|j<00>|<03>D]!\}\}}|j ||z||zf<02><00>#|j |<01>|j<00>D]}|j |<01><00>d|_y<00>NF)r<>r&r<>r<>r|r<>r<>ryr<>s rr<>zPaddedBox.draw;s<><00><00><1C>8<>8<><18>B<> <0A><04>g<EFBFBD><15><1F><1F><14>x<EFBFBD>0<><06><02>B<EFBFBD><1E>t<EFBFBD>8<>8<>:<3A>G<EFBFBD>D<> -<2D>K<EFBFBD>A<EFBFBD>x<EFBFBD><02>B<EFBFBD> <0A>L<EFBFBD>L<EFBFBD>"<22>r<EFBFBD>'<27>2<EFBFBD><02>7<EFBFBD>+<2B> ,<2C> -<2D> <0A><0F><0F><08>!<21><15>*<2A>*<2A>,<2C> <1D>A<EFBFBD> <0A>F<EFBFBD>F<EFBFBD>8<EFBFBD> <1C> <1D><1B><04>
rc<00><><00>|jj|j<00>|r|jj|<02>d|_y<00>NT)r<><00>
set_bounds<EFBFBD>bounds<64>set_mutation_scalery<00>rr<00>fontsizes r<00> update_framezPaddedBox.update_frameIs4<00><00> <0C>
<EFBFBD>
<EFBFBD><1D><1D>d<EFBFBD>k<EFBFBD>k<EFBFBD>*<2A> <13> <10>J<EFBFBD>J<EFBFBD> )<29> )<29>(<28> 3<><19><04>
rc<00>z<00>|j|j|<01><00>|jj|<01>yr)r<>r<>r<>r<>r<>s rr<>zPaddedBox.draw_frameOs+<00><00> <0C><19><19>$<24>0<>0<><18>:<3A>;<3B> <0C>
<EFBFBD>
<EFBFBD><0F><0F><08>!r)r<>r)
r<EFBFBD>r<>r<>r<>rar<>r<>r<>r<>r<>r<>s@rr<>r<><00>s+<00><><00><08>6+<2B>E<EFBFBD>t<EFBFBD>+<2B>:L<01>
<1B><1A> "rr<>c<00><><00><00>eZdZdZd <0C>fd<02> Zed<03><00>Zejd<04><00>Zd<05>Zd<06>Z d<07>Z
d<08>Z d <09>Z d
<EFBFBD>Z d <0B>Z<0E>xZS) <0A> DrawingAreaz<61>
The DrawingArea can contain any Artist as a child. The DrawingArea
has a fixed width and height. The position of children relative to
the parent is fixed. The children can be clipped at the
boundaries of the parent.
c<00><><00><01>t<00>|<00><00>||_||_||_||_||_tj<00>|_ tj<00>|_
y)a"
Parameters
----------
width, height : float
Width and height of the container box.
xdescent, ydescent : float
Descent of the box in x- and y-direction.
clip : bool
Whether to clip the children to the box.
N) r`rarrrr<00>_clip_children<65> mtransforms<6D>Affine2D<32>offset_transform<72> dpi_transform)rrrrr<00>cliprfs <20>rrazDrawingArea.__init__]sV<00><><00> <0E><07><18><1A><1A><04>
<EFBFBD><1C><04> <0B> <20><04> <0A> <20><04> <0A>"<22><04><1B> +<2B> 4<> 4<> 6<><04><1D>(<28>1<>1<>3<><04>rc<00><00>|jS)zl
If the children of this DrawingArea should be clipped
by DrawingArea bounding box.
)r<>r<>s r<00> clip_childrenzDrawingArea.clip_childrenqs<00><00> <14>"<22>"<22>"rc<00>2<00>t|<01>|_d|_yr<>)<03>boolr<6C>ry)r<00>vals rr<>zDrawingArea.clip_childrenys<00><00>"<22>3<EFBFBD>i<EFBFBD><04><1B><19><04>
rc<00>4<00>|j|jzS)zX
Return the `~matplotlib.transforms.Transform` applied to the children.
)r<>r<>r<>s r<00> get_transformzDrawingArea.get_transform~s<00><00><14>!<21>!<21>D<EFBFBD>$9<>$9<>9<>9rc<00><00>y<01>z+
set_transform is ignored.
NrN<00>r<00>ts r<00> set_transformzDrawingArea.set_transform<72><00><00>rc<00><><00>||_|jj<00>|jj|d|d<00>d|_y<04>z<>
Set the offset of the container.
Parameters
----------
xy : (float, float)
The (x, y) coordinates of the offset in display units.
rr4TN<54>rer<><00>clear<61> translateryrzs rr|zDrawingArea.set_offset<65><00>B<00><00><1A><04> <0C> <0C><1D><1D>#<23>#<23>%<25> <0C><1D><1D>'<27>'<27><02>1<EFBFBD><05>r<EFBFBD>!<21>u<EFBFBD>5<><19><04>
rc<00><00>|jS<00>zReturn offset of the container.<2E>rer<>s rr&zDrawingArea.get_offset<65><00> <00><00><13>|<7C>|<7C>rc<00><><00>|jd<01>}tj|j |z|j |z|j
|z|j |z<00>S)Nr<4E>)r<>r
r rrrr)rr<00>dpi_cors rr<>zDrawingArea.get_bbox<6F>sW<00><00><1A>+<2B>+<2B>B<EFBFBD>/<2F><07><13><1F><1F> <11>]<5D>]<5D>N<EFBFBD>W<EFBFBD> $<24>t<EFBFBD>}<7D>}<7D>n<EFBFBD>w<EFBFBD>&><3E> <10>J<EFBFBD>J<EFBFBD><17> <20>$<24>+<2B>+<2B><07>"7<>9<> 9rc<00><00>|jj|<01>|j<00>s|j|j <00><00>|j
<00>|j
|_|j d<02><03>}|<02>|j|<02>yy)<04>&Add an `.Artist` to the container box.NFr<46>)rd<00>append<6E>is_transform_setr<74>r<>ror<>rh)rrvrjs r<00>
add_artistzDrawingArea.add_artist<73>sp<00><00> <0C><0E><0E><1D><1D>a<EFBFBD> <20><10>!<21>!<21>#<23> <0A>O<EFBFBD>O<EFBFBD>D<EFBFBD>.<2E>.<2E>0<> 1<> <0F>9<EFBFBD>9<EFBFBD> <20><19>Y<EFBFBD>Y<EFBFBD>A<EFBFBD>F<EFBFBD><12>o<EFBFBD>o<EFBFBD>5<EFBFBD>o<EFBFBD>)<29><03> <0E>?<3F> <0A>L<EFBFBD>L<EFBFBD><13> <1D> rc <00>T<00>|jd<01>}|jj<00>|jj|<02>t j
t jddgd|jg|j|jg|jdgg<04>|j<00><00>}|jD]H}|jr)|js|js|j|<03>|j!|<01><00>Jt#||dt%d<04><05><00><06>d|_y)Nr<4E>rFr<46>r<>r<>)r<>r<>r<><00>scaler<65><00>TransformedPath<74>mpath<74>Pathrrr<>rdr<><00>clipbox<6F> _clippath<74> set_clip_pathr<68>r-r<>ry)rrr<00>tpathrks rr<>zDrawingArea.draw<61>s<><00><00><1B>+<2B>+<2B>B<EFBFBD>/<2F><07> <0C><1A><1A> <20> <20>"<22> <0C><1A><1A> <20> <20><17>)<29>
<1C>+<2B>+<2B> <11>J<EFBFBD>J<EFBFBD><11>A<EFBFBD><06><11>D<EFBFBD>K<EFBFBD>K<EFBFBD> 0<><1D><1A><1A>T<EFBFBD>[<5B>[<5B>1<><1D><1A><1A>Q<EFBFBD><0F>)<29> *<2A> <11> <1E> <1E> <20> "<22><05>
<16><1E><1E> <1D>A<EFBFBD><13>"<22>"<22>A<EFBFBD>I<EFBFBD>I<EFBFBD><11><1B><1B><11><0F><0F><05>&<26> <0A>F<EFBFBD>F<EFBFBD>8<EFBFBD> <1C> <1D>
<15>T<EFBFBD>8<EFBFBD>%<25>t<EFBFBD><02>|<7C>D<><1A><04>
r)r<>r<>F)r<>r<>r<>r<>ra<00>propertyr<79>r<>r<>r<>r|r&r<>r r<>r<>r<>s@rr<>r<>Us^<00><><00><08>4<>(<0E>#<23><0E>#<23><13><19><19><1A><1A><1A>:<3A>  <0C>
<1A><1C>9<> <1E>rr<>c<00>`<00><00>eZdZdZddd<04><02>fd<05>
Zd<06>Zd<07>Zd<08>Zd <09>Zd
<EFBFBD>Z d <0B>Z
d <0C>Z d <0A>Z d<0E>Z <0A>xZS)<0F>TextAreaz<61>
The TextArea is a container artist for a single Text instance.
The text is placed at (0, 0) with baseline+left alignment, by default. The
width and height of the TextArea instance is the width and height of its
child text.
NF)<02> textprops<70>multilinebaselinec<00>^<00><01>|<02>i}tjdd|fi|<02><01>|_t<00>|<00><00>|jg|_t j<00>|_t j<00>|_ |jj|j|jz<00>||_ y)a<>
Parameters
----------
s : str
The text to be displayed.
textprops : dict, default: {}
Dictionary of keyword parameters to be passed to the `.Text`
instance in the TextArea.
multilinebaseline : bool, default: False
Whether the baseline for multiline text is adjusted so that it
is (approximately) center-aligned with single-line text.
Nr) <0C>mtext<78>Text<78>_textr`rardr<>r<>r<><00>_baseline_transformr<6D><00>_multilinebaseline)r<00>srrrfs <20>rrazTextArea.__init__<5F>s<><00><><00>" <15> <1C><1A>I<EFBFBD><1A>Z<EFBFBD>Z<EFBFBD><01>1<EFBFBD>a<EFBFBD>5<>9<EFBFBD>5<><04>
<EFBFBD> <0A><07><18><1A><1E>*<2A>*<2A><1C><04><0E> +<2B> 4<> 4<> 6<><04><1D>#.<2E>#7<>#7<>#9<><04> <20> <0C>
<EFBFBD>
<EFBFBD> <20> <20><14>!6<>!6<>!%<25>!9<>!9<>":<3A> ;<3B>"3<><04>rc<00>H<00>|jj|<01>d|_y)z&Set the text of this area as a string.TN)r<00>set_textry<00>rrs rr zTextArea.set_text<78>s<00><00> <0C>
<EFBFBD>
<EFBFBD><1B><1B>A<EFBFBD><1E><19><04>
rc<00>6<00>|jj<00>S)z5Return the string representation of this area's text.)r<00>get_textr<74>s rr#zTextArea.get_text<78>s<00><00><13>z<EFBFBD>z<EFBFBD>"<22>"<22>$<24>$rc<00> <00>||_d|_y)aX
Set multilinebaseline.
If True, the baseline for multiline text is adjusted so that it is
(approximately) center-aligned with single-line text. This is used
e.g. by the legend implementation so that single-line labels are
baseline-aligned, but multiline labels are "center"-aligned with them.
TN)rryr<>s r<00>set_multilinebaselinezTextArea.set_multilinebaseline<6E>s<00><00>#$<24><04><1F><19><04>
rc<00><00>|jS)z(
Get multilinebaseline.
)rr<>s r<00>get_multilinebaselinezTextArea.get_multilinebaseline<6E>s<00><00><14>&<26>&<26>&rc<00><00>yr<>rNr<>s rr<>zTextArea.set_transformr<>rc<00><><00>||_|jj<00>|jj|d|d<00>d|_yr<>r<>rzs rr|zTextArea.set_offset
r<>rc<00><00>|jSrrr<>s rr&zTextArea.get_offsetrrc <00><><00>tj|d|jj|jj <00>rdnd|j d<04><05>j <00><06>\}}}|jj|<01>\}}}|j\}} |jj<00>t|<06>dkDr<|jr0d| zd||z
zz
}
|jjd ||
z
<00>|
}nt||z
| |z
<00>} | |z} |jj<00>} d | d
z | d <0B>| } t!j"| | || <09>S) N<>lp<6C>TeXFTr<54>)<02>ismath<74>dpir4rWr<00>)rGrKrI)r<00>_get_text_metrics_with_cacher<00>_fontproperties<65>
get_usetexr<EFBFBD>r/<00> _get_layout<75>sizerr<>r8rr<>r:<00>get_horizontalalignmentr
r )rr<00>_<>h_<68>d_r<00>info<66>ydr@<00>h<>yd_new<65>h_d<5F>hars rr<>zTextArea.get_bboxs5<00><00><19>6<>6<> <14>d<EFBFBD>D<EFBFBD>J<EFBFBD>J<EFBFBD>6<>6<> <20>J<EFBFBD>J<EFBFBD>1<>1<>3<>5<EFBFBD><15><14><0F><0F>T<EFBFBD><0F>*<2A>.<2E>.<2E>0<> <09><01>2<EFBFBD>r<EFBFBD>
<1E><1A><1A>/<2F>/<2F><08>9<><0E><04>d<EFBFBD>B<EFBFBD><13>y<EFBFBD>y<EFBFBD><04><01>1<EFBFBD> <0C> <20> <20>&<26>&<26>(<28> <0E>t<EFBFBD>9<EFBFBD>q<EFBFBD>=<3D>T<EFBFBD>4<>4<><18>1<EFBFBD>W<EFBFBD>s<EFBFBD>b<EFBFBD>2<EFBFBD>g<EFBFBD><EFBFBD>.<2E>F<EFBFBD> <10> $<24> $<24> .<2E> .<2E>q<EFBFBD>"<22>v<EFBFBD>+<2B> ><3E><17>B<EFBFBD><15>b<EFBFBD>2<EFBFBD>g<EFBFBD>q<EFBFBD>2<EFBFBD>v<EFBFBD>&<26>C<EFBFBD><13>b<EFBFBD><08>A<EFBFBD> <11>Z<EFBFBD>Z<EFBFBD> /<2F> /<2F> 1<><02><17>A<EFBFBD>2<EFBFBD><01>6<EFBFBD>Q<EFBFBD>B<EFBFBD> 7<><02> ;<3B><02><13><1F><1F><02>R<EFBFBD>C<EFBFBD><11>A<EFBFBD>.<2E>.rc<00>z<00>|jj|<01>t||dtd<02><03><00><04>d|_y<00>NFr<46>r<>r<>)rr<>r-r<>ryr<>s rr<>z TextArea.draw4s+<00><00> <0C>
<EFBFBD>
<EFBFBD><0F><0F><08>!<21><14>T<EFBFBD>8<EFBFBD>%<25>t<EFBFBD><02>|<7C>D<><1A><04>
r)r<>r<>r<>r<>rar r#r%r'r<>r|r&r<>r<>r<>r<>s@rrr<00>sB<00><><00><08> <20>#(<28>4<>8<1A>
%<25>
<1A>'<27>  <0C>
<1A><1C>/<2F>0rrc<00>L<00><00>eZdZdZ<03>fd<02>Zd<03>Zd<04>Zd<05>Zd<06>Zd<07>Z d<08>Z
d <09>Z <0B>xZ S)
<EFBFBD>AuxTransformBoxa<78>
An OffsetBox with an auxiliary transform.
All child artists are first transformed with *aux_transform*, then
translated with an offset (the same for all children) so the bounding
box of the children matches the drawn box. (In other words, adding an
arbitrary translation to *aux_transform* has no effect as it will be
cancelled out by the later offsetting.)
`AuxTransformBox` is similar to `.DrawingArea`, except that the extent of
the box is not predetermined but calculated from the window extent of its
children, and the extent of the children will be calculated in the
transformed coordinate.
c<00><><00><01>||_t<00>|<00> <00>tj<00>|_tj<00>|_yr)<07> aux_transformr`rar<>r<>r<><00>ref_offset_transform)rrErfs <20>rrazAuxTransformBox.__init__Js:<00><><00>*<2A><04><1A> <0A><07><18><1A> +<2B> 4<> 4<> 6<><04><1D>%0<>$8<>$8<>$:<3A><04>!rc<00><><00>|jj|<01>|j|j<00><00>d|_y)rTN)rdrr<>r<>ry)rrvs rr zAuxTransformBox.add_artistRs0<00><00> <0C><0E><0E><1D><1D>a<EFBFBD> <20> <09><0F><0F><04>*<2A>*<2A>,<2C>-<2D><19><04>
rc<00>N<00>|j|jz|jzS)z0Return the `.Transform` applied to the children.)rErFr<>r<>s rr<>zAuxTransformBox.get_transformXs,<00><00><14>"<22>"<22><16>+<2B>+<2B>,<2C><16>'<27>'<27>(<28> )rc<00><00>yr<>rNr<>s rr<>zAuxTransformBox.set_transform^r<>rc<00><><00>||_|jj<00>|jj|d|d<00>d|_yr<>r<>rzs rr|zAuxTransformBox.set_offsetcr<>rc<00><00>|jSrrr<>s rr&zAuxTransformBox.get_offsetqrrc<00><00>|jj<00>}|jj<00>|jj<00>|jD<00>cgc]}|j |<01><00><02>}}t j|<04>}|jj|j |j <00>|jj|<02>t jdd|j|j<00>Scc}w<00>Nr)r<><00>
get_matrixrFr<>rdr<>r
<00>unionr<6E>rrQ<00>
set_matrixr rr)rr<00>_offrkr<><00>ubs rr<>zAuxTransformBox.get_bboxus<><00><00><13>$<24>$<24>/<2F>/<2F>1<><04> <0C>!<21>!<21>'<27>'<27>)<29> <0C><1D><1D>#<23>#<23>%<25>9=<3D><1E><1E>H<>A<EFBFBD>!<21>%<25>%<25>h<EFBFBD>/<2F>H<><06>H<> <11>Z<EFBFBD>Z<EFBFBD><06> <1F><02> <0C>!<21>!<21>+<2B>+<2B>R<EFBFBD>U<EFBFBD>U<EFBFBD>F<EFBFBD>R<EFBFBD>U<EFBFBD>U<EFBFBD>F<EFBFBD>;<3B> <0C><1D><1D>(<28>(<28><14>.<2E><13><1F><1F><01>1<EFBFBD>b<EFBFBD>h<EFBFBD>h<EFBFBD><02> <09> <09>:<3A>:<3A><> Is<00>Dc<00><><00>|jD]}|j|<01><00>t||dtd<02><03><00><04>d|_yrA)rdr<>r-r<>ry)rrrks rr<>zAuxTransformBox.draw<61>s:<00><00><15><1E><1E> <1D>A<EFBFBD> <0A>F<EFBFBD>F<EFBFBD>8<EFBFBD> <1C> <1D><14>T<EFBFBD>8<EFBFBD>%<25>t<EFBFBD><02>|<7C>D<><1A><04>
r) r<>r<>r<>r<>rar r<>r<>r|r&r<>r<>r<>r<>s@rrCrC;s0<00><><00> <08>;<3B><1A> )<29>  <0C>
<1A><1C> ;<3B>rrCc <00><><00><00>eZdZdZdZdddddddd d
d d <0C>
Zd ddddddd<11><07>fd<12>
Zd<13>Zd<14>Zd<15>Z d<16>Z
d<17>Z dd<18>Z e d<19><00>Zdd<1A>Zd<1B>Z<10>xZS)<1D>AnchoredOffsetboxa/
An OffsetBox placed according to location *loc*.
AnchoredOffsetbox has a single child. When multiple children are needed,
use an extra OffsetBox to enclose them. By default, the offset box is
anchored against its parent Axes. You may explicitly specify the
*bbox_to_anchor*.
<20>r4r0<00><00><00><00><00><00> <00>
)
z upper rightz
upper leftz
lower leftz lower rightrIz center leftz center rightz lower centerz upper centerrK<><E79A99><EFBFBD><EFBFBD><EFBFBD>?rWNT)r<><00> borderpadr<64><00>prop<6F>frameon<6F>bbox_to_anchor<6F>bbox_transformc <00>V<00><01>t<00>
|<00>d i| <09><01>|j||<08>|j|<04>t |t
<00>r!t j|j|<01><01>}||_ ||_
||_ |<05>#ttjd<00><04>|_nZtj |<05>|_t |t"<00>r0d|vr,|jj%tjd<00>t'ddddd |jj)<00>d
|d <0B> <0C> |_y)a
Parameters
----------
loc : str
The box location. Valid locations are
'upper left', 'upper center', 'upper right',
'center left', 'center', 'center right',
'lower left', 'lower center', 'lower right'.
For backward compatibility, numeric values are accepted as well.
See the parameter *loc* of `.Legend` for details.
pad : float, default: 0.4
Padding around the child as fraction of the fontsize.
borderpad : float, default: 0.5
Padding between the offsetbox frame and the *bbox_to_anchor*.
child : `.OffsetBox`
The box that will be anchored.
prop : `.FontProperties`
This is only used as a reference for paddings. If not given,
:rc:`legend.fontsize` is used.
frameon : bool
Whether to draw a frame around the box.
bbox_to_anchor : `.BboxBase`, 2-tuple, or 4-tuple of floats
Box that is used to position the legend in conjunction with *loc*.
bbox_transform : None or :class:`matplotlib.transforms.Transform`
The transform for the bounding box (*bbox_to_anchor*).
**kwargs
All other parameters are passed on to `.OffsetBox`.
Notes
-----
See `.Legend` for a detailed description of the anchoring mechanism.
)<01>locN<63>legend.fontsize<7A>r5r5r<>r<>r@r<>Tr<54>r<>rN)r`ra<00>set_bbox_to_anchor<6F> set_childr<64><00>strr<00> check_getitem<65>codesrer_r<>r<00>mpl<70>rcParamsr`<00> _from_anyr<79><00>set_sizer<00>get_size_in_pointsr<73>) rrer<>r_r<>r`rarbrcr"rfs <20>rrazAnchoredOffsetbox.__init__<5F>s<><00><><00>L <0E><07><18>"<22>6<EFBFBD>"<22> <0C><1F><1F><0E><0E>?<3F> <0C><0E><0E>u<EFBFBD><1D> <15>c<EFBFBD>3<EFBFBD> <1F><16>$<24>$<24>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>S<EFBFBD>9<>C<EFBFBD><16><04><08>"<22><04><0E><16><04><08> <0F><<3C>&<26>C<EFBFBD>L<EFBFBD>L<EFBFBD>9J<39>,K<>L<>D<EFBFBD>I<EFBFBD>&<26>0<>0<><14>6<>D<EFBFBD>I<EFBFBD><19>$<24><04>%<25>&<26><04>*<<3C><14> <09> <09>"<22>"<22>3<EFBFBD><<3C><<3C>0A<30>#B<>C<>#<23><19><12>B<EFBFBD><19>S<EFBFBD><1F>9<EFBFBD>9<EFBFBD>7<>7<>9<><15><1B>#<23> 
<EFBFBD><04>
rc<00>F<00>||_|<01>|j|_d|_y)zSet the child to be anchored.NT)<03>_childrory)rr<>s rrizAnchoredOffsetbox.set_child<6C>s!<00><00><1B><04> <0B> <10> <1C><1D><19><19>E<EFBFBD>J<EFBFBD><19><04>
rc<00><00>|jS)zReturn the child.<2E>rsr<>s r<00> get_childzAnchoredOffsetbox.get_child<6C>s <00><00><13>{<7B>{<7B>rc<00><00>|jgS)zReturn the list of children.rur<>s rrizAnchoredOffsetbox.get_children<65>s<00><00><14> <0B> <0B>}<7D>rc<00><><00>|j|jj<00><00>}|j|z}|j <00>j |<01>j |<03>Sr)r<>r`rqr<>rvr<>r<>)rrr<>r<>s rr<>zAnchoredOffsetbox.get_bbox<6F>sP<00><00><1B>,<2C>,<2C>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>-I<>-I<>-K<>L<><08><12>h<EFBFBD>h<EFBFBD><18>!<21><03><13>~<7E>~<7E><1F>(<28>(<28><18>2<>9<>9<>#<23>><3E>>rc<00><><00>|j<00>|jjS|j}|<01> |jSt |j|<01>S)z,Return the bbox that the box is anchored to.)<05>_bbox_to_anchorror<00>_bbox_to_anchor_transformr )r<00> transforms r<00>get_bbox_to_anchorz$AnchoredOffsetbox.get_bbox_to_anchor<6F>sL<00><00> <0F> <1F> <1F> '<27><17>9<EFBFBD>9<EFBFBD>><3E>><3E> !<21><1C>6<>6<>I<EFBFBD><18> <20><1B>+<2B>+<2B>+<2B>&<26>t<EFBFBD>';<3B>';<3B>Y<EFBFBD>G<>Grc<00><><00>|<01>t|t<00>r||_n4 t|<01>}|dk(r |d|dddg}t j|<01>|_||_d|_ y#t$r}t d|<01><00><02>|<04>d}~wwxYw)aB
Set the bbox that the box is anchored to.
*bbox* can be a Bbox instance, a list of [left, bottom, width,
height], or a list of [left, bottom] where the width and
height will be assumed to be zero. The bbox will be
transformed to display coordinate by the given transform.
NzInvalid bbox: r0rr4T)
r<EFBFBD>r rzr8r<>r;r
r r{ry)rrr|<00>l<>errs rrhz$AnchoredOffsetbox.set_bbox_to_anchors<><00><00> <10><<3C>:<3A>d<EFBFBD>H<EFBFBD>5<>#'<27>D<EFBFBD> <20> C<01><17><04>I<EFBFBD><01><11>A<EFBFBD>v<EFBFBD><1C>Q<EFBFBD><07><14>a<EFBFBD><17>!<21>Q<EFBFBD>/<2F><04>#'<27>#3<>#3<>T<EFBFBD>#:<3A>D<EFBFBD> <20>)2<><04>&<26><19><04>
<EFBFBD><EFBFBD><1D> C<01> <20>><3E>$<24><16>!8<>9<>s<EFBFBD>B<><42> C<01>s<00> A<00> A;<03>'A6<03>6A;c <00>T<00>|j|j|jj<00><00>z}|j <00>}t |j tjdd|j|j<00>||<03>\}}||jz
||jz
fSrM) r_r<>r`rqr}<00>_get_anchored_bboxrer
r rrrrQ)rrrr<>rbrrQs rr&zAnchoredOffsetbox.get_offsets<><00><00><14>~<7E>~<7E><19>*<2A>*<2A>4<EFBFBD>9<EFBFBD>9<EFBFBD>+G<>+G<>+I<>J<>K<01><03><1D>0<>0<>2<><0E>#<23> <10>H<EFBFBD>H<EFBFBD>d<EFBFBD>&<26>&<26>q<EFBFBD>!<21>T<EFBFBD>Z<EFBFBD>Z<EFBFBD><14><1B><1B>E<> <1A>C<EFBFBD>!<21><06><02>B<EFBFBD><12>D<EFBFBD>G<EFBFBD>G<EFBFBD>|<7C>R<EFBFBD>$<24>'<27>'<27>\<5C>)<29>)rc<00><><00>|jj|j<00>|r|jj|<02>yyr)r<>r<>r<>r<>r<>s rr<>zAnchoredOffsetbox.update_frame)s2<00><00> <0C>
<EFBFBD>
<EFBFBD><1D><1D>d<EFBFBD>k<EFBFBD>k<EFBFBD>*<2A> <13> <10>J<EFBFBD>J<EFBFBD> )<29> )<29>(<28> 3<> rc<00><><00>|j<00>sy|j|<01>}|j|jj <00><00>}|j ||<03>|j j|<01>|j|j|<01>|<01>\}}|j<00>j||f<02>|j<00>j|<01>d|_ yr<>) r<>r<>r<>r`rqr<>r<>r<>r&r<>rvr|ry)rrrr<>r<>r<>s rr<>zAnchoredOffsetbox.draw.s<><00><00><13><1F><1F>!<21> <12><14>%<25>%<25>h<EFBFBD>/<2F><04><1B>,<2C>,<2C>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>-I<>-I<>-K<>L<><08> <0C><19><19>$<24><08>)<29> <0C>
<EFBFBD>
<EFBFBD><0F><0F><08>!<21><15><1F><1F><14><1D><1D>x<EFBFBD>!8<>(<28>C<><06><02>B<EFBFBD> <0C><0E><0E><18>#<23>#<23>R<EFBFBD><12>H<EFBFBD>-<2D> <0C><0E><0E><18><1D><1D>h<EFBFBD>'<27><1A><04>
rr)r<>r<>r<>r<><00>zorderrlrarirvrir<>r}rhr)r&r<>r<>r<>r<>s@rrUrU<00>s<><00><><00><08><0F>F<EFBFBD><1E><1C><1C><1D><17><1D><1E><1E><1E><19>
<0F>E<EFBFBD><19>C<EFBFBD><1B>$<24><04> $<24> $<24> @
<EFBFBD>D<1A><1B><1D>?<3F> H<01><1A>2<18>*<2A><18>*<2A>4<>
rrUc<00>n<00>gd<01>|}|j| <00>}|j||<05><02>jS)z}
Return the (x, y) position of the *bbox* anchored at the *parentbbox* with
the *loc* code with the *borderpad*.
) N<>NE<4E>NW<4E>SW<53>SE<53>E<>Wr<57><00>S<>N<>C)<01> container)r<><00>anchored<65>p0)rer<00>
parentbboxr_rkr<>s rr<>r<>?s:<00><00> E<01>S<EFBFBD>I<>A<EFBFBD><1A>!<21>!<21>9<EFBFBD>*<2A>-<2D>I<EFBFBD> <0F>=<3D>=<3D><11>i<EFBFBD>=<3D> 0<> 3<> 3<>3rc<00>,<00><00>eZdZdZdddd<05><03>fd<06>
Z<04>xZS)<07> AnchoredTextz&
AnchoredOffsetbox with Text.
r^rWN)r<>r_r`c <00><><00><01>|<05>i}ddh}|t|<05>zr td<04><00>t||<05><05>|_|jjj <00>}t <00> |<00>|f|||j|d<06>|<06><01>y)aq
Parameters
----------
s : str
Text.
loc : str
Location code. See `AnchoredOffsetbox`.
pad : float, default: 0.4
Padding around the text as fraction of the fontsize.
borderpad : float, default: 0.5
Spacing between the offsetbox frame and the *bbox_to_anchor*.
prop : dict, optional
Dictionary of keyword parameters to be passed to the
`~matplotlib.text.Text` instance contained inside AnchoredText.
**kwargs
All other parameters are passed to `AnchoredOffsetbox`.
N<>va<76>verticalalignmentz<Mixing verticalalignment with AnchoredText is not supported.)r)r<>r_r<>r`)<08>setr;r<00>txtr<00>get_fontpropertiesr`ra)
rrrer<>r_r`r"<00> badkwargs<67>fprfs
<20>rrazAnchoredText.__init__Ps<><00><><00>0 <10><<3C><15>D<EFBFBD><19>.<2E>/<2F> <09> <14>s<EFBFBD>4<EFBFBD>y<EFBFBD> <20><1C>N<>P<01> P<01><1C>A<EFBFBD><14>.<2E><04><08> <11>X<EFBFBD>X<EFBFBD>^<5E>^<5E> .<2E> .<2E> 0<><02> <0A><07><18> <0F> <16><18>I<EFBFBD>T<EFBFBD>X<EFBFBD>X<EFBFBD>B<EFBFBD> <16><14> r)r<>r<>r<>r<>rar<>r<>s@rr<>r<>Ks<00><><00><08>'*<2A>S<EFBFBD>t<EFBFBD>#<16>#rr<>c
<00>d<00><00>eZdZdddddddddd<06> <09>fd<07>
Zd<08>Zd <09>Zd
<EFBFBD>Zd <0B>Zd <0C>Zd <0A>Z d<0E>Z
d<0F>Z <0B>xZ S)<10> OffsetImager4NTg@F) <09>zoom<6F>cmap<61>norm<72> interpolation<6F>origin<69>
filternorm<EFBFBD> filterrad<61>resamplerc <00><><00><01>t<00> |<00><00>|
|_td|j||||||| d<01>| <0B><01>|_|j
g|_|j|<02>|j|<01>y)N)rr<>r<>r<>r<>r<>r<>r<>rN) r`ra<00>_dpi_corrr<><00>imagerd<00>set_zoom<6F>set_data) r<00>arrr<72>r<>r<>r<>r<>r<>r<>r<>rr"rfs <20>rrazOffsetImage.__init__xsv<00><><00> <0E><07><18><1A><1F><04> <0A><1E> !<21>D<EFBFBD>$:<3A>$:<3A>$(<28>$(<28>-:<3A>&,<2C>*4<>)2<>(0<> !<21>"(<28> !<21><04>
<EFBFBD><1F>*<2A>*<2A><1C><04><0E> <0C> <0A> <0A>d<EFBFBD><1B> <0C> <0A> <0A>c<EFBFBD>rc<00><><00>tj|<01>|_|jj |j<00>d|_yr<>)r6<00>asarray<61>_datar<61>r<>ry)rr<>s rr<>zOffsetImage.set_data<74>s.<00><00><17>Z<EFBFBD>Z<EFBFBD><03>_<EFBFBD><04>
<EFBFBD> <0C>
<EFBFBD>
<EFBFBD><1B><1B>D<EFBFBD>J<EFBFBD>J<EFBFBD>'<27><19><04>
rc<00><00>|jSr)r<>r<>s r<00>get_datazOffsetImage.get_data<74><00> <00><00><13>z<EFBFBD>z<EFBFBD>rc<00> <00>||_d|_yr<>)<02>_zoomry)rr<>s rr<>zOffsetImage.set_zoom<6F>s<00><00><19><04>
<EFBFBD><19><04>
rc<00><00>|jSr)r<>r<>s r<00>get_zoomzOffsetImage.get_zoom<6F>r<>rc<00><00>|jSrrr<>s rr&zOffsetImage.get_offset<65>rrc<00><00>|jgSr)r<>r<>s rrizOffsetImage.get_children<65>s<00><00><14>
<EFBFBD>
<EFBFBD>|<7C>rc<00><><00>|jr|jd<01>nd}|j<00>}|j<00>}|jdd\}}||z|z||z|z}}t j dd||<08>S)Nr<4E>r0r)r<>r<>r<>r<><00>shaper
r ) rrrr<><00>data<74>ny<6E>nxr@r<s rr<>zOffsetImage.get_bbox<6F>su<00><00>37<33>=<3D>=<3D>(<28>+<2B>+<2B>B<EFBFBD>/<2F>b<EFBFBD><07><13>}<7D>}<7D><EFBFBD><04><13>}<7D>}<7D><EFBFBD><04><15><1A><1A>B<EFBFBD>Q<EFBFBD><1E><06><02>B<EFBFBD><16><12>|<7C>d<EFBFBD>"<22>G<EFBFBD>b<EFBFBD>L<EFBFBD>4<EFBFBD>$7<>1<EFBFBD><01><13><1F><1F><01>1<EFBFBD>a<EFBFBD><11>+<2B>+rc<00>H<00>|jj|<01>d|_yr<>)r<>r<>ryr<>s rr<>zOffsetImage.draw<61>s<00><00> <0C>
<EFBFBD>
<EFBFBD><0F><0F><08>!<21><1A><04>
r) r<>r<>r<>rar<>r<>r<>r<>r&rir<>r<>r<>r<>s@rr<>r<>vsN<00><><00><18><1A><1A>#<23><1C> <20><1E><1F><1D><1B>@<1A>
<1A><1A><1A><1C><1C>,<2C>rr<>c
<00><><00>eZdZdZdZd<03>Zejddddddddd<08>d <09><03>Ze d
<EFBFBD><00>Z
e
jd <0B><00>Z
e d <0C><00>Z e jd <0A><00>Z d<0E>Z d<0F>Zd<10>Zdd<11>Zd<12>Zdd<13>Zdd<14>Zd<15>Zd<16>Zy)<19>AnnotationBboxz<78>
Container for an `OffsetBox` referring to a specific position *xy*.
Optionally an arrow pointing from the offsetbox to *xy* can be drawn.
This is like `.Annotation`, but with `OffsetBox` instead of `.Text`.
rWc<00>L<00>d|jdd<03>d|jdd<03>d<06>S)NzAnnotationBbox(r<00>g<>,r4<00>))r{r<>s r<00>__str__zAnnotationBbox.__str__<5F>s+<00><00> <20><14><17><17><11><1A>A<EFBFBD><0E>a<EFBFBD><04><07><07><01>
<EFBFBD>1<EFBFBD>~<7E>Q<EFBFBD>?<3F>?rNTr^<00>rWrW)rar<><00>annotation_clip<69> box_alignment<6E> bboxprops<70>
arrowpropsr<EFBFBD>c
<00><><00>tjj|<00>tjj||||<08><01>||_| <0B>| j <00>nd|_|j| <0C>|<03>|n||_ |<05>|n||_
| |_ | <0B><|jjdd<04>|_ td i|j<00><01>|_nd|_ d|_t!ddddd|j"j%<00>d |<06>
<EFBFBD>|_|j&j)d |<07> <0C>|
r|j&j*di|
<EFBFBD><01>|j-| <0A>y)a
Parameters
----------
offsetbox : `OffsetBox`
xy : (float, float)
The point *(x, y)* to annotate. The coordinate system is determined
by *xycoords*.
xybox : (float, float), default: *xy*
The position *(x, y)* to place the text at. The coordinate system
is determined by *boxcoords*.
xycoords : single or two-tuple of str or `.Artist` or `.Transform` or callable, default: 'data'
The coordinate system that *xy* is given in. See the parameter
*xycoords* in `.Annotation` for a detailed description.
boxcoords : single or two-tuple of str or `.Artist` or `.Transform` or callable, default: value of *xycoords*
The coordinate system that *xybox* is given in. See the parameter
*textcoords* in `.Annotation` for a detailed description.
frameon : bool, default: True
By default, the text is surrounded by a white `.FancyBboxPatch`
(accessible as the ``patch`` attribute of the `.AnnotationBbox`).
If *frameon* is set to False, this patch is made invisible.
annotation_clip: bool or None, default: None
Whether to clip (i.e. not draw) the annotation when the annotation
point *xy* is outside the Axes area.
- If *True*, the annotation will be clipped when *xy* is outside
the Axes.
- If *False*, the annotation will always be drawn.
- If *None*, the annotation will be clipped when *xy* is outside
the Axes and *xycoords* is 'data'.
pad : float, default: 0.4
Padding around the offsetbox.
box_alignment : (float, float)
A tuple of two floats for a vertical and horizontal alignment of
the offset box w.r.t. the *boxcoords*.
The lower-left corner is (0, 0) and upper-right corner is (1, 1).
bboxprops : dict, optional
A dictionary of properties to set for the annotation bounding box,
for example *boxstyle* and *alpha*. See `.FancyBboxPatch` for
details.
arrowprops: dict, optional
Arrow properties, see `.Annotation` for description.
fontsize: float or str, optional
Translated to points and passed as *mutation_scale* into
`.FancyBboxPatch` to scale attributes of the box style (e.g. pad
or rounding_size). The name is chosen in analogy to `.Text` where
*fontsize* defines the mutation scale as well. If not given,
:rc:`legend.fontsize` is used. See `.Text.set_fontsize` for valid
values.
**kwargs
Other `AnnotationBbox` properties. See `.AnnotationBbox.set` for
a list.
)<02>xycoordsr<73>N<>relposr<73>r<>r<>r@r<>T)r{rrr<>r<>r<>r<>r<><00>squarer<65>)r_)r4r4rN)rmrnrar<00>_AnnotationBase<73> offsetbox<6F>copyr<79><00> set_fontsize<7A>xybox<6F> boxcoords<64>_box_alignment<6E>pop<6F> _arrow_relposr<00> arrow_patchrr`rqr<><00> set_boxstyler<65>rb)rr<>r{r<>r<>r<>rar<>r<>r<>r<>r<>r<>r"s rrazAnnotationBbox.__init__<5F>sC<00><00>X <10><0E><0E><1F><1F><04>%<25> <0A><1D><1D>&<26>&<26> <10>"<22>x<EFBFBD><1F> '<27> J<01>#<23><04><0E>/9<>/E<>*<2A>/<2F>/<2F>+<2B>4<EFBFBD><04><0F> <0C><19><19>(<28>#<23>#<23>/<2F>U<EFBFBD>R<EFBFBD><04>
<EFBFBD>&/<2F>&;<3B><19><18><04><0E>+<2B><04><1B> <15> !<21>!%<25><1F><1F>!4<>!4<>X<EFBFBD>z<EFBFBD>!J<>D<EFBFBD> <1E>.<2E> B<01>15<31><1F><1F> B<01>D<EFBFBD> <1C>"&<26>D<EFBFBD> <1E>#<23>D<EFBFBD> <1C>#<23><19><12>B<EFBFBD><19>S<EFBFBD><1F>9<EFBFBD>9<EFBFBD>7<>7<>9<><15><1B> 
<EFBFBD><04>
<EFBFBD> <0A>
<EFBFBD>
<EFBFBD><1F><1F><08>c<EFBFBD><1F>2<> <14> <1A>D<EFBFBD>J<EFBFBD>J<EFBFBD>N<EFBFBD>N<EFBFBD> '<27>Y<EFBFBD> '<27> <0C><1D><1D>f<EFBFBD>%rc<00><00>|jSr)r<>r<>s r<00>xyannzAnnotationBbox.xyann7s <00><00><13>z<EFBFBD>z<EFBFBD>rc<00> <00>||_d|_yr<>)r<>ry)rr<>s rr<>zAnnotationBbox.xyann;s<00><00><1A><04>
<EFBFBD><19><04>
rc<00><00>|jSr)r<>r<>s r<00> anncoordszAnnotationBbox.anncoords@r<>rc<00> <00>||_d|_yr<>)r<>ry)r<00>coordss rr<>zAnnotationBbox.anncoordsDs<00><00><1F><04><0E><19><04>
rc<00><><00>|j|<01>rdifS|jd<00>sdifS|jj|<01>Sr<>)rs<00> _check_xyr<79>rt)rrus rrtzAnnotationBbox.containsIsE<00><00> <0F> !<21> !<21>*<2A> -<2D><18>"<22>9<EFBFBD> <1C><13>~<7E>~<7E>d<EFBFBD>#<23><18>"<22>9<EFBFBD> <1C><13>~<7E>~<7E>&<26>&<26>z<EFBFBD>2<>2rc<00><><00>|j|jg}|jr|j|j<00>|Sr)r<>r<>r<>r)rr<>s rrizAnnotationBbox.get_childrenQs4<00><00><18>N<EFBFBD>N<EFBFBD>D<EFBFBD>J<EFBFBD>J<EFBFBD>/<2F><08> <0F> <1B> <1B> <14>O<EFBFBD>O<EFBFBD>D<EFBFBD>,<2C>,<2C> -<2D><17>rc<00><><00>|j<00>|jj|<01>|jj|<01>tjj||<01>yr)r<>rhr<>rmrn)rrjs rrhzAnnotationBbox.set_figureWsH<00><00> <0F> <1B> <1B> '<27> <10> <1C> <1C> '<27> '<27><03> ,<2C> <0C><0E><0E>!<21>!<21>#<23>&<26><0F><0E><0E>!<21>!<21>$<24><03>,rc<00>^<00>|<01>tjd}t|<01><03>|_d|_y)zk
Set the fontsize in points.
If *s* is not given, reset to :rc:`legend.fontsize`.
NrfrgT)rmrnrr`ryr!s rr<>zAnnotationBbox.set_fontsize]s+<00><00> <0A>9<EFBFBD><13> <0C> <0C>.<2E>/<2F>A<EFBFBD>"<22><01>*<2A><04> <09><19><04>
rc<00>6<00>|jj<00>S)zReturn the fontsize in points.)r`rqr<>s r<00> get_fontsizezAnnotationBbox.get_fontsizeis<00><00><13>y<EFBFBD>y<EFBFBD>+<2B>+<2B>-<2D>-rc<00><><00>|<01> |jd<01><02>j<00>}|j|<01>tj|j <00>D<00>cgc]}|j |<01><00><02>c}<02>Scc}wr<>)r<>r<><00>update_positionsr
rOrir<><00>rrr<>s rr<>z AnnotationBbox.get_window_extentmso<00><00> <13> <1B><1B><EFBFBD><EFBFBD>D<EFBFBD><EFBFBD>1<>?<3F>?<3F>A<>H<EFBFBD> <0C><1D><1D>h<EFBFBD>'<27><13>z<EFBFBD>z<EFBFBD>(,<2C>(9<>(9<>(;<3B>=<3D>$<24>!<21>2<>2<>8<EFBFBD><<3C>=<3D>><3E> ><3E><>=<3D><00>A4c<00><><00>|<01> |jd<01><02>j<00>}|j|<01>tj|j <00>D<00>cgc]}|j |<01><00><02>c}<02>Scc}wr<>)r<>r<>r<>r
rOri<00> get_tightbboxr<78>s rr<>zAnnotationBbox.get_tightbboxuso<00><00> <13> <1B><1B><EFBFBD><EFBFBD>D<EFBFBD><EFBFBD>1<>?<3F>?<3F>A<>H<EFBFBD> <0C><1D><1D>h<EFBFBD>'<27><13>z<EFBFBD>z<EFBFBD>(,<2C>(9<>(9<>(;<3B>=<3D>$<24>!<21>.<2E>.<2E>x<EFBFBD>8<>=<3D>><3E> ><3E><>=r<>c<00><00>|j||j|j<00>\}}|jj |<01>}|j
\}}|jj |||jzz
|jz
|||jzz
|jz
f<02>|jj|<01>}|jj|j<00>|j|j!<00><00>}|jj#|<07>|j$r<>|j&|j(|j*zz}|j-|<01>} |j.j1|| <09>d|j$vr|j|j$d<00>}|j.j#|<07>|j$j3d|j<00>}
|j.j5|
<EFBFBD>yy)zHUpdate pixel positions for the annotated point, the text, and the arrow.r<><00>patchAN)<1B>_get_xyr<79>r<>r<>r<>r<>r|rrrrQr<>r<>r<>r<>r<>r<>r<>r<>r<>r5r<><00>_get_position_xyr<79><00> set_positions<6E>get<65>
set_patchA) rr<00>ox0<78>oy0r<00>fw<66>fhr<68><00> arrow_begin<69> arrow_endr<64>s rr<>zAnnotationBbox.update_positions}s<><00><00><18><<3C><<3C><08>$<24>*<2A>*<2A>d<EFBFBD>n<EFBFBD>n<EFBFBD>E<><08><03>S<EFBFBD><13>~<7E>~<7E>&<26>&<26>x<EFBFBD>0<><04><15>$<24>$<24><06><02>B<EFBFBD> <0C><0E><0E>!<21>!<21> <10>2<EFBFBD>d<EFBFBD>j<EFBFBD>j<EFBFBD>=<3D> <20>4<EFBFBD>7<EFBFBD>7<EFBFBD> *<2A>C<EFBFBD>"<22>T<EFBFBD>[<5B>[<5B>.<2E>,@<40>4<EFBFBD>7<EFBFBD>7<EFBFBD>,J<> K<> M<01><14>~<7E>~<7E>/<2F>/<2F><08>9<><04> <0C>
<EFBFBD>
<EFBFBD><1D><1D>d<EFBFBD>k<EFBFBD>k<EFBFBD>*<2A>!<21>2<>2<>4<EFBFBD>3D<33>3D<33>3F<33>G<><0E> <0C>
<EFBFBD>
<EFBFBD>%<25>%<25>n<EFBFBD>5<> <0F>?<3F>?<3F>
<1F>'<27>'<27>D<EFBFBD>I<EFBFBD>I<EFBFBD><04>0B<30>0B<30>$B<>B<>K<EFBFBD><1C>-<2D>-<2D>h<EFBFBD>7<>I<EFBFBD> <11> <1C> <1C> *<2A> *<2A>;<3B> <09> B<><1F>4<EFBFBD>?<3F>?<3F>2<>!)<29>!:<3A>!:<3A><18>O<EFBFBD>O<EFBFBD>$4<>5<>"7<><0E> <11> <1C> <1C> /<2F> /<2F><0E> ?<3F><19>_<EFBFBD>_<EFBFBD>(<28>(<28><18>4<EFBFBD>:<3A>:<3A>><3E>F<EFBFBD> <10> <1C> <1C> '<27> '<27><06> /<2F>' rc<00>|<00>|j<00>r|j|<01>sy|j|jj|j <00><00><01>|j |<01>|j<00>f|jjd<02><03><00>/|jd<02><03>x}<02>|jj|<02>|jj|<01>|jj|<01>|jj|<01>|j|jj<00>d|_y)N)<01>gidFr<46>)r<>r<><00>
open_grouprfr<><00>get_gidr<64>r<>r<>rhr<>r<>r<><00> close_groupry)rrrjs rr<>zAnnotationBbox.draw<61>s<><00><00><13><1F><1F>!<21><14><1E><1E><08>)A<> <12><10><1B><1B>D<EFBFBD>N<EFBFBD>N<EFBFBD>3<>3<><14><1C><1C><1E><1B>H<> <0C><1D><1D>h<EFBFBD>'<27> <0F> <1B> <1B> '<27><14> <20> <20>+<2B>+<2B><15>+<2B>7<>?<3F> <20>O<EFBFBD>O<EFBFBD><15>O<EFBFBD>7<>7<>S<EFBFBD>D<><14> <20> <20>+<2B>+<2B>C<EFBFBD>0<> <10> <1C> <1C> !<21> !<21>(<28> +<2B> <0C>
<EFBFBD>
<EFBFBD><0F><0F><08>!<21> <0C><0E><0E><1B><1B>H<EFBFBD>%<25><10><1C><1C>T<EFBFBD>^<5E>^<5E>4<>4<>5<><1A><04>
r)Nr<4E>Nr)r<>r<>r<>r<>r<>r<>r<00>interpdrarr<>r<>r<>rtrirhr<>r<>r<>r<>r<>r<>rNrrr<>r<><00>s<><00><00><08><0F>F<EFBFBD>@<01><10><17><17>i&<26><1D>3<EFBFBD>!%<25>)<29><1F> <20><1E> i&<26><18>i&<26>V<0E><1A><0E><1A> <0B>\<5C>\<5C><1A><12><1A><0E><1E><0E><1E><0F><15><15><1A><16><1A>3<><18> -<2D>
<1A>.<2E>><3E>><3E>"0<>Hrr<>c<00>|<00>eZdZdZdd<02>Zed<03><00>Zed<04><00>Zed<05><00>Z d<06>Z
d<07>Z d<08>Z d <09>Z d
<EFBFBD>Zd <0B>Zd <0C>Zd <0A>Zy)<10> DraggableBasea<65>
Helper base class for a draggable artist (legend, offsetbox).
Derived classes must override the following methods::
def save_offset(self):
'''
Called when the object is picked for dragging; should save the
reference position of the artist.
'''
def update_offset(self, dx, dy):
'''
Called during the dragging; (*dx*, *dy*) is the pixel offset from
the point where the mouse drag started.
'''
Optionally, you may override the following method::
def finalize_offset(self):
'''Called when the mouse is released.'''
In the current implementation of `.DraggableLegend` and
`DraggableAnnotation`, `update_offset` places the artists in display
coordinates, and `finalize_offset` recalculates their position in axes
coordinate and set a relevant attribute.
c <00><><00>||_|j<00>s|j|j<00>d|_|xr|j
j |_|j
j}d|jfd|jfd|jffD<00><04>cgc]5\}}tj|j|j||<05><00><00><02>7c}}|_ycc}}w)NF<4E>
pick_event<EFBFBD>button_release_event<6E>motion_notify_event)<11>
ref_artist<EFBFBD>pickable<6C>
set_picker<EFBFBD>_picker<65>
got_artist<EFBFBD>canvas<61> supports_blit<69> _use_blit<69> callbacks<6B>on_pick<63>
on_release<EFBFBD> on_motionr'<00>partial<61>
disconnect<EFBFBD>_connect_picklable<6C>_disconnectors)rr<00>use_blitr<00>name<6D>funcs rrazDraggableBase.__init__<5F>s<><00><00>$<24><04><0F><19>"<22>"<22>$<24> <16> !<21> !<21>$<24>,<2C>,<2C> /<2F><1F><04><0F>!<21>?<3F>d<EFBFBD>k<EFBFBD>k<EFBFBD>&?<3F>&?<3F><04><0E><18>K<EFBFBD>K<EFBFBD>)<29>)<29> <09>
<1E>t<EFBFBD>|<7C>|<7C>,<2C>'<27><14><1F><1F>9<>&<26><04><0E><0E>7<><0E>
<EFBFBD><1B><04>d<EFBFBD> <16> <1D> <1D><19>$<24>$<24>i<EFBFBD>&B<>&B<>4<EFBFBD><14>&N<> P<01>
<EFBFBD><04><1B><>
s<00>:Cc<00>J<00>|jdk(rdifS|j|<01>S)N<> scroll_eventF)rrt)<02>artistrus rr zDraggableBase._picker<65>s)<00><00> <16>?<3F>?<3F>n<EFBFBD> ,<2C><18>"<22>9<EFBFBD> <1C><15><EFBFBD><EFBFBD>z<EFBFBD>*<2A>*rc<00>N<00>|jjd<01><02>jSr<>)rr<>r r<>s rrzDraggableBase.<lambda><3E>s<00><00>4<EFBFBD>?<3F>?<3F>#=<3D>#=<3D>4<EFBFBD>#=<3D>#H<>#O<>#O<>rc<00>`<00>|jddD<00>cgc]}|jd<00><02>c}Scc}w)Nr0r)rr!)rrs rrzDraggableBase.<lambda><3E>s5<00><00>-1<>-@<40>-@<40><12>!<21>-D<>"F<01>)<29>
<EFBFBD><0F><0F><01><1A>"F<01><00><>"Fs<00>+c<00><00>|j<00>r<>|jr<>|j|jz
}|j|j
z
}|j ||<03>|jr<>|jj|j<00>|jj|jjd<01><02>j<00><00>|jj<00>y|jj<00>yyyr<>)<10>_check_still_parentedr <00>x<>mouse_x<5F>y<>mouse_y<5F> update_offsetrr <00>restore_region<6F>
backgroundrr<>r<>r<><00>blit)r<00>evt<76>dx<64>dys rrzDraggableBase.on_motion<6F>s<><00><00> <0F> %<25> %<25> '<27>D<EFBFBD>O<EFBFBD>O<EFBFBD><14><15><15><14><1C><1C>%<25>B<EFBFBD><14><15><15><14><1C><1C>%<25>B<EFBFBD> <10> <1E> <1E>r<EFBFBD>2<EFBFBD> &<26><13>~<7E>~<7E><14> <0B> <0B>*<2A>*<2A>4<EFBFBD>?<3F>?<3F>;<3B><14><0F><0F>$<24>$<24><18>O<EFBFBD>O<EFBFBD>.<2E>.<2E>D<EFBFBD>.<2E>9<>G<>G<>I<>K<01><14> <0B> <0B> <20> <20>"<22><14> <0B> <0B> <20> <20>"<22>-<<3C> 'rc<00><><00>|j<00><00>r?|j|jk(rM|jj|_|jj |_|j<00>d|_ |jr<>|jr<>|jjd<01>|jj<00>|jjd<02><03>}|jj|j <00>|_|jj|j%<00><00>|jj'<00>yyyy)NTFr<46>)r!rrrur"r#r$r%<00> save_offsetr r<00> set_animatedr r<>r<><00>copy_from_bboxrr(r<>r))rr*rjs rrzDraggableBase.on_pick<63>s<><00><00> <0F> %<25> %<25> '<27><12>z<EFBFBD>z<EFBFBD>T<EFBFBD>_<EFBFBD>_<EFBFBD>,<2C>"<22>~<7E>~<7E>/<2F>/<2F><04> <0C>"<22>~<7E>~<7E>/<2F>/<2F><04> <0C><14> <20> <20>"<22>"&<26><04><0F><13><EFBFBD><EFBFBD>4<EFBFBD>><3E>><3E><14><0F><0F>,<2C>,<2C>T<EFBFBD>2<><14> <0B> <0B> <20> <20>"<22><1A>o<EFBFBD>o<EFBFBD>0<>0<>e<EFBFBD>0<><<3C><03>"&<26>+<2B>+<2B>"<<3C>"<<3C>S<EFBFBD>X<EFBFBD>X<EFBFBD>"F<><04><0F><14><0F><0F>$<24>$<24>S<EFBFBD>%6<>%6<>%8<>9<><14> <0B> <0B> <20> <20>"<22> $2<><EFBFBD> (rc<00><><00>|j<00>r<>|jr<>|j<00>d|_|jr<>|jj |j <00>|jj|jjj<00><00>|jj<00>|jjd<01>yyyyr<>) r!r <00>finalize_offsetrr r'r(rr<><00>figurer<65>r)r/)r<00>events rrzDraggableBase.on_releases<><00><00> <0F> %<25> %<25> '<27>D<EFBFBD>O<EFBFBD>O<EFBFBD> <10> <20> <20> "<22>#<23>D<EFBFBD>O<EFBFBD><13>~<7E>~<7E><14> <0B> <0B>*<2A>*<2A>4<EFBFBD>?<3F>?<3F>;<3B><14><0F><0F>$<24>$<24>T<EFBFBD>_<EFBFBD>_<EFBFBD>%;<3B>%;<3B>%I<>%I<>%K<>L<><14> <0B> <0B> <20> <20>"<22><14><0F><0F>,<2C>,<2C>U<EFBFBD>3<> <1E>-<<3C> 'rc<00>^<00>|jjd<01><02><00>|j<00>yy)NFr<46>T)rr<>rr<>s rr!z#DraggableBase._check_still_parenteds*<00><00> <0F>?<3F>?<3F> %<25> %<25>5<EFBFBD> %<25> 1<> 9<> <10>O<EFBFBD>O<EFBFBD> <1D><18>rc<00>4<00>|jD] }|<01><00> y)zDisconnect the callbacks.N)r)r<00> disconnectors rrzDraggableBase.disconnects<00><00> <20>/<2F>/<2F> <1B>L<EFBFBD> <18>N<EFBFBD> rc<00><00>yrrNr<>s rr.zDraggableBase.save_offset<00><00><00> rc<00><00>yrrN)rr+r,s rr&zDraggableBase.update_offset!r9rc<00><00>yrrNr<>s rr2zDraggableBase.finalize_offset$r9rN<>F)r<>r<>r<>r<>ra<00> staticmethodr rr <00>cidsrrrr!rr.r&r2rNrrrr<00>sf<00><00><08>8
<EFBFBD>"<12>+<2B><12>+<2B><16>O<> P<>F<EFBFBD> <13>F<01> G<01>D<EFBFBD> #<23> #<23>4<><18><1B>
 <0A> <0A> rrc<00>2<00><00>eZdZd<05>fd<01> Zd<02>Zd<03>Zd<04>Z<06>xZS)<06>DraggableOffsetBoxc<00>6<00><01>t<00>|<00>||<03><01>||_y<00>N)r)r`rar<>)rrr<>rrfs <20>rrazDraggableOffsetBox.__init__)s<00><><00> <0A><07><18><1A>h<EFBFBD><18>7<>"<22><04>rc<00><><00>|j}|jd<01><02>j<00>}|j|j |<02>|<02>}|\|_|_|jj|<03>yr<>)r<>r<>r<>r&r<><00> offsetbox_x<5F> offsetbox_yr|)rr<>r<00>offsets rr.zDraggableOffsetBox.save_offset-sf<00><00><18>N<EFBFBD>N<EFBFBD> <09><1C>'<27>'<27>T<EFBFBD>'<27>2<>@<40>@<40>B<><08><1A>%<25>%<25>i<EFBFBD>&8<>&8<><18>&B<>H<EFBFBD>M<><06>-3<>*<2A><04><18>$<24>*<2A> <0C><0E><0E>!<21>!<21>&<26>)rc<00>v<00>|j|z|j|zf}|jj|<03>yr)rDrEr<>r|)rr+r,<00> loc_in_canvass rr&z DraggableOffsetBox.update_offset4s4<00><00><1C>(<28>(<28>2<EFBFBD>-<2D>t<EFBFBD>/?<3F>/?<3F>"<22>/D<>D<> <0A> <0C><0E><0E>!<21>!<21>-<2D>0rc<00><><00>|j}|jd<01><02>j<00>}|j|<02>}|j\}}||j
z||j zf}|Sr<>)r<>r<>r<>r<>rerrQ)rr<>rrr<>r<>rHs r<00>get_loc_in_canvasz$DraggableOffsetBox.get_loc_in_canvas8sf<00><00><18>N<EFBFBD>N<EFBFBD> <09><1C>'<27>'<27>T<EFBFBD>'<27>2<>@<40>@<40>B<><08><18>!<21>!<21>(<28>+<2B><04><1A>"<22>"<22><06><02>B<EFBFBD><1B>d<EFBFBD>g<EFBFBD>g<EFBFBD><1C>r<EFBFBD>D<EFBFBD>G<EFBFBD>G<EFBFBD>|<7C>4<> <0A><1C>rr<)r<>r<>r<>rar.r&rJr<>r<>s@rr@r@(s<00><><00>#<23>*<2A>1<>rr@c<00>,<00><00>eZdZd<04>fd<01> Zd<02>Zd<03>Z<05>xZS)<05>DraggableAnnotationc<00>6<00><01>t<00>|<00>||<02><01>||_yrB)r`ra<00>
annotation)rrNrrfs <20>rrazDraggableAnnotation.__init__Bs<00><><00> <0A><07><18><1A>h<EFBFBD><18>7<>$<24><04>rc<00><><00>|j}|j<00>j|j<00>\|_|_yr)rNr<>r|r<>r<>r<>)r<00>anns rr.zDraggableAnnotation.save_offsetFs1<00><00><12>o<EFBFBD>o<EFBFBD><03><1E>,<2C>,<2C>.<2E>8<>8<><13><19><19>C<><18><04><07><14>rc<00><><00>|j}|j<00>j<00>j|j|z|j
|zf<02>|_yr)rNr<><00>invertedr|r<>r<>r<>)rr+r,rPs rr&z!DraggableAnnotation.update_offsetJsG<00><00><12>o<EFBFBD>o<EFBFBD><03><17>%<25>%<25>'<27>0<>0<>2<><<3C><<3C> <11>W<EFBFBD>W<EFBFBD>r<EFBFBD>\<5C>4<EFBFBD>7<EFBFBD>7<EFBFBD>R<EFBFBD><<3C> (<28>*<2A><03> rr<)r<>r<>r<>rar.r&r<>r<>s@rrLrLAs<00><><00>%<25>D<01>*rrL)r/)rF)7r<37>r'<00>numpyr6<00>
matplotlibrmrr<00>matplotlib.artistrrm<00>matplotlib.path<74>pathr <00>matplotlib.text<78>textr<00>matplotlib.transforms<6D>
transformsr<EFBFBD><00>matplotlib.font_managerr<00>matplotlib.imager<00>matplotlib.patchesrrr r,r
r r r+r)r-rDr[rnr]r<>r<>r<>r<>r<>rrCrUr<>r<>r<>r<>r<>rr@rLrNrr<00><module>r_sA<00><01><04>0<11><12><18>'<27>#<23><1F><1F>+<2B>2<>&<26>B<01>B<01>A<>A<> <0E><05><16>(&<26>
N<1E>b0<1A>fw<1B><07><0E><0E>w<1B>t,"<22><19>,"<22>^%(<28>j<EFBFBD>%(<28>P,<2C>j<EFBFBD>,<2C>DU"<22> <09>U"<22>pm<1B>)<29>m<1B>`s<1B>y<EFBFBD>s<1B>lM<1B>i<EFBFBD>M<1B>`q<1B> <09>q<1B>h 4<>(<16>$<24>(<16>VD<1B>)<29>D<1B>Nr<1B>W<EFBFBD>^<5E>^<5E>U<EFBFBD>%:<3A>%:<3A>r<1B>js <0A>s <0A>l<1D><1D><1D>2 *<2A>-<2D> *r