Ë
    ¨ehü ã                   óÊ  — d Z ddlmZ ddlmZmZmZ ddlmZm	Z	 ddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ ddlZddlZddlmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z' ddl(m)Z) dd	l*m+Z+ dd
l,m-Z- ddl.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5 ddl6m7Z7m8Z8  ejr                  e:«      Z;dddddddddddddddœZ<dddddddddddddddœZ=dRd „Z>d!„ Z? G d"„ d#«      Z@ G d$„ d%«      ZA G d&„ d'«      ZB G d(„ d)«      ZC G d*„ d+eC«      ZD G d,„ d-eC«      ZE G d.„ d/eC«      ZF G d0„ d1eC«      ZG G d2„ d3e	«      ZH G d4„ d5eG«      ZI G d6„ d7eC«      ZJ G d8„ d9eG«      ZKd:„ ZLd;„ ZMdRd<„ZNd=„ ZOd>„ ZPed?„ «       ZQ G d@„ dA«      ZRdSdB„ZSdSdC„ZT G dD„ dEeU«      ZV G dF„ dG«      ZWej°                  ZX G dH„ dIeYe«      ZZ G dJ„ dK«      Z[ G dL„ dM«      Z\ G dN„ dO«      Z] G dP„ dQe]«      Z^y)Taœ  
Abstract base classes define the primitives that renderers and
graphics contexts must implement to serve as a Matplotlib backend.

`RendererBase`
    An abstract base class to handle drawing/rendering operations.

`FigureCanvasBase`
    The abstraction layer that separates the `.Figure` from the backend
    specific details like a user interface drawing area.

`GraphicsContextBase`
    An abstract base class that provides color, line styles, etc.

`Event`
    The base class for all of the Matplotlib event handling.  Derived classes
    such as `KeyEvent` and `MouseEvent` store the meta data like keys and
    buttons pressed, x and y locations in pixel and `~.axes.Axes` coordinates.

`ShowBase`
    The base class for the ``Show`` class of each interactive backend; the
    'show' callable is then set to ``Show.__call__``.

`ToolContainerBase`
    The base class for the Toolbar class of each interactive backend.
é    )Ú
namedtuple)Ú	ExitStackÚcontextmanagerÚnullcontext)ÚEnumÚIntEnumN)ÚWeakKeyDictionary)Ú_apiÚbackend_toolsÚcbookÚcolorsÚ
_docstringÚtextÚ_tight_bboxÚ
transformsÚwidgetsÚis_interactiveÚrcParams)ÚGcf)ÚToolManager)Ú_setattr_cm)ÚConstrainedLayoutEngine)ÚPath)Ú
TexManager)ÚAffine2D)Ú	JoinStyleÚCapStylezEncapsulated Postscriptz Joint Photographic Experts GroupzPortable Document FormatzPGF code for LaTeXzPortable Network GraphicsÚ
PostscriptzRaw RGBA bitmapzScalable Vector GraphicszTagged Image File FormatzWebP Image Format)ÚepsÚjpgÚjpegÚpdfÚpgfÚpngÚpsÚrawÚrgbaÚsvgÚsvgzÚtifÚtiffÚwebpzmatplotlib.backends.backend_pszmatplotlib.backends.backend_aggzmatplotlib.backends.backend_pdfzmatplotlib.backends.backend_pgfzmatplotlib.backends.backend_svgc                 ó0   — |€d}|t         | <   |t        | <   y)a$  
    Register a backend for saving to a given file format.

    Parameters
    ----------
    format : str
        File extension
    backend : module string or canvas class
        Backend for handling file output
    description : str, default: ""
        Description of the file type.
    NÚ )Ú_default_backendsÚ_default_filetypes)ÚformatÚbackendÚdescriptions      úV/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/matplotlib/backend_bases.pyÚregister_backendr5   a   s%   € ð ÐØˆØ 'Ô�fÑØ!,Ô�vÒó    c                 óš   — | t         vryt         |    }t        |t        «      r(t        j                  |«      j
                  }|t         | <   |S )zv
    Return the registered default canvas for given file format.
    Handles deferred import of required backend.
    N)r/   Ú
isinstanceÚstrÚ	importlibÚimport_moduleÚFigureCanvas)r1   Úbackend_classs     r4   Úget_registered_canvas_classr>   t   sK   € ð
 Ô&Ñ&ØÜ% fÑ-€MÜ�-¤Ô%Ü!×/Ñ/°Ó>×KÑKˆØ$1Ô˜&Ñ!ØÐr6   c                   óÜ   ‡ — e Zd ZdZˆ fd„Zd!d„Zd„ Zd!d„Z	 d!d„Zd„ Z	d	„ Z
d
„ Zd„ Zd„ Zd„ Zd„ Zd!d„Zd„ Zd„ Zddœd„Zd"d„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd „ Z ˆ xZ!S )#ÚRendererBaseaø  
    An abstract base class to handle drawing/rendering operations.

    The following methods must be implemented in the backend for full
    functionality (though just implementing `draw_path` alone would give a
    highly capable backend):

    * `draw_path`
    * `draw_image`
    * `draw_gouraud_triangles`

    The following methods *should* be implemented in the backend for
    optimization reasons:

    * `draw_text`
    * `draw_markers`
    * `draw_path_collection`
    * `draw_quad_mesh`
    c                 ó~   •— t         ‰| �  «        d | _        t        j                  «       | _        d| _        d| _        y )Nr   F)ÚsuperÚ__init__Ú_texmanagerr   Ú
TextToPathÚ
_text2pathÚ_raster_depthÚ_rasterizing)ÚselfÚ	__class__s    €r4   rC   zRendererBase.__init__–   s4   ø€ Ü‰ÑÔØˆÔÜŸ/™/Ó+ˆŒØˆÔØ!ˆÕr6   Nc                  ó   — y)zz
        Open a grouping element with label *s* and *gid* (if set) as id.

        Only used by the SVG renderer.
        N© )rI   ÚsÚgids      r4   Ú
open_groupzRendererBase.open_group�   ó   � r6   c                  ó   — y)zb
        Close a grouping element with label *s*.

        Only used by the SVG renderer.
        NrL   ©rI   rM   s     r4   Úclose_groupzRendererBase.close_group¤   rP   r6   c                 ó   — t         ‚)z?Draw a `~.path.Path` instance using the given affine transform.©ÚNotImplementedError)rI   ÚgcÚpathÚ	transformÚrgbFaces        r4   Ú	draw_pathzRendererBase.draw_path«   s   € ä!Ð!r6   c           
      óÔ   — |j                  |d¬«      D ]R  \  }}t        |«      sŒ|dd \  }	}
| j                  |||t        j                  «       j                  |	|
«      z   |«       ŒT y)aB  
        Draw a marker at each of *path*'s vertices (excluding control points).

        The base (fallback) implementation makes multiple calls to `draw_path`.
        Backends may want to override this method in order to draw the marker
        only once and reuse it multiple times.

        Parameters
        ----------
        gc : `.GraphicsContextBase`
            The graphics context.
        marker_path : `~matplotlib.path.Path`
            The path for the marker.
        marker_trans : `~matplotlib.transforms.Transform`
            An affine transform applied to the marker.
        path : `~matplotlib.path.Path`
            The locations to draw the markers.
        trans : `~matplotlib.transforms.Transform`
            An affine transform applied to the path.
        rgbFace : :mpltype:`color`, optional
        F)ÚsimplifyéþÿÿÿN)Úiter_segmentsÚlenr[   r   r   Ú	translate)rI   rW   Úmarker_pathÚmarker_transrX   ÚtransrZ   ÚverticesÚcodesÚxÚys              r4   Údraw_markerszRendererBase.draw_markers¯   sr   € ð.  $×1Ñ1°%À%Ð1ÓHò 	(‰OˆH�eÜ�8�}Ø  �}‘��1Ø—‘˜r ;Ø+Ü)×2Ñ2Ó4×>Ñ>¸qÀ!ÓDñ Eà&õ(ñ	(r6   c                 ó  — | j                  |||«      }| j                  |t        |«      |||||	|
|||«      D ]M  \  }}}}}|\  }}|dk7  s|dk7  r"|j                  «       }|j	                  ||«       | j                  ||||«       ŒO y)aŸ  
        Draw a collection of *paths*.

        Each path is first transformed by the corresponding entry
        in *all_transforms* (a list of (3, 3) matrices) and then by
        *master_transform*.  They are then translated by the corresponding
        entry in *offsets*, which has been first transformed by *offset_trans*.

        *facecolors*, *edgecolors*, *linewidths*, *linestyles*, and
        *antialiased* are lists that set the corresponding properties.

        *offset_position* is unused now, but the argument is kept for
        backwards compatibility.

        The base (fallback) implementation makes multiple calls to `draw_path`.
        Backends may want to override this in order to render each set of
        path data only once, and then reference that path multiple times with
        the different offsets, colors, styles etc.  The generator methods
        `_iter_collection_raw_paths` and `_iter_collection` are provided to
        help with (and standardize) the implementation across backends.  It
        is highly recommended to use those generators, so that changes to the
        behavior of `draw_path_collection` can be made globally.
        r   N)Ú_iter_collection_raw_pathsÚ_iter_collectionÚlistÚfrozenra   r[   )rI   rW   Úmaster_transformÚpathsÚall_transformsÚoffsetsÚoffset_transÚ
facecolorsÚ
edgecolorsÚ
linewidthsÚ
linestylesÚantialiasedsÚurlsÚoffset_positionÚpath_idsÚxoÚyoÚpath_idÚgc0rZ   rX   rY   s                         r4   Údraw_path_collectionz!RendererBase.draw_path_collectionÎ   s­   € ð6 ×2Ñ2Ð3CØ38¸.óJˆð .2×-BÑ-BØ”D˜“N G¨\Ø˜J¨
°JØ˜d Oó.5ò 	:Ñ)ˆB��G˜S 'ð &‰OˆD�)ð �QŠw˜" š'ð &×,Ñ,Ó.�	Ø×#Ñ# B¨Ô+Ø�N‰N˜3  i°Õ9ñ	:r6   c                 óÈ   — ddl m} |j                  |«      }|
€|}
t        j                  |j                  «       gt        «      }| j                  |||g ||||
|g |	gdgd«      S )zœ
        Draw a quadmesh.

        The base (fallback) implementation converts the quadmesh to paths and
        then calls `draw_path_collection`.
        r   )ÚQuadMeshNÚscreen)Úmatplotlib.collectionsr‚   Ú_convert_mesh_to_pathsÚnpÚarrayÚget_linewidthÚfloatr€   )rI   rW   ro   Ú	meshWidthÚ
meshHeightÚcoordinatesrr   ÚoffsetTransrt   Úantialiasedru   r‚   rp   rv   s                 r4   Údraw_quad_meshzRendererBase.draw_quad_meshû   st   € õ 	4Ø×/Ñ/°Ó<ˆàÐØ#ˆJÜ—X‘X˜r×/Ñ/Ó1Ð2´EÓ:ˆ
à×(Ñ(ØÐ  %¨¨W°kÀ:Ø˜
 B¨¨¸°v¸xóIð 	Ir6   c                 ó   — t         ‚)aì  
        Draw a series of Gouraud triangles.

        Parameters
        ----------
        gc : `.GraphicsContextBase`
            The graphics context.
        triangles_array : (N, 3, 2) array-like
            Array of *N* (x, y) points for the triangles.
        colors_array : (N, 3, 4) array-like
            Array of *N* RGBA colors for each point of the triangles.
        transform : `~matplotlib.transforms.Transform`
            An affine transform to apply to the points.
        rU   )rI   rW   Útriangles_arrayÚcolors_arrayrY   s        r4   Údraw_gouraud_trianglesz#RendererBase.draw_gouraud_triangles  s
   € ô  "Ð!r6   c              #   óì   K  — t        |«      }t        |«      }t        ||«      }|dk(  ryt        j                  «       }t	        |«      D ]&  }|||z     }	|rt        |||z     «      }|	||z   f–— Œ( y­w)aÿ  
        Helper method (along with `_iter_collection`) to implement
        `draw_path_collection` in a memory-efficient manner.

        This method yields all of the base path/transform combinations, given a
        master transform, a list of paths and list of transforms.

        The arguments should be exactly what is passed in to
        `draw_path_collection`.

        The backend should take each yielded path and transform and create an
        object that can be referenced (reused) later.
        r   N)r`   Úmaxr   ÚIdentityTransformÚranger   )
rI   ro   rp   rq   ÚNpathsÚNtransformsÚNrY   ÚirX   s
             r4   rk   z'RendererBase._iter_collection_raw_paths"  s‡   è ø€ ô �U“ˆÜ˜.Ó)ˆÜ�˜Ó$ˆà�QŠ;Øä×0Ñ0Ó2ˆ	Ü�q“ò 	5ˆAØ˜˜V™Ñ$ˆDÙÜ$ ^°A¸±OÑ%DÓE�	Ø˜	Ð$4Ñ4Ð4Ó4ñ		5ùs   ‚A2A4c                 óÎ   — t        |«      }|dk(  s t        |«      t        |«      cxk(  rdk(  ry nyt        |t        |«      «      }t        |t        |«      «      }||z   dz
  |z  S )a€  
        Compute how many times each raw path object returned by
        `_iter_collection_raw_paths` would be used when calling
        `_iter_collection`. This is intended for the backend to decide
        on the tradeoff between using the paths in-line and storing
        them once and reusing. Rounds up in case the number of uses
        is not the same for every path.
        r   é   )r`   r•   )	rI   rp   rq   rr   rt   ru   r˜   Ú	Npath_idsrš   s	            r4   Ú_iter_collection_uses_per_pathz+RendererBase._iter_collection_uses_per_path?  si   € ô �U“ˆØ�QŠ;œ#˜j›/¬S°«_ÔAÀÒAØñ BØÜ˜¤ NÓ 3Ó4ˆ	Ü�	œ3˜w›<Ó(ˆØ�I‘ Ñ! iÑ/Ð/r6   c              #   ó$  K  — t        |«      }t        |«      }t        ||«      }t        |«      }t        |«      }t        |«      }t        |«      }t        |
«      }|dk(  r|dk(  s|dk(  ry| j                  «       }|j                  |«       dd„} ||«      } ||j	                  |«      d«      } ||«      } ||«      } ||«      } ||«      } ||	«      } ||
«      }
|dk(  r|j                  d«       t        j                  t        ||||||||
«      |«      D ]ß  \  }\  }}} }!}"}#}$}%t        j                  |«      rt        j                  |«      sŒ:|r]|r|j                  |"«       |r |j                  |#Ž  t        |!«      dk(  r|!d   dk(  r|j                  d«       n|j                  |!«       | �t        | «      dk(  r
| d   dk(  rd} |j                  |$«       |r|j                  |%«       ||||| f–— Œá |j                  «        y­w)	a¿  
        Helper method (along with `_iter_collection_raw_paths`) to implement
        `draw_path_collection` in a memory-efficient manner.

        This method yields all of the path, offset and graphics context
        combinations to draw the path collection.  The caller should already
        have looped over the results of `_iter_collection_raw_paths` to draw
        this collection.

        The arguments should be the same as that passed into
        `draw_path_collection`, with the exception of *path_ids*, which is a
        list of arbitrary objects that the backend will use to reference one of
        the paths created in the `_iter_collection_raw_paths` stage.

        Each yielded result is of the form::

           xo, yo, path_id, gc, rgbFace

        where *xo*, *yo* is an offset; *path_id* is one of the elements of
        *path_ids*; *gc* is a graphics context and *rgbFace* is a color to
        use for filling the path.
        r   Nc                 ól   — t        | «      rt        j                  | «      S t        j                  |«      S ©N)r`   Ú	itertoolsÚcycleÚrepeat)ÚseqÚdefaults     r4   Úcycle_or_defaultz7RendererBase._iter_collection.<locals>.cycle_or_defaultx  s,   € ä,/°¬H”I—O‘O CÓ(ð 4Ü"×)Ñ)¨'Ó2ð4r6   )r   r   ç        é   é   r¢   )r`   r•   Únew_gcÚcopy_propertiesrY   Úset_linewidthr£   ÚisliceÚzipr†   ÚisfiniteÚ
set_dashesÚset_foregroundÚset_antialiasedÚset_urlÚrestore)&rI   rW   r{   rr   rs   rt   ru   rv   rw   rx   ry   rz   r˜   ÚNoffsetsrš   ÚNfacecolorsÚNedgecolorsÚNlinewidthsÚNlinestylesÚNurlsr   r¨   ÚpathidsÚtoffsetsÚfcsÚecsÚlwsÚlssÚaasÚpathidr|   r}   ÚfcÚecÚlwÚlsÚaaÚurls&                                         r4   rl   zRendererBase._iter_collectionP  s  è ø€ ô2 �X“ˆÜ�w“<ˆÜ�˜Ó!ˆÜ˜*“oˆÜ˜*“oˆÜ˜*“oˆÜ˜*“oˆÜ�D“	ˆà˜1Ò °Ò!1°fÀ²kØà�k‰k‹mˆØ×Ñ˜BÔó	4ñ
 # 8Ó,ˆÙ# L×$:Ñ$:¸7Ó$CÀVÓLˆÙ˜zÓ*ˆÙ˜zÓ*ˆÙ˜zÓ*ˆÙ˜zÓ*ˆÙ˜|Ó,ˆÙ Ó%ˆà˜!ÒØ×Ñ˜cÔ"ä9B×9IÑ9IÜ�G˜X s¨C°°c¸3ÀÓEÀqó:Jò 	*Ñ5ˆF‘H�R˜˜b " b¨"¨b°#ä—K‘K ”O¬¯©°B¬ØÙÙØ×%Ñ% bÔ)ÙØ"�C—N‘N BÑ'Ü�r“7˜a’< B q¡E¨S¢LØ×%Ñ% aÕ(à×&Ñ& rÔ*Øˆ~¤# b£'¨Q¢,°2°a±5¸A²:Ø�Ø×Ñ Ô#ÙØ—‘˜CÔ Ø�b˜& # rÐ)Ó)ð%	*ð& 	�‰�ùs   ‚HHc                  ó   — y)z¯
        Get the factor by which to magnify images passed to `draw_image`.
        Allows a backend to have images at a different resolution to other
        artists.
        ç      ð?rL   ©rI   s    r4   Úget_image_magnificationz$RendererBase.get_image_magnificationž  s   € ð r6   c                 ó   — t         ‚)a   
        Draw an RGBA image.

        Parameters
        ----------
        gc : `.GraphicsContextBase`
            A graphics context with clipping information.

        x : float
            The distance in physical units (i.e., dots or pixels) from the left
            hand side of the canvas.

        y : float
            The distance in physical units (i.e., dots or pixels) from the
            bottom side of the canvas.

        im : (N, M, 4) array of `numpy.uint8`
            An array of RGBA pixels.

        transform : `~matplotlib.transforms.Affine2DBase`
            If and only if the concrete backend is written such that
            `option_scale_image` returns ``True``, an affine transformation
            (i.e., an `.Affine2DBase`) *may* be passed to `draw_image`.  The
            translation vector of the transformation is given in physical units
            (i.e., dots or pixels). Note that the transformation does not
            override *x* and *y*, and has to be applied *before* translating
            the result by *x* and *y* (this can be accomplished by adding *x*
            and *y* to the translation vector defined by *transform*).
        rU   )rI   rW   rg   rh   ÚimrY   s         r4   Ú
draw_imagezRendererBase.draw_image¦  s
   € ô< "Ð!r6   c                  ó   — y)a*  
        Return whether image composition by Matplotlib should be skipped.

        Raster backends should usually return False (letting the C-level
        rasterizer take care of image composition); vector backends should
        usually return ``not rcParams["image.composite_image"]``.
        FrL   rÍ   s    r4   Úoption_image_nocompositez%RendererBase.option_image_nocompositeÆ  s   € ð r6   c                  ó   — y)zˆ
        Return whether arbitrary affine transformations in `draw_image` are
        supported (True for most vector backends).
        FrL   rÍ   s    r4   Úoption_scale_imagezRendererBase.option_scale_imageÐ  s   € ð
 r6   )Úmtextc          	      ó4   — | j                  ||||||d¬«       y)al  
        Draw a TeX instance.

        Parameters
        ----------
        gc : `.GraphicsContextBase`
            The graphics context.
        x : float
            The x location of the text in display coords.
        y : float
            The y location of the text baseline in display coords.
        s : str
            The TeX text string.
        prop : `~matplotlib.font_manager.FontProperties`
            The font properties.
        angle : float
            The rotation angle in degrees anti-clockwise.
        mtext : `~matplotlib.text.Text`
            The original text object to be rendered.
        ÚTeX©ÚismathN©Ú_draw_text_as_path)rI   rW   rg   rh   rM   ÚpropÚanglerÖ   s           r4   Údraw_texzRendererBase.draw_tex×  s!   € ð* 	×Ñ  A q¨!¨T°5ÀÐÕGr6   c	           	      ó2   — | j                  |||||||«       y)a1  
        Draw a text instance.

        Parameters
        ----------
        gc : `.GraphicsContextBase`
            The graphics context.
        x : float
            The x location of the text in display coords.
        y : float
            The y location of the text baseline in display coords.
        s : str
            The text string.
        prop : `~matplotlib.font_manager.FontProperties`
            The font properties.
        angle : float
            The rotation angle in degrees anti-clockwise.
        ismath : bool or "TeX"
            If True, use mathtext parser.
        mtext : `~matplotlib.text.Text`
            The original text object to be rendered.

        Notes
        -----
        **Notes for backend implementers:**

        `.RendererBase.draw_text` also supports passing "TeX" to the *ismath*
        parameter to use TeX rendering, but this is not required for actual
        rendering backends, and indeed many builtin backends do not support
        this.  Rather, TeX rendering is provided by `~.RendererBase.draw_tex`.
        NrÛ   )	rI   rW   rg   rh   rM   rÝ   rÞ   rÚ   rÖ   s	            r4   Ú	draw_textzRendererBase.draw_textî  s   € ð@ 	×Ñ  A q¨!¨T°5¸&ÕAr6   c                 ón  — | j                   }| j                  |j                  «       «      }	|j                  |||¬«      \  }
}t	        |
|«      }| j                  «       r\| j                  «       \  }}t        «       j                  |	|j                  z  «      j                  |«      j                  |||z
  «      }nEt        «       j                  |	|j                  z  «      j                  |«      j                  ||«      }|j                  «       }|j                  d«       | j                  ||||¬«       y)zë
        Draw the text by converting them to paths using `.TextToPath`.

        This private helper supports the same parameters as
        `~.RendererBase.draw_text`; setting *ismath* to "TeX" triggers TeX
        rendering.
        rÙ   r©   )rZ   N)rF   Úpoints_to_pixelsÚget_size_in_pointsÚget_text_pathr   ÚflipyÚget_canvas_width_heightr   ÚscaleÚ
FONT_SCALEÚ
rotate_degra   Úget_rgbr®   r[   )rI   rW   rg   rh   rM   rÝ   rÞ   rÚ   Ú	text2pathÚfontsizeÚvertsrf   rX   ÚwidthÚheightrY   Úcolors                    r4   rÜ   zRendererBase._draw_text_as_path  s  € ð —O‘Oˆ	Ø×(Ñ(¨×)@Ñ)@Ó)BÓCˆØ ×.Ñ.¨t°Q¸vÐ.ÓF‰ˆˆuÜ�E˜5Ó!ˆØ�:‰:Œ<Ø ×8Ñ8Ó:‰MˆE�6Ü!›ß™% ¨9×+?Ñ+?Ñ ?Ó@ß$™* UÓ+ß#™) A v°¡zÓ2ñ ô
 "›ß™% ¨9×+?Ñ+?Ñ ?Ó@ß$™* UÓ+ß#™) A q›/ð ð —
‘
“ˆØ
×Ñ˜ÔØ�‰�r˜4 °EˆÕ:r6   c                 ó  — |j                  «       }|dk(  r"| j                  «       j                  ||| ¬«      S | j                  d«      }|r,| j                  j
                  j                  |||«      }|dd S | j                  j                  «       }| j                  j                  |«      }|j                  ||«       |j                  |d|¬«       |j                  «       \  }	}
|j                  «       }|	dz  }	|
dz  }
|dz  }|	|
|fS )	a  
        Get the width, height, and descent (offset from the bottom to the baseline), in
        display coords, of the string *s* with `.FontProperties` *prop*.

        Whitespace at the start and the end of *s* is included in the reported width.
        rØ   )ÚrendereréH   r   r«   r©   )Úflagsg      P@)rä   Úget_texmanagerÚget_text_width_height_descentrã   rF   Úmathtext_parserÚparseÚ_get_hinting_flagÚ	_get_fontÚset_sizeÚset_textÚget_width_heightÚget_descent)rI   rM   rÝ   rÚ   rí   ÚdpiÚdimsrõ   ÚfontÚwÚhÚds               r4   r÷   z*RendererBase.get_text_width_height_descent+  s  € ð ×*Ñ*Ó,ˆà�UŠ?à×&Ñ&Ó(×FÑFØ�8 dð Gó ,ð ,ð ×#Ñ# BÓ'ˆÙØ—?‘?×2Ñ2×8Ñ8¸¸CÀÓFˆDØ˜˜!�9Ðà—‘×1Ñ1Ó3ˆØ�‰×(Ñ(¨Ó.ˆØ�‰�h Ô$à�‰�a˜ EˆÔ*Ø×$Ñ$Ó&‰ˆˆ1Ø×ÑÓˆØ	ˆT‰	ˆØ	ˆT‰	ˆØ	ˆT‰	ˆØ�!�Qˆwˆr6   c                  ó   — y)z}
        Return whether y values increase from top to bottom.

        Note that this only affects drawing of texts.
        TrL   rÍ   s    r4   ræ   zRendererBase.flipyJ  s   € ð r6   c                  ó   — y)z5Return the canvas width and height in display coords.)r�   r�   rL   rÍ   s    r4   rç   z$RendererBase.get_canvas_width_heightR  s   € àr6   c                 óP   — | j                   €t        «       | _         | j                   S )z"Return the `.TexManager` instance.)rD   r   rÍ   s    r4   rö   zRendererBase.get_texmanagerV  s$   € à×ÑÐ#Ü)›|ˆDÔØ×ÑÐr6   c                 ó   — t        «       S )z/Return an instance of a `.GraphicsContextBase`.)ÚGraphicsContextBaserÍ   s    r4   r¬   zRendererBase.new_gc\  s   € ä"Ó$Ð$r6   c                 ó   — |S )aÄ  
        Convert points to display units.

        You need to override this function (unless your backend
        doesn't have a dpi, e.g., postscript or svg).  Some imaging
        systems assume some value for pixels per inch::

            points to pixels = points * pixels_per_inch/72 * dpi/72

        Parameters
        ----------
        points : float or array-like

        Returns
        -------
        Points converted to pixels
        rL   )rI   Úpointss     r4   rã   zRendererBase.points_to_pixels`  s	   € ð$ ˆr6   c                  ó   — y)zW
        Switch to the raster renderer.

        Used by `.MixedModeRenderer`.
        NrL   rÍ   s    r4   Ústart_rasterizingzRendererBase.start_rasterizingt  rP   r6   c                  ó   — y)z´
        Switch back to the vector renderer and draw the contents of the raster
        renderer as an image on the vector renderer.

        Used by `.MixedModeRenderer`.
        NrL   rÍ   s    r4   Ústop_rasterizingzRendererBase.stop_rasterizing{  rP   r6   c                  ó   — y)z„
        Switch to a temporary renderer for image filtering effects.

        Currently only supported by the agg renderer.
        NrL   rÍ   s    r4   Ústart_filterzRendererBase.start_filterƒ  rP   r6   c                  ó   — y)zý
        Switch back to the original renderer.  The contents of the temporary
        renderer is processed with the *filter_func* and is drawn on the
        original renderer as an image.

        Currently only supported by the agg renderer.
        NrL   )rI   Úfilter_funcs     r4   Ústop_filterzRendererBase.stop_filterŠ  rP   r6   c                 óŠ   — t        t        «      D �ci c]  }|j                  d«      s|dv r|d„ “Œ }}t        | fi |¤ŽS c c}w )a	  
        Context manager to temporary disable drawing.

        This is used for getting the drawn size of Artists.  This lets us
        run the draw process to update any Python state but does not pay the
        cost of the draw_XYZ calls on the canvas.
        Údraw_)rO   rS   c                   ó   — y r¢   rL   )ÚargsÚkwargss     r4   ú<lambda>z-RendererBase._draw_disabled.<locals>.<lambda>œ  rP   r6   )Údirr@   Ú
startswithr   )rI   Ú	meth_nameÚno_opss      r4   Ú_draw_disabledzRendererBase._draw_disabled“  sZ   € ô !¤Ó.ö
àØ×$Ñ$ WÔ-ØÐ =Ñ=ð Ñ3Ñ3ð
ˆð 
ô ˜4Ñ* 6Ñ*Ð*ùò
s   ’ A r¢   )FN)"Ú__name__Ú
__module__Ú__qualname__Ú__doc__rC   rO   rS   r[   ri   r€   r�   r“   rk   rŸ   rl   rÎ   rÑ   rÓ   rÕ   rß   rá   rÜ   r÷   ræ   rç   rö   r¬   rã   r  r  r  r  r   Ú__classcell__©rJ   s   @r4   r@   r@   ‚   s«   ø„ ñô&"óòó"ð
 %)ó(ò>+:òZIò*"ò$5ò:0ò"Lò\ó"ò@òð ;?ô Hó. BòD;ò6ò>òò ò%òò(òòòö+r6   r@   c                   ó0  — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zej.                  d„ «       Zd„ Zd„ Zd„ Zd(d„Zej.                  d„ «       Zd„ Zd„ Zd„ Z d„ Z!d„ Z"d„ Z#d)d „Z$d!„ Z%d"„ Z&d#„ Z'd$„ Z(d%„ Z)d*d'„Z*y&)+r
  z=An abstract base class that provides color, line styles, etc.c                 óf  — d| _         d| _        d| _        t        d«      | _        d | _        d | _        d| _        t        d«      | _	        d| _
        d| _        d| _        d | _        t        j                  t         d	   «      | _        t         d
   | _        d | _        d | _        d | _        d | _        y )NrÌ   Fr�   Úbutt)r   NÚroundÚsolid)r©   r©   r©   rÌ   zhatch.colorzhatch.linewidth)Ú_alphaÚ_forced_alphaÚ_antialiasedr   Ú	_capstyleÚ	_cliprectÚ	_clippathÚ_dashesr   Ú
_joinstyleÚ
_linestyleÚ
_linewidthÚ_rgbÚ_hatchr   Úto_rgbar   Ú_hatch_colorÚ_hatch_linewidthÚ_urlÚ_gidÚ_snapÚ_sketchrÍ   s    r4   rC   zGraphicsContextBase.__init__¨  s¢   € ØˆŒØ"ˆÔØˆÔÜ! &Ó)ˆŒØˆŒØˆŒØˆŒÜ# GÓ,ˆŒØ!ˆŒØˆŒØ(ˆŒ	ØˆŒÜ"ŸN™N¬8°MÑ+BÓCˆÔÜ (Ð):Ñ ;ˆÔØˆŒ	ØˆŒ	ØˆŒ
Øˆ�r6   c                 óh  — |j                   | _         |j                  | _        |j                  | _        |j                  | _        |j                  | _        |j
                  | _        |j                  | _        |j                  | _        |j                  | _        |j                  | _	        |j                  | _
        |j                  | _        |j                  | _        |j                  | _        |j                  | _        |j                  | _        |j                   | _        |j"                  | _        y)z"Copy properties from *gc* to self.N)r,  r-  r.  r/  r0  r1  r2  r3  r4  r5  r6  r7  r9  r:  r;  r<  r=  r>  )rI   rW   s     r4   r­   z#GraphicsContextBase.copy_properties¼  sÐ   € à—i‘iˆŒØ×-Ñ-ˆÔØŸO™OˆÔØŸ™ˆŒØŸ™ˆŒØŸ™ˆŒØ—z‘zˆŒØŸ-™-ˆŒØŸ-™-ˆŒØŸ-™-ˆŒØ—G‘GˆŒ	Ø—i‘iˆŒØŸO™OˆÔØ "× 3Ñ 3ˆÔØ—G‘GˆŒ	Ø—G‘GˆŒ	Ø—X‘XˆŒ
Ø—z‘zˆ�r6   c                  ó   — y)zˆ
        Restore the graphics context from the stack - needed only
        for backends that save graphics contexts on a stack.
        NrL   rÍ   s    r4   r¶   zGraphicsContextBase.restoreÑ  rP   r6   c                 ó   — | j                   S )zc
        Return the alpha value used for blending - not supported on all
        backends.
        )r,  rÍ   s    r4   Ú	get_alphazGraphicsContextBase.get_alpha×  s   € ð
 �{‰{Ðr6   c                 ó   — | j                   S )zAReturn whether the object should try to do antialiased rendering.)r.  rÍ   s    r4   Úget_antialiasedz#GraphicsContextBase.get_antialiasedÞ  ó   € à× Ñ Ð r6   c                 ó.   — | j                   j                  S )zReturn the `.CapStyle`.)r/  ÚnamerÍ   s    r4   Úget_capstylez GraphicsContextBase.get_capstyleâ  s   € à�~‰~×"Ñ"Ð"r6   c                 ó   — | j                   S )zX
        Return the clip rectangle as a `~matplotlib.transforms.Bbox` instance.
        ©r0  rÍ   s    r4   Úget_clip_rectanglez&GraphicsContextBase.get_clip_rectangleæ  s   € ð �~‰~Ðr6   c                 óî   — | j                   �i| j                   j                  «       \  }}t        j                  t        j                  |j
                  «      «      r||fS t        j                  d«       yy)zÈ
        Return the clip path in the form (path, transform), where path
        is a `~.path.Path` instance, and transform is
        an affine transform to apply to the path before clipping.
        z/Ill-defined clip_path detected. Returning None.©NN)r1  Úget_transformed_path_and_affiner†   Úallr±   re   Ú_logÚwarning)rI   ÚtpathÚtrs      r4   Úget_clip_pathz!GraphicsContextBase.get_clip_pathì  sZ   € ð �>‰>Ð%ØŸ™×FÑFÓH‰IˆE�2Ü�v‰v”b—k‘k %§.¡.Ó1Ô2Ø˜b�yÐ ä—‘ÐNÔOØ!Ør6   c                 ó   — | j                   S )z—
        Return the dash style as an (offset, dash-list) pair.

        See `.set_dashes` for details.

        Default value is (None, None).
        )r2  rÍ   s    r4   Ú
get_dasheszGraphicsContextBase.get_dashesû  s   € ð �|‰|Ðr6   c                 ó   — | j                   S )z‚
        Return whether the value given by get_alpha() should be used to
        override any other alpha-channel values.
        )r-  rÍ   s    r4   Úget_forced_alphaz$GraphicsContextBase.get_forced_alpha  s   € ð
 ×!Ñ!Ð!r6   c                 ó.   — | j                   j                  S )zReturn the `.JoinStyle`.)r3  rG  rÍ   s    r4   Úget_joinstylez!GraphicsContextBase.get_joinstyle  s   € à�‰×#Ñ#Ð#r6   c                 ó   — | j                   S )z Return the line width in points.)r5  rÍ   s    r4   rˆ   z!GraphicsContextBase.get_linewidth  s   € à�‰Ðr6   c                 ó   — | j                   S )z0Return a tuple of three or four floats from 0-1.)r6  rÍ   s    r4   rë   zGraphicsContextBase.get_rgb  ó   € à�y‰yÐr6   c                 ó   — | j                   S )z+Return a url if one is set, None otherwise.©r;  rÍ   s    r4   Úget_urlzGraphicsContextBase.get_url  r]  r6   c                 ó   — | j                   S )z;Return the object identifier if one is set, None otherwise.©r<  rÍ   s    r4   Úget_gidzGraphicsContextBase.get_gid  r]  r6   c                 ó   — | j                   S )a  
        Return the snap setting, which can be:

        * True: snap vertices to the nearest pixel center
        * False: leave vertices as-is
        * None: (auto) If the path contains only rectilinear line segments,
          round to the nearest pixel center
        ©r=  rÍ   s    r4   Úget_snapzGraphicsContextBase.get_snap   s   € ð �z‰zÐr6   c                 ó|   — |�|| _         d| _        nd| _         d| _        | j                  | j                  d¬«       y)aB  
        Set the alpha value used for blending - not supported on all backends.

        If ``alpha=None`` (the default), the alpha components of the
        foreground and fill colors will be used to set their respective
        transparencies (where applicable); otherwise, ``alpha`` will override
        them.
        NTrÌ   F)ÚisRGBA)r,  r-  r³   r6  )rI   Úalphas     r4   Ú	set_alphazGraphicsContextBase.set_alpha+  s?   € ð ÐØˆDŒKØ!%ˆDÕàˆDŒKØ!&ˆDÔØ×Ñ˜DŸI™I¨dÐÕ3r6   c                 ó6   — t        t        |«      «      | _        y)z>Set whether object should be drawn with antialiased rendering.N)ÚintÚboolr.  )rI   Úbs     r4   r´   z#GraphicsContextBase.set_antialiased<  s   € ô  ¤ Q£›LˆÕr6   c                 ó$   — t        |«      | _        y)z…
        Set how to draw endpoints of lines.

        Parameters
        ----------
        cs : `.CapStyle` or %(CapStyle)s
        N)r   r/  )rI   Úcss     r4   Úset_capstylez GraphicsContextBase.set_capstyleA  s   € ô " "›ˆ�r6   c                 ó   — || _         y)z,Set the clip rectangle to a `.Bbox` or None.NrJ  )rI   Ú	rectangles     r4   Úset_clip_rectanglez&GraphicsContextBase.set_clip_rectangleL  s	   € à"ˆ�r6   c                 ó`   — t        j                  t        j                  df|¬«       || _        y)z2Set the clip path to a `.TransformedPath` or None.N)rX   )r
   Úcheck_isinstancer   ÚTransformedPathr1  )rI   rX   s     r4   Úset_clip_pathz!GraphicsContextBase.set_clip_pathP  s$   € ä×Ñœz×9Ñ9¸4Ð@ÀtÕLØˆ�r6   c                 óè   — |�gt        j                  |«      }t        j                  |dk  «      rt        d«      ‚|j                  r#t        j                  |dkD  «      st        d«      ‚||f| _        y)a]  
        Set the dash style for the gc.

        Parameters
        ----------
        dash_offset : float
            Distance, in points, into the dash pattern at which to
            start the pattern. It is usually set to 0.
        dash_list : array-like or None
            The on-off sequence as points.  None specifies a solid line. All
            values must otherwise be non-negative (:math:`\ge 0`).

        Notes
        -----
        See p. 666 of the PostScript
        `Language Reference
        <https://www.adobe.com/jp/print/postscript/pdfs/PLRM.pdf>`_
        for more info.
        Nr©   z0All values in the dash list must be non-negativez4At least one value in the dash list must be positive)r†   ÚasarrayÚanyÚ
ValueErrorÚsizer2  )rI   Údash_offsetÚ	dash_listÚdls       r4   r²   zGraphicsContextBase.set_dashesU  sn   € ð( Ð Ü—‘˜IÓ&ˆBÜ�v‰v�b˜3‘hÔÜ ØFóHð Hà�wŠwœrŸv™v b¨3¡hÔ/Ü ØJóLð Là" IÐ-ˆ�r6   c                 óþ   — | j                   r|r|dd | j                  fz   | _        y| j                   r&t        j                  || j                  «      | _        y|r|| _        yt        j                  |«      | _        y)a  
        Set the foreground color.

        Parameters
        ----------
        fg : :mpltype:`color`
        isRGBA : bool
            If *fg* is known to be an ``(r, g, b, a)`` tuple, *isRGBA* can be
            set to True to improve performance.
        Nr«   )r-  r,  r6  r   r8  )rI   Úfgrh  s      r4   r³   z"GraphicsContextBase.set_foregrounds  s`   € ð ×Ò¡&Ø˜2˜A˜ $§+¡+ Ñ/ˆD�IØ×ÒÜŸ™ r¨4¯;©;Ó7ˆD�IÙØˆD�IäŸ™ rÓ*ˆD�Ir6   c                 ó$   — t        |«      | _        y)z–
        Set how to draw connections between line segments.

        Parameters
        ----------
        js : `.JoinStyle` or %(JoinStyle)s
        N)r   r3  )rI   Újss     r4   Úset_joinstylez!GraphicsContextBase.set_joinstyle‡  s   € ô $ B›-ˆ�r6   c                 ó$   — t        |«      | _        y)zSet the linewidth in points.N)r‰   r5  )rI   r  s     r4   r®   z!GraphicsContextBase.set_linewidth’  s   € ä ›(ˆ�r6   c                 ó   — || _         y)z-Set the url for links in compatible backends.Nr_  )rI   rÊ   s     r4   rµ   zGraphicsContextBase.set_url–  s	   € àˆ�	r6   c                 ó   — || _         y)zSet the id.Nrb  )rI   Úids     r4   Úset_gidzGraphicsContextBase.set_gidš  s	   € àˆ�	r6   c                 ó   — || _         y)a  
        Set the snap setting which may be:

        * True: snap vertices to the nearest pixel center
        * False: leave vertices as-is
        * None: (auto) If the path contains only rectilinear line segments,
          round to the nearest pixel center
        Nre  )rI   Úsnaps     r4   Úset_snapzGraphicsContextBase.set_snapž  s   € ð ˆ�
r6   c                 ó   — || _         y)z Set the hatch style (for fills).N©r7  )rI   Úhatchs     r4   Ú	set_hatchzGraphicsContextBase.set_hatch©  s	   € àˆ�r6   c                 ó   — | j                   S )zGet the current hatch style.r�  rÍ   s    r4   Ú	get_hatchzGraphicsContextBase.get_hatch­  s   € à�{‰{Ðr6   c                 óT   — | j                  «       }|€yt        j                  ||«      S )z'Return a `.Path` for the current hatch.N)r“  r   r�  )rI   Údensityr�  s      r4   Úget_hatch_pathz"GraphicsContextBase.get_hatch_path±  s'   € à—‘Ó ˆØˆ=ØÜ�z‰z˜% Ó)Ð)r6   c                 ó   — | j                   S )zGet the hatch color.©r9  rÍ   s    r4   Úget_hatch_colorz#GraphicsContextBase.get_hatch_color¸  rE  r6   c                 ó   — || _         y)zSet the hatch color.Nr˜  )rI   Úhatch_colors     r4   Úset_hatch_colorz#GraphicsContextBase.set_hatch_color¼  s
   € à'ˆÕr6   c                 ó   — | j                   S )zGet the hatch linewidth.©r:  rÍ   s    r4   Úget_hatch_linewidthz'GraphicsContextBase.get_hatch_linewidthÀ  s   € à×$Ñ$Ð$r6   c                 ó   — || _         y)zSet the hatch linewidth.Nrž  )rI   Úhatch_linewidths     r4   Úset_hatch_linewidthz'GraphicsContextBase.set_hatch_linewidthÄ  s
   € à /ˆÕr6   c                 ó   — | j                   S )aÿ  
        Return the sketch parameters for the artist.

        Returns
        -------
        tuple or `None`

            A 3-tuple with the following elements:

            * ``scale``: The amplitude of the wiggle perpendicular to the
              source line.
            * ``length``: The length of the wiggle along the line.
            * ``randomness``: The scale factor by which the length is
              shrunken or expanded.

            May return `None` if no sketch parameters were set.
        ©r>  rÍ   s    r4   Úget_sketch_paramsz%GraphicsContextBase.get_sketch_paramsÈ  s   € ð$ �|‰|Ðr6   Nc                 ó<   — |€d| _         y||xs d|xs df| _         y)a   
        Set the sketch parameters.

        Parameters
        ----------
        scale : float, optional
            The amplitude of the wiggle perpendicular to the source line, in
            pixels.  If scale is `None`, or not provided, no sketch filter will
            be provided.
        length : float, default: 128
            The length of the wiggle along the line, in pixels.
        randomness : float, default: 16
            The scale factor by which the length is shrunken or expanded.
        Ng      `@g      0@r¤  )rI   rè   ÚlengthÚ
randomnesss       r4   Úset_sketch_paramsz%GraphicsContextBase.set_sketch_paramsÜ  s,   € ð  �MˆDð 	�à˜š 4¨Ò):°sÐ;ð 	�r6   )F)g      @)NNN)+r!  r"  r#  r$  rC   r­   r¶   rB  rD  rH  rK  rT  rV  rX  rZ  rˆ   rë   r`  rc  rf  rj  r´   r   Úinterpdrq  rt  rx  r²   r³   r…  r®   rµ   rŠ  r�  r‘  r“  r–  r™  rœ  rŸ  r¢  r¥  r©  rL   r6   r4   r
  r
  ¥  sè   „ ÙGòò("ò*òò!ò#òòòò"ò$òòòòò	ò4ò")ð
 ×Ññ&ó ð&ò#òò
.ó<+ð( ×Ññ(ó ð(ò#òòò	òòó*ò!ò(ò%ò0òô(=r6   r
  c                   óî   — e Zd ZdZdd„Zd„ Z ej                  ddd¬«      dd	„«       Zd
„ Z	d„ Z
d„ Zed„ «       Zej                  d„ «       Zed„ «       Zej                  d„ «       Zd„ Zd„ Zd„ Zd„ Zd„ Zy)Ú	TimerBasea5  
    A base class for providing timer events, useful for things animations.
    Backends need to implement a few specific methods in order to use their
    own timing mechanisms so that the timer events are integrated into their
    event loops.

    Subclasses must override the following methods:

    - ``_timer_start``: Backend-specific code for starting the timer.
    - ``_timer_stop``: Backend-specific code for stopping the timer.

    Subclasses may additionally override the following methods:

    - ``_timer_set_single_shot``: Code for setting the timer to single shot
      operating mode, if supported by the timer object.  If not, the `Timer`
      class itself will store the flag and the ``_on_timer`` method should be
      overridden to support such behavior.

    - ``_timer_set_interval``: Code for setting the interval on the timer, if
      there is a method for doing so on the timer object.

    - ``_on_timer``: The internal function that any timer object should call,
      which will handle the task of running all callbacks that have been set.
    Nc                 óZ   — |€g n|j                  «       | _        |€dn|| _        d| _        y)a#  
        Parameters
        ----------
        interval : int, default: 1000ms
            The time between timer events in milliseconds.  Will be stored as
            ``timer.interval``.
        callbacks : list[tuple[callable, tuple, dict]]
            List of (func, args, kwargs) tuples that will be called upon timer
            events.  This list is accessible as ``timer.callbacks`` and can be
            manipulated directly, or the functions `~.TimerBase.add_callback`
            and `~.TimerBase.remove_callback` can be used.
        Niè  F)ÚcopyÚ	callbacksÚintervalÚsingle_shot©rI   r°  r¯  s      r4   rC   zTimerBase.__init__
  s/   € ð  )Ð0™°i·n±nÓ6FˆŒà (Ð 0™°hˆŒØ ˆÕr6   c                 ó$   — | j                  «        y)z1Need to stop timer and possibly disconnect timer.N©Ú_timer_stoprÍ   s    r4   Ú__del__zTimerBase.__del__  ó   € à×ÑÕr6   ú3.9r°  ztimer.interval)Úalternativec                 ó6   — |�|| _         | j                  «        y)zÚ
        Start the timer object.

        Parameters
        ----------
        interval : int, optional
            Timer interval in milliseconds; overrides a previously set interval
            if provided.
        N)r°  Ú_timer_start©rI   r°  s     r4   ÚstartzTimerBase.start   s   € ð ÐØ$ˆDŒMØ×ÑÕr6   c                 ó$   — | j                  «        y)zStop the timer.Nr´  rÍ   s    r4   ÚstopzTimerBase.stop/  r·  r6   c                  ó   — y r¢   rL   rÍ   s    r4   r»  zTimerBase._timer_start3  ó   € Ør6   c                  ó   — y r¢   rL   rÍ   s    r4   rµ  zTimerBase._timer_stop6  rÁ  r6   c                 ó   — | j                   S )z/The time between timer events, in milliseconds.)Ú	_intervalrÍ   s    r4   r°  zTimerBase.interval9  s   € ð �~‰~Ðr6   c                 ó\   — t        t        |«      d«      }|| _        | j                  «        y )Nr�   )r•   rl  rÄ  Ú_timer_set_intervalr¼  s     r4   r°  zTimerBase.interval>  s'   € ô
 ”s˜8“} aÓ(ˆØ!ˆŒØ× Ñ Õ"r6   c                 ó   — | j                   S )z2Whether this timer should stop after a single run.)Ú_singlerÍ   s    r4   r±  zTimerBase.single_shotG  s   € ð �|‰|Ðr6   c                 ó2   — || _         | j                  «        y r¢   )rÈ  Ú_timer_set_single_shot)rI   Ússs     r4   r±  zTimerBase.single_shotL  s   € àˆŒØ×#Ñ#Õ%r6   c                 óB   — | j                   j                  |||f«       |S )zò
        Register *func* to be called by timer when the event fires. Any
        additional arguments provided will be passed to *func*.

        This function returns *func*, which makes it possible to use it as a
        decorator.
        )r¯  Úappend)rI   Úfuncr  r  s       r4   Úadd_callbackzTimerBase.add_callbackQ  s"   € ð 	�‰×Ñ˜t T¨6Ð2Ô3Øˆr6   c                 ó  — |s|r6t        j                  dd¬«       | j                  j                  |||f«       y| j                  D �cg c]  }|d   ‘Œ	 }}||v r+| j                  j	                  |j                  |«      «       yyc c}w )a¹  
        Remove *func* from list of callbacks.

        *args* and *kwargs* are optional and used to distinguish between copies
        of the same function registered to be called with different arguments.
        This behavior is deprecated.  In the future, ``*args, **kwargs`` won't
        be considered anymore; to keep a specific callback removable by itself,
        pass it to `add_callback` as a `functools.partial` object.
        z3.1zîIn a future version, Timer.remove_callback will not take *args, **kwargs anymore, but remove all callbacks where the callable matches; to keep a specific callback removable by itself, pass it to add_callback as a functools.partial object.©Úmessager   N)r
   Úwarn_deprecatedr¯  ÚremoveÚpopÚindex)rI   rÎ  r  r  ÚcÚfuncss         r4   Úremove_callbackzTimerBase.remove_callback\  s�   € ñ ‘6Ü× Ñ Øð  ,õ-ð �N‰N×!Ñ! 4¨¨vÐ"6Õ7à#'§>¡>Ö2˜a�Q�q“TÐ2ˆEÐ2Ø�u‰}Ø—‘×"Ñ" 5§;¡;¨tÓ#4Õ5ð ùò 3s   Á	Bc                  ó   — y)z0Used to set interval on underlying timer object.NrL   rÍ   s    r4   rÆ  zTimerBase._timer_set_intervals  rP   r6   c                  ó   — y)z3Used to set single shot on underlying timer object.NrL   rÍ   s    r4   rÊ  z TimerBase._timer_set_single_shotv  rP   r6   c                 óØ   — | j                   D ]2  \  }}} ||i |¤Ž}|dk(  sŒ| j                   j                  |||f«       Œ4 t        | j                   «      dk(  r| j                  «        yy)zã
        Runs all function that have been registered as callbacks. Functions
        can return False (or 0) if they should not be called any more. If there
        are no callbacks, the timer is automatically stopped.
        r   N)r¯  rÔ  r`   r¿  )rI   rÎ  r  r  Úrets        r4   Ú	_on_timerzTimerBase._on_timery  sp   € ð #'§.¡.ò 	<ÑˆD�$˜Ù˜Ð' Ñ'ˆCð �a‹xØ—‘×%Ñ% t¨T°6Ð&:Õ;ð	<ô ˆt�~‰~Ó !Ò#Ø�I‰I�Kð $r6   rM  r¢   )r!  r"  r#  r$  rC   r¶  r
   Údelete_parameterr½  r¿  r»  rµ  Úpropertyr°  Úsetterr±  rÏ  rÙ  rÆ  rÊ  rÞ  rL   r6   r4   r¬  r¬  ð  s»   „ ñó2!ò$ð €T×Ñ˜5 *Ð:JÔKòó Lðòòòð ñó ðð ‡_�_ñ#ó ð#ð ñó ðð ×Ññ&ó ð&ò	ò6ò.?òBór6   r¬  c                   ó   — e Zd ZdZdd„Zd„ Zy)ÚEventaŽ  
    A Matplotlib event.

    The following attributes are defined and shown with their default values.
    Subclasses may define additional attributes.

    Attributes
    ----------
    name : str
        The event name.
    canvas : `FigureCanvasBase`
        The backend-specific canvas instance generating the event.
    guiEvent
        The GUI event that triggered the Matplotlib event.
    Nc                 ó.   — || _         || _        || _        y r¢   )rG  ÚcanvasÚguiEvent)rI   rG  rå  ræ  s       r4   rC   zEvent.__init__ž  s   € ØˆŒ	ØˆŒØ ˆ�r6   c                 ór   — | j                   j                  j                  | j                  | «       d| _        y)z?Process this event on ``self.canvas``, then unset ``guiEvent``.N)rå  r¯  ÚprocessrG  ræ  rÍ   s    r4   Ú_processzEvent._process£  s'   € à�‰×Ñ×%Ñ% d§i¡i°Ô6Øˆ�r6   r¢   )r!  r"  r#  r$  rC   ré  rL   r6   r4   rã  rã  �  s   „ ñó !ó
r6   rã  c                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )Ú	DrawEventaº  
    An event triggered by a draw operation on the canvas.

    In most backends, callbacks subscribed to this event will be fired after
    the rendering is complete but before the screen is updated. Any extra
    artists drawn to the canvas's renderer will be reflected without an
    explicit call to ``blit``.

    .. warning::

       Calling ``canvas.draw`` and ``canvas.blit`` in these callbacks may
       not be safe with all backends and may cause infinite recursion.

    A DrawEvent has a number of special attributes in addition to those defined
    by the parent `Event` class.

    Attributes
    ----------
    renderer : `RendererBase`
        The renderer for the draw event.
    c                 ó4   •— t         ‰| �  ||«       || _        y r¢   )rB   rC   ró   )rI   rG  rå  ró   rJ   s       €r4   rC   zDrawEvent.__init__¿  s   ø€ Ü‰Ñ˜˜vÔ&Ø ˆ�r6   ©r!  r"  r#  r$  rC   r%  r&  s   @r4   rë  rë  ©  s   ø„ ñ÷*!ð !r6   rë  c                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )ÚResizeEventa3  
    An event triggered by a canvas resize.

    A ResizeEvent has a number of special attributes in addition to those
    defined by the parent `Event` class.

    Attributes
    ----------
    width : int
        Width of the canvas in pixels.
    height : int
        Height of the canvas in pixels.
    c                 ó`   •— t         ‰| �  ||«       |j                  «       \  | _        | _        y r¢   )rB   rC   rþ   rï   rð   )rI   rG  rå  rJ   s      €r4   rC   zResizeEvent.__init__Ó  s)   ø€ Ü‰Ñ˜˜vÔ&Ø"(×"9Ñ"9Ó";ÑˆŒ
�D•Kr6   rí  r&  s   @r4   rï  rï  Ä  s   ø„ ñ÷<ð <r6   rï  c                   ó   — e Zd ZdZy)Ú
CloseEventz,An event triggered by a figure being closed.N©r!  r"  r#  r$  rL   r6   r4   rò  rò  Ø  s   „ Ú6r6   rò  c                   ó6   ‡ — e Zd ZdZdZdddœˆ fd„Zdd„Zˆ xZS )ÚLocationEventa|  
    An event that has a screen location.

    A LocationEvent has a number of special attributes in addition to those
    defined by the parent `Event` class.

    Attributes
    ----------
    x, y : int or None
        Event location in pixels from bottom left of canvas.
    inaxes : `~matplotlib.axes.Axes` or None
        The `~.axes.Axes` instance over which the mouse is, if any.
    xdata, ydata : float or None
        Data coordinates of the mouse within *inaxes*, or *None* if the mouse
        is not over an Axes.
    modifiers : frozenset
        The keyboard modifiers currently being pressed (except for KeyEvent).
    N©Ú	modifiersc                óŒ  •— t         ‰| �  |||¬«       |�t        |«      n|| _        |�t        |«      n|| _        d | _        d | _        d | _        t        |�|ng «      | _	        |�|€y | j                  | j                  j                  €| j                  j                  ||f«      n| j                  j                  ||f«       y ©N)ræ  )rB   rC   rl  rg   rh   ÚinaxesÚxdataÚydataÚ	frozensetr÷  Ú_set_inaxesrå  Úmouse_grabber)rI   rG  rå  rg   rh   ræ  r÷  rJ   s          €r4   rC   zLocationEvent.__init__ò  s·   ø€ Ü‰Ñ˜˜v°ÐÔ9à˜=”�Q”¨aˆŒà˜=”�Q”¨aˆŒØˆŒØˆŒ
ØˆŒ
Ü"°	Ð0E¡9È2ÓNˆŒàˆ9˜˜	àà×ÑØ ŸK™K×5Ñ5Ð=ð Ÿ™×+Ñ+¨Q°¨FÔ3àŸ™×2Ñ2Ø˜Q˜õ	!r6   c                 óØ   — || _         |�R	 |j                  j                  «       j                  |�|n| j                  | j
                  f«      \  | _        | _        y y # t        $ r Y y w xY wr¢   )	rú  Ú	transDataÚinvertedrY   rg   rh   rû  rü  r|  )rI   rú  Úxys      r4   rþ  zLocationEvent._set_inaxes  sl   € ØˆŒØÐðØ)/×)9Ñ)9×)BÑ)BÓ)D×)NÑ)NØ˜.‘B¨t¯v©v°t·v±vÐ.>ó*@Ñ&�”
˜D�Jð øô ò Ùðús   ‹AA Á	A)Á(A)r¢   )r!  r"  r#  r$  Ú_last_axes_refrC   rþ  r%  r&  s   @r4   rõ  rõ  Ü  s    ø„ ñð& €Nð!Àtö !÷4r6   rõ  c                   ó    — e Zd ZdZdZdZdZdZy)ÚMouseButtonr�   é   r«   é   é	   N)r!  r"  r#  ÚLEFTÚMIDDLEÚRIGHTÚBACKÚFORWARDrL   r6   r4   r  r    s   „ Ø€DØ€FØ€EØ€DØ�Gr6   r  c                   ó6   ‡ — e Zd ZdZ	 	 ddddœˆ fd„Zd„ Zˆ xZS )Ú
MouseEventa¨  
    A mouse event ('button_press_event', 'button_release_event', 'scroll_event', 'motion_notify_event').

    A MouseEvent has a number of special attributes in addition to those
    defined by the parent `Event` and `LocationEvent` classes.

    Attributes
    ----------
    button : None or `MouseButton` or {'up', 'down'}
        The button pressed. 'up' and 'down' are used for scroll events.

        Note that LEFT and RIGHT actually refer to the "primary" and
        "secondary" buttons, i.e. if the user inverts their left and right
        buttons ("left-handed setting") then the LEFT button will be the one
        physically on the right.

        If this is unset, *name* is "scroll_event", and *step* is nonzero, then
        this will be set to "up" or "down" depending on the sign of *step*.

    buttons : None or frozenset
        For 'motion_notify_event', the mouse buttons currently being pressed
        (a set of zero or more MouseButtons);
        for other events, None.

        .. note::
           For 'motion_notify_event', this attribute is more accurate than
           the ``button`` (singular) attribute, which is obtained from the last
           'button_press_event' or 'button_release_event' that occurred within
           the canvas (and thus 1. be wrong if the last change in mouse state
           occurred when the canvas did not have focus, and 2. cannot report
           when multiple buttons are pressed).

           This attribute is not set for 'button_press_event' and
           'button_release_event' because GUI toolkits are inconsistent as to
           whether they report the button state *before* or *after* the
           press/release occurred.

        .. warning::
           On macOS, the Tk backends only report a single button even if
           multiple buttons are pressed.

    key : None or str
        The key pressed when the mouse event triggered, e.g. 'shift'.
        See `KeyEvent`.

        .. warning::
           This key is currently obtained from the last 'key_press_event' or
           'key_release_event' that occurred within the canvas.  Thus, if the
           last change of keyboard state occurred while the canvas did not have
           focus, this attribute will be wrong.  On the other hand, the
           ``modifiers`` attribute should always be correct, but it can only
           report on modifier keys.

    step : float
        The number of scroll steps (positive for 'up', negative for 'down').
        This applies only to 'scroll_event' and defaults to 0 otherwise.

    dblclick : bool
        Whether the event is a double-click. This applies only to
        'button_press_event' and is False otherwise. In particular, it's
        not used in 'button_release_event'.

    Examples
    --------
    ::

        def on_press(event):
            print('you pressed', event.button, event.xdata, event.ydata)

        cid = fig.canvas.mpl_connect('button_press_event', on_press)
    N)Úbuttonsr÷  c
                óF  •— t         ‰| �  |||||	|¬«       |t        j                  j	                  «       v rt        |«      }|dk(  r|€|dkD  rd}n|dk  rd}|| _        |dk(  rt        |
�|
ng «      | _        n|
rt        d«      ‚d | _        || _	        || _
        || _        y )N)ræ  r÷  Úscroll_eventr   ÚupÚdownÚmotion_notify_eventz5'buttons' is only supported for 'motion_notify_event')rB   rC   r  Ú__members__ÚvaluesÚbuttonrý  r  r|  ÚkeyÚstepÚdblclick)rI   rG  rå  rg   rh   r  r  r  r  ræ  r  r÷  rJ   s               €r4   rC   zMouseEvent.__init__h  sÀ   ø€ ô 	‰ÑØ�&˜!˜Q¨¸Yð 	ô 	Hà”[×,Ñ,×3Ñ3Ó5Ñ5Ü  Ó(ˆFØ�>Ò! f nØ�aŠxØ‘Ø˜’Ø�ØˆŒØÐ(Ò(Ü$°Ð0C¡WÈÓLˆD�Lñ
 Ü ØKóMð MàˆDŒLØˆŒØˆŒ	Ø ˆ�r6   c                 óÔ   — | j                   › d| j                  › d| j                  › d| j                  › d| j                  › d| j
                  › d| j                  › d| j                  › �S )Nz: xy=(ú, z
) xydata=(z	) button=z
 dblclick=z inaxes=)rG  rg   rh   rû  rü  r  r  rú  rÍ   s    r4   Ú__str__zMouseEvent.__str__ƒ  si   € Ø—9‘9�+ð Ø—v‘v�h˜b §¡ ¨
°4·:±:°,¸bÀÇÁÀð MØŸ+™+˜ j°·±°ð @ØŸ+™+˜ð(ð 	)r6   )NNr   FN)r!  r"  r#  r$  rC   r  r%  r&  s   @r4   r  r    s'   ø„ ñGðR =AØ26ð!à¨ö!ö6)r6   r  c                   ó&   ‡ — e Zd ZdZ	 dˆ fd„	Zˆ xZS )Ú	PickEventa×  
    A pick event.

    This event is fired when the user picks a location on the canvas
    sufficiently close to an artist that has been made pickable with
    `.Artist.set_picker`.

    A PickEvent has a number of special attributes in addition to those defined
    by the parent `Event` class.

    Attributes
    ----------
    mouseevent : `MouseEvent`
        The mouse event that generated the pick.
    artist : `~matplotlib.artist.Artist`
        The picked artist.  Note that artists are not pickable by default
        (see `.Artist.set_picker`).
    other
        Additional attributes may be present depending on the type of the
        picked object; e.g., a `.Line2D` pick may define different extra
        attributes than a `.PatchCollection` pick.

    Examples
    --------
    Bind a function ``on_pick()`` to pick events, that prints the coordinates
    of the picked data point::

        ax.plot(np.rand(100), 'o', picker=5)  # 5 points tolerance

        def on_pick(event):
            line = event.artist
            xdata, ydata = line.get_data()
            ind = event.ind
            print(f'on pick line: {xdata[ind]:.3f}, {ydata[ind]:.3f}')

        cid = fig.canvas.mpl_connect('pick_event', on_pick)
    c                 ó–   •— |€|j                   }t        ‰| �	  |||«       || _        || _        | j
                  j                  |«       y r¢   )ræ  rB   rC   Ú
mouseeventÚartistÚ__dict__Úupdate)rI   rG  rå  r#  r$  ræ  r  rJ   s          €r4   rC   zPickEvent.__init__±  sE   ø€ àÐØ!×*Ñ*ˆHÜ‰Ñ˜˜v xÔ0Ø$ˆŒØˆŒØ�‰×Ñ˜VÕ$r6   r¢   rí  r&  s   @r4   r!  r!  Š  s   ø„ ñ$ðN ÷%ñ %r6   r!  c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )ÚKeyEventaÇ  
    A key event (key press, key release).

    A KeyEvent has a number of special attributes in addition to those defined
    by the parent `Event` and `LocationEvent` classes.

    Attributes
    ----------
    key : None or str
        The key(s) pressed. Could be *None*, a single case sensitive Unicode
        character ("g", "G", "#", etc.), a special key ("control", "shift",
        "f1", "up", etc.) or a combination of the above (e.g., "ctrl+alt+g",
        "ctrl+alt+G").

    Notes
    -----
    Modifier keys will be prefixed to the pressed key and will be in the order
    "ctrl", "alt", "super". The exception to this rule is when the pressed key
    is itself a modifier key, therefore "ctrl+alt" and "alt+control" can both
    be valid key values.

    Examples
    --------
    ::

        def on_key(event):
            print('you pressed', event.key, event.xdata, event.ydata)

        cid = fig.canvas.mpl_connect('key_press_event', on_key)
    c                 ó<   •— t         ‰| �  |||||¬«       || _        y rù  )rB   rC   r  )rI   rG  rå  r  rg   rh   ræ  rJ   s          €r4   rC   zKeyEvent.__init__Û  s"   ø€ Ü‰Ñ˜˜v q¨!°hÐÔ?Øˆ�r6   )r   r   Nrí  r&  s   @r4   r(  r(  »  s   ø„ ñ÷>ñ r6   r(  c                 óœ   — | j                   dk(  r| j                  | j                  _        y | j                   dk(  rd | j                  _        y y )NÚkey_press_eventÚkey_release_event)rG  r  rå  Ú_key)Úevents    r4   Ú_key_handlerr/  á  s=   € à‡z�zÐ&Ò&Ø!ŸI™Iˆ�‰ÕØ	�‰Ð*Ò	*Ø ˆ�‰Õð 
+r6   c                 óÄ  — | j                   dk(  r| j                  | j                  _        nW| j                   dk(  rd | j                  _        n6| j                   dk(  r'| j                  €| j                  j                  | _        | j                  €| j                  j
                  | _        | j                   dk(  �rt        j                  }|r |«       nd }|| j                  k7  r·|�ƒ	 |j                  d¬«      j                  }t        d|| j                  | j                  | j                  | j                  ¬«      }|j                  |«       |j                  j!                  d|«       | j                  �&| j                  j                  j!                  d| «       | j                  rt%        j&                  | j                  «      nd t        _        y y # t"        $ r Y Œuw xY w)	NÚbutton_press_eventÚbutton_release_eventr  T©ÚrootÚaxes_leave_eventrö  Úaxes_enter_event)rG  r  rå  Ú_buttonr  r-  rõ  r  rú  Ú
get_figurerg   rh   ræ  r÷  rþ  r¯  rè  Ú	ExceptionÚweakrefÚref)r.  Úlast_refÚ	last_axesrå  Úleave_events        r4   Ú_mouse_handlerr?  ê  s}  € à‡z�zÐ)Ò)Ø$Ÿ|™|ˆ�‰ÕØ	�‰Ð-Ò	-Ø#ˆ�‰ÕØ	�‰Ð,Ò	,°·±Ð1EØ—|‘|×+Ñ+ˆŒØ‡y�yÐØ—L‘L×%Ñ%ˆŒ	à‡z�zÐ*Ó*Ü ×/Ñ/ˆÙ"*‘H”J°ˆ	Ø˜Ÿ™Ò$ØÐ$ð	Ø&×1Ñ1°tÐ1Ó<×CÑC�FÜ"/Ø*¨FØŸ™ §¡¨%¯.©.Ø"'§/¡/ô#3�Kð  ×+Ñ+¨IÔ6Ø×$Ñ$×,Ñ,Ð-?ÀÔMð �|‰|Ð'Ø—‘×&Ñ&×.Ñ.Ð/AÀ5ÔIà).¯ªŒG�K‰K˜Ÿ™Ô%¸4ô 	Õ$ð- +øô$ !ò Ùðús   Ã'BG Ç	GÇGc                 óú  ‡—  G d„ dt         «      Šˆfd„}t        j                  | |¬«      5  t        «       5 }|€D| j                  j                  «       }|j                  | j                  j                  |«      «      }	  |t        j                  «       «       t        |› d�«      ‚# ‰$ r,}|j                  \  }|cY d}~cddd«       cddd«       S d}~ww xY w# 1 sw Y   nxY wddd«       y# 1 sw Y   yxY w)zÍ
    Get the renderer that would be used to save a `.Figure`.

    If you need a renderer without any active draw methods use
    renderer._draw_disabled to temporary patch them out at your call site.
    c                   ó   — e Zd Zy)ú_get_renderer.<locals>.DoneN)r!  r"  r#  rL   r6   r4   ÚDonerB    s   „ Ør6   rC  c                 ó   •—  ‰| «      ‚r¢   rL   )ró   rC  s    €r4   Ú_drawz_get_renderer.<locals>._draw  s   ø€ ™t H›~Ð-r6   )ÚdrawNz6 did not call Figure.draw, so no renderer is available)r9  r   r   r   rå  Úget_default_filetypeÚenter_contextÚ&_switch_canvas_and_return_print_methodÚioÚBytesIOÚRuntimeErrorr  )ÚfigureÚprint_methodrE  ÚstackÚfmtÚexcró   rC  s          @r4   Ú_get_rendererrR    sí   ø€ ôŒyô ô .ä	×	Ñ	˜6¨Ô	.ñ <´	³ð <¸uØÐØ—-‘-×4Ñ4Ó6ˆCð !×.Ñ.Ø—‘×DÑDÀSÓIóKˆLð	<ÙœŸ™›Ô&ô
  , ð 0:ð  ;ó <ð <øð	 ò 	ØŸ™‰IˆHØŒO÷<÷ <ò <ûð	ú÷<ð <ú÷ <÷ <ñ <úsS   ­C1¸ACÂ B(ÂCÂ(CÂ-CÂ<CÂ=CÃ	C1ÃCÃCÃC%	Ã!C1Ã1C:c                 ó$   — | j                  «        y r¢   )Údraw_without_rendering)rM  s    r4   Ú_no_output_drawrU  /  s   € ð ×!Ñ!Õ#r6   c                 óp   — t        | d«      xr) | j                  duxr t        | j                  dd«      du S )aN  
    Return whether we are in a terminal IPython, but non interactive.

    When in _terminal_ IPython, ip.parent will have and `interact` attribute,
    if this attribute is False we do not setup eventloop integration as the
    user will _not_ interact with IPython. In all other case (ZMQKernel, or is
    interactive), we do.
    ÚparentNÚinteractF)ÚhasattrrW  Úgetattr)Úips    r4   Ú$_is_non_interactive_terminal_ipythonr\  5  s>   € ô �B˜Ó!ò >Ø—‘ $Ð&ò>ä˜Ÿ	™	 :¨tÓ4¸Ð=ð?r6   c              #   ó^  ‡‡K  — t        j                  t         j                  «      }|dt         j                  t         j                  fv rd–— ydŠt        j                  «       \  }}|j                  d«       |j                  d«       t        j                  |j                  «       «      } | |«      }ˆˆfd„}t        j                   t         j                  |«       	 d–— |j                  «        |j                  «        t        j                  |«       t        j                   t         j                  |«       ‰� |‰Ž  yy# |j                  «        |j                  «        t        j                  |«       t        j                   t         j                  |«       ‰� |‰Ž  w w xY w­w)a‡  
    A context manager that allows terminating a plot by sending a SIGINT.  It
    is necessary because the running backend prevents the Python interpreter
    from running and processing signals (i.e., to raise a KeyboardInterrupt).
    To solve this, one needs to somehow wake up the interpreter and make it
    close the plot window.  We do this by using the signal.set_wakeup_fd()
    function which organizes a write of the signal number into a socketpair.
    A backend-specific function, *prepare_notifier*, arranges to listen to
    the pair's read socket while the event loop is running.  (If it returns a
    notifier object, that object is kept alive while the context manager runs.)

    If SIGINT was indeed caught, after exiting the on_signal() function the
    interpreter reacts to the signal according to the handler function which
    had been set up by a signal.signal() call; here, we arrange to call the
    backend-specific *handle_sigint* function.  Finally, we call the old SIGINT
    handler with the same arguments that were given to our custom handler.

    We do this only if the old handler for SIGINT was not None, which means
    that a non-python handler was installed, i.e. in Julia, and not SIG_IGN
    which means we should ignore the interrupts.

    Parameters
    ----------
    prepare_notifier : Callable[[socket.socket], object]
    handle_sigint : Callable[[], object]
    NFc                  ó   •— | Š ‰«        y r¢   rL   )r  Úhandle_sigintÚhandler_argss    €€r4   Úsave_args_and_handle_sigintz5_allow_interrupt.<locals>.save_args_and_handle_sigintl  s   ø€ àˆÙ�r6   )ÚsignalÚ	getsignalÚSIGINTÚSIG_IGNÚSIG_DFLÚsocketÚ
socketpairÚsetblockingÚset_wakeup_fdÚfilenoÚclose)	Úprepare_notifierr_  Úold_sigint_handlerÚwsockÚrsockÚold_wakeup_fdÚnotifierra  r`  s	    `      @r4   Ú_allow_interruptrs  C  s?  ùè ø€ ô:  ×)Ñ)¬&¯-©-Ó8ÐØ˜d¤F§N¡N´F·N±NÐCÑCÛØà€LÜ×$Ñ$Ó&�L€Eˆ5Ø	×Ñ�eÔØ	×Ñ�eÔÜ×(Ñ(¨¯©«Ó8€MÙ Ó&€Hõô
 ‡M�M”&—-‘-Ð!<Ô=ð.Ûà�‰ŒØ�‰ŒÜ×Ñ˜]Ô+Ü�‰”f—m‘mÐ%7Ô8ØÐ#Ù Ò-ð $øð	 	�‰ŒØ�‰ŒÜ×Ñ˜]Ô+Ü�‰”f—m‘mÐ%7Ô8ØÐ#Ù Ò-ð $üs    „CF-Ã!E Ã%A"F-ÅA#F*Æ*F-c                   óæ  ‡ — e Zd ZdZdZ ej                  d„ «      Zg d¢ZdZ	e
Zej                  d„ «       Zd'ˆ fd„	Z ed„ «      Z ed„ «      Z ed	„ «      Zeej(                  d
„ «       «       Zed„ «       Zed„ «       Zd„ Zd'd„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z ed„ «       Z!d„ Z"ddœd„Z#ed„ «       Z$ed„ «       Z%ed'd„«       Z&	 	 d(dddddœd„Z'ed„ «       Z(d „ Z)d!„ Z*d"„ Z+e,Z-d)d#„Z.d$„ Z/d*d%„Z0d&„ Z1ˆ xZ2S )+ÚFigureCanvasBasez›
    The canvas the figure renders into.

    Attributes
    ----------
    figure : `~matplotlib.figure.Figure`
        A high-level figure instance.
    Nc                 ó   — t         S r¢   )ÚFigureManagerBase©Úclss    r4   r  zFigureCanvasBase.<lambda>�  s   € Ô3D€ r6   )Úresize_eventÚ
draw_eventr+  r,  r1  r2  r  r  Ú
pick_eventÚfigure_enter_eventÚfigure_leave_eventr6  r5  Úclose_eventc                 ó6   — t        | d«      xr t        | d«      S )z+If this Canvas sub-class supports blitting.Úcopy_from_bboxÚrestore_region)rY  rx  s    r4   Úsupports_blitzFigureCanvasBase.supports_blit§  s$   € ô ˜Ð-Ó.ò 3Ü˜CÐ!1Ó2ð	4r6   c                 ób  •— ddl m} | j                  «        d| _        d| _        |€ |«       }|j                  | «       || _        d | _        t        j                  «       | _
        d | _        d | _        d | _        d | _        d| _        |j                  |_        d| _        t$        ‰| �M  «        y )Nr   ©ÚFigureTFr�   )Úmatplotlib.figurer†  Ú_fix_ipython_backend2guiÚ_is_idle_drawingÚ
_is_savingÚ
set_canvasrM  Úmanagerr   ÚLockDrawÚ
widgetlockr7  r-  rÿ  Útoolbarr   Ú_original_dpiÚ_device_pixel_ratiorB   rC   )rI   rM  r†  rJ   s      €r4   rC   zFigureCanvasBase.__init__­  s�   ø€ Ý,Ø×%Ñ%Ô'Ø $ˆÔØˆŒØˆ>Ù“XˆFØ×Ñ˜$ÔØˆŒØˆŒÜ!×*Ñ*Ó,ˆŒØˆŒØˆŒ	Ø!ˆÔØˆŒØ %ˆÔà%Ÿz™zˆÔØ#$ˆÔ Ü‰ÑÕr6   c                 ó.   — | j                   j                  S r¢   )rM  Ú_canvas_callbacksrÍ   s    r4   r  zFigureCanvasBase.<lambda>Â  s   €  d§k¡k×&CÑ&C€ r6   c                 ó.   — | j                   j                  S r¢   )rM  Ú_button_pick_idrÍ   s    r4   r  zFigureCanvasBase.<lambda>Ã  ó   € ¨4¯;©;×+FÑ+F€ r6   c                 ó.   — | j                   j                  S r¢   )rM  Ú_scroll_pick_idrÍ   s    r4   r  zFigureCanvasBase.<lambda>Ä  r–  r6   c                 óZ  — t         j                  j                  d«      }|�|j                  d d dk\  ry dd l}|j                  «       }|sy ddlm} t        |d«      rt        |d«      sy dd	d
dddœj                  | j                  «      }|rt        |«      r|j                  |«       y y y )NÚIPythonr  )r  é   r   )Ú
pylabtoolsÚbackend2guiÚenable_matplotlibÚqtÚgtk3Úgtk4ÚwxÚosx)rŸ  r   r¡  r¢  Úmacosx)ÚsysÚmodulesÚgetÚversion_inforš  Úget_ipythonÚIPython.corerœ  rY  Úrequired_interactive_frameworkr\  Ú
enable_gui)ry  Úmod_ipythonrš  r[  ÚptÚbackend2gui_rifs         r4   rˆ  z)FigureCanvasBase._fix_ipython_backend2guiÆ  s·   € ô —k‘k—o‘o iÓ0ˆØÐ +×":Ñ":¸2¸AÐ">À'Ò"Ið ãØ× Ñ Ó"ˆÙØÝ1Ü˜˜MÔ*Ü˜rÐ#6Ô7ð àØØØØñ
÷ ‰#ˆc×0Ñ0Ó
1ð 	ñ Ü3°BÔ7Ø—‘˜oÕ.ð 8ð r6   c                 ó<   — | j                   j                  | ||«      S )a&  
        Create a new figure manager for *figure*, using this canvas class.

        Notes
        -----
        This method should not be reimplemented in subclasses.  If
        custom manager creation logic is needed, please reimplement
        ``FigureManager.create_with_canvas``.
        )Úmanager_classÚcreate_with_canvas)ry  rM  Únums      r4   Únew_managerzFigureCanvasBase.new_managerì  s   € ð × Ñ ×3Ñ3°C¸ÀÓEÐEr6   c              #   óJ   K  — d| _         	 d –— d| _         y # d| _         w xY w­w)NTF)r‰  rÍ   s    r4   Ú_idle_draw_cntxz FigureCanvasBase._idle_draw_cntxù  s&   è ø€ à $ˆÔð	*Ûà$)ˆDÕ!ø EˆDÕ!üs   ‚#‹ �#—	  #c                 ó   — | j                   S )z‹
        Return whether the renderer is in the process of saving
        to a file, rather than rendering for an on-screen buffer.
        ©rŠ  rÍ   s    r4   Ú	is_savingzFigureCanvasBase.is_saving  s   € ð
 �‰Ðr6   c                  ó   — y)z0Blit the canvas in bbox (default entire canvas).NrL   )rI   Úbboxs     r4   ÚblitzFigureCanvasBase.blit  rP   r6   c                 óê   — | j                   j                  «       D �cg c]/  }|j                  j                  |«      r|j	                  «       r|‘Œ1 }}|rt        j                  |«      }|S d}|S c c}w )a•  
        Return the topmost visible `~.axes.Axes` containing the point *xy*.

        Parameters
        ----------
        xy : (float, float)
            (x, y) pixel positions from left/bottom of the canvas.

        Returns
        -------
        `~matplotlib.axes.Axes` or None
            The topmost visible Axes containing the point, or None if there
            is no Axes at the point.
        N)rM  Úget_axesÚpatchÚcontains_pointÚget_visibler   Ú_topmost_artist)rI   r  ÚaÚ	axes_listÚaxess        r4   rú  zFigureCanvasBase.inaxes  sv   € ð !%§¡× 4Ñ 4Ó 6ö H˜1ØŸ™×.Ñ.¨rÔ2°q·}±}´ò ð Hˆ	ð HáÜ×(Ñ(¨Ó3ˆDð ˆð ˆDàˆùòHs   �4A0c                 óH   — | j                   d|fvrt        d«      ‚|| _         y)zÙ
        Set the child `~.axes.Axes` which is grabbing the mouse events.

        Usually called by the widgets themselves. It is an error to call this
        if the mouse is already grabbed by another Axes.
        Nz&Another Axes already grabs mouse input)rÿ  rL  ©rI   Úaxs     r4   Ú
grab_mousezFigureCanvasBase.grab_mouse#  s*   € ð ×Ñ d¨B ZÑ/ÜÐGÓHÐHØˆÕr6   c                 ó0   — | j                   |u rd| _         yy)zÂ
        Release the mouse grab held by the `~.axes.Axes` *ax*.

        Usually called by the widgets. It is ok to call this even if *ax*
        doesn't have the mouse grab currently.
        N)rÿ  rÇ  s     r4   Úrelease_mousezFigureCanvasBase.release_mouse.  s   € ð ×Ñ Ñ#Ø!%ˆDÕð $r6   c                  ó   — y)a.  
        Set the current cursor.

        This may have no effect if the backend does not display anything.

        If required by the backend, this method should trigger an update in
        the backend event loop after the cursor is set, as this method may be
        called e.g. before a long-running task during which the GUI is not
        updated.

        Parameters
        ----------
        cursor : `.Cursors`
            The cursor to display over the canvas. Note: some backends may
            change the cursor for the entire window.
        NrL   )rI   Úcursors     r4   Ú
set_cursorzFigureCanvasBase.set_cursor8  rP   r6   c                  ó   — y)a(  
        Render the `.Figure`.

        This method must walk the artist tree, even if no output is produced,
        because it triggers deferred work that users may want to access
        before saving output to disk. For example computing limits,
        auto-limits, and tick values.
        NrL   ©rI   r  r  s      r4   rF  zFigureCanvasBase.drawJ  rP   r6   c                 óŒ   — | j                   s,| j                  «       5   | j                  |i |¤Ž ddd«       yy# 1 sw Y   yxY w)a�  
        Request a widget redraw once control returns to the GUI event loop.

        Even if multiple calls to `draw_idle` occur before control returns
        to the GUI event loop, the figure will only be rendered once.

        Notes
        -----
        Backends may choose to override the method and implement their own
        strategy to prevent multiple renderings.

        N)r‰  r¶  rF  rÐ  s      r4   Ú	draw_idlezFigureCanvasBase.draw_idleT  sK   € ð ×$Ò$Ø×%Ñ%Ó'ñ +Ø�—	‘	˜4Ð* 6Ò*÷+ð +ð %÷+ð +ús	   �:ºAc                 ó   — | j                   S )a‘  
        The ratio of physical to logical pixels used for the canvas on screen.

        By default, this is 1, meaning physical and logical pixels are the same
        size. Subclasses that support High DPI screens may set this property to
        indicate that said ratio is different. All Matplotlib interaction,
        unless working directly with the canvas, remains in logical pixels.

        ©r‘  rÍ   s    r4   Údevice_pixel_ratioz#FigureCanvasBase.device_pixel_ratioe  s   € ð ×'Ñ'Ð'r6   c                 óž   — | j                   |k(  ry|| j                  j                  z  }| j                  j                  |d¬«       || _         y)aø  
        Set the ratio of physical to logical pixels used for the canvas.

        Subclasses that support High DPI screens can set this property to
        indicate that said ratio is different. The canvas itself will be
        created at the physical size, while the client side will use the
        logical size. Thus the DPI of the Figure will change to be scaled by
        this ratio. Implementations that support High DPI screens should use
        physical pixels for events so that transforms back to Axes space are
        correct.

        By default, this is 1, meaning physical and logical pixels are the same
        size.

        Parameters
        ----------
        ratio : float
            The ratio of logical to physical pixels used for the canvas.

        Returns
        -------
        bool
            Whether the ratio has changed. Backends may interpret this as a
            signal to resize the window, repaint the canvas, or change any
            other relevant properties.
        F)ÚforwardT)r‘  rM  r�  Ú_set_dpi)rI   Úratior   s      r4   Ú_set_device_pixel_ratioz(FigureCanvasBase._set_device_pixel_ratior  sM   € ð6 ×#Ñ# uÒ,Øð
 �d—k‘k×/Ñ/Ñ/ˆØ�‰×Ñ˜S¨%ÐÔ0Ø#(ˆÔ Ør6   F)Úphysicalc                ól   ‡ ‡— t        ˆˆ fd„‰ j                  j                  j                  D «       «      S )a¼  
        Return the figure width and height in integral points or pixels.

        When the figure is used on High DPI screens (and the backend supports
        it), the truncation to integers occurs after scaling by the device
        pixel ratio.

        Parameters
        ----------
        physical : bool, default: False
            Whether to return true physical pixels or logical pixels. Physical
            pixels may be used by backends that support HiDPI, but still
            configure the canvas using its actual size.

        Returns
        -------
        width, height : int
            The size of the figure, in points or pixels, depending on the
            backend.
        c              3   óV   •K  — | ]   }t        |‰rd n‰j                  z  «      –— Œ" y­w)r�   N)rl  rÕ  )Ú.0r}  rÛ  rI   s     €€r4   ú	<genexpr>z4FigureCanvasBase.get_width_height.<locals>.<genexpr>­  s-   øè ø€ ò 7Øô ˜¡h¡°D×4KÑ4KÑL×Mñ 7ùs   ƒ&))ÚtuplerM  r»  r•   )rI   rÛ  s   ``r4   rþ   z!FigureCanvasBase.get_width_height˜  s/   ù€ ô* ô 7Ø!%§¡×!1Ñ!1×!5Ñ!5ô7ó 7ð 	7r6   c                 ó   — | j                   S )z>Return dict of savefig file formats supported by this backend.)Ú	filetypesrx  s    r4   Úget_supported_filetypesz(FigureCanvasBase.get_supported_filetypes°  s   € ð �}‰}Ðr6   c                 ó¶   — i }| j                   j                  «       D ]9  \  }}|j                  |g «      j                  |«       ||   j	                  «        Œ; |S )a  
        Return a dict of savefig file formats supported by this backend,
        where the keys are a file type name, such as 'Joint Photographic
        Experts Group', and the values are a list of filename extensions used
        for that filetype, such as ['jpg', 'jpeg'].
        )râ  ÚitemsÚ
setdefaultrÍ  Úsort)ry  Ú	groupingsÚextrG  s       r4   Úget_supported_filetypes_groupedz0FigureCanvasBase.get_supported_filetypes_groupedµ  s\   € ð ˆ	ØŸ™×,Ñ,Ó.ò 	#‰IˆC�Ø× Ñ   rÓ*×1Ñ1°#Ô6Ø�d‰O× Ñ Õ"ð	#ð Ðr6   c              #   óP  ‡	‡
K  — d}|�Uddl m} |j                  |«      j                  }t	        |d|› �«      st        d|›d|› d�«      ‚ || j                  «      }nrt	        | d|› �«      r| }n`t        |«      }|€At        dj                  |d	j                  t        | j                  «       «      «      «      «      ‚ || j                  «      }| j                  |_        t        |d|› �«      Š	t	        ‰	d
«      r‰	j                  j                  n‰	j                  }|j!                  d«      rHh d£}|h t#        j$                  ‰	«      j&                  £z
  Š
 t)        j*                  ‰	«      ˆ	ˆ
fd„«      }n‰	}	 |–— | | j                  _        y# | | j                  _        w xY w­w)aþ  
        Context manager temporarily setting the canvas for saving the figure::

            with (canvas._switch_canvas_and_return_print_method(fmt, backend)
                  as print_method):
                # ``print_method`` is a suitable ``print_{fmt}`` method, and
                # the figure's canvas is temporarily switched to the method's
                # canvas within the with... block.  ``print_method`` is also
                # wrapped to suppress extra kwargs passed by ``print_figure``.

        Parameters
        ----------
        fmt : str
            If *backend* is None, then determine a suitable canvas class for
            saving to format *fmt* -- either the current canvas class, if it
            supports *fmt*, or whatever `get_registered_canvas_class` returns;
            switch the figure canvas to that canvas class.
        backend : str or None, default: None
            If not None, switch the figure canvas to the ``FigureCanvas`` class
            of the given backend.
        Nr�   )Úbackend_registryÚprint_zThe z backend does not support z outputz4Format {!r} is not supported (supported formats: {})r  rÎ  )zmatplotlib.zmpl_toolkits.>   r   Ú	edgecolorÚ	facecolorÚorientationÚbbox_inches_restorec            
      ón   •—  ‰| i |j                  «       D ��ci c]  \  }}|‰vsŒ||“Œ c}}¤ŽS c c}}w r¢   )rå  )r  r  ÚkÚvÚmethÚskips       €€r4   r  zIFigureCanvasBase._switch_canvas_and_return_print_method.<locals>.<lambda>ø  s=   ø€ ÉØðJMØ+1¯<©<«>×K¡4 1 a¸QÀdº]˜!˜Q™$ÓKñJM€ ùÛKs   ™1¦1)Úbackends.registryrì  Úload_backend_moduler<   rY  r|  rM  r>   r1   ÚjoinÚsortedrã  rŠ  rZ  rÎ  r"  r  ÚinspectÚ	signatureÚ
parametersÚ	functoolsÚwrapsrå  )rI   rP  r2   rå  rì  Úcanvas_classÚmodÚoptional_kwsrN  rõ  rö  s            @@r4   rI  z7FigureCanvasBase._switch_canvas_and_return_print_methodÃ  s   ùè ø€ ð. ˆØÐå;Ø+×?Ñ?ÀÓH×UÑUˆLÜ˜<¨6°#°¨Ô8Ü Ø˜7˜+Ð%?À¸uÀGÐLóNð Ná! $§+¡+Ó.‰FÜ�T˜V C 5˜>Ô*à‰Fô 7°sÓ;ˆLØÐ#Ü ØJ×QÑQØ˜TŸY™Y¤v¨d×.JÑ.JÓ.LÓ'MÓNóPóQð Qñ " $§+¡+Ó.ˆFØ ŸO™OˆÔÜ�v ¨ u˜~Ó.ˆä˜$ Ô'ð �y‰y×#Ò#à—O‘Oð 	ð �>‰>Ð:Ô;ò'ˆLð  Ð"G¤G×$5Ñ$5°dÓ$;×$FÑ$FÐ"GÑGˆDØ0œ9Ÿ?™?¨4Ó0ô 2Mó N‰Lð  ˆLð	&ØÒà!%ˆD�K‰KÕø ˆD�K‰KÕüs   „E5F&Å:F Å>F&ÆF#Æ#F&)Úbbox_inchesÚ
pad_inchesÚbbox_extra_artistsr2   c                óP	  — |€¢t        |t        j                  «      rt        j                  |«      }t        |t        «      r%t        j
                  j                  |«      d   dd }|�|dk(  r7| j                  «       }t        |t        «      r|j                  d«      dz   |z   }|j                  «       }|€	t        d   }|dk(  r+t        | j                  d| j                  j                  «      }t        j                  | d¬«      5  | j!                  ||
«      5 }t        j                  | j                  |¬	«      5  t        j                  | j                  j"                  d¬
«      5  t        j                  | j                  j"                  d¬«      5  t%        «       5 }dD ]a  }t'        «       |   }|€t        d|› �   }t        j(                  |d«      rŒ5|j+                   | j                  j,                  di ||i¤Ž«       Œc |€	t        d   }| j                  j/                  «       }|€|dk(  ret1        | j                  t3        j4                  ||¬«      «      } t        |dt6        «      «       5  | j                  j9                  |«       ddd«       |rÅ|dk(  r|| j                  j;                  |	¬«      }t        |t<        «      r,|dk(  r'|j?                  «       d   }|j?                  «       d   }n|dv r	t        d   }|x}}|jA                  ||«      }tC        jD                  | j                  || j                  j"                  jF                  «      }||f}nd}|j+                  | j                  j-                  d¬«      «       	 t        j                  | j                  |¬	«      5   ||f||||dœ|¤Ž}ddd«       |r
r |«        	 cddd«       cddd«       cddd«       cddd«       cddd«       cddd«       S # 1 sw Y   �Œ{xY w# 1 sw Y   ŒZxY w# |rr |«        w w w xY w# 1 sw Y   nxY wddd«       n# 1 sw Y   nxY wddd«       n# 1 sw Y   nxY wddd«       n# 1 sw Y   nxY wddd«       n# 1 sw Y   nxY wddd«       y# 1 sw Y   yxY w)as	  
        Render the figure to hardcopy. Set the figure patch face and edge
        colors.  This is useful because some of the GUIs have a gray figure
        face color background and you'll probably want to override this on
        hardcopy.

        Parameters
        ----------
        filename : str or path-like or file-like
            The file where the figure is saved.

        dpi : float, default: :rc:`savefig.dpi`
            The dots per inch to save the figure in.

        facecolor : :mpltype:`color` or 'auto', default: :rc:`savefig.facecolor`
            The facecolor of the figure.  If 'auto', use the current figure
            facecolor.

        edgecolor : :mpltype:`color` or 'auto', default: :rc:`savefig.edgecolor`
            The edgecolor of the figure.  If 'auto', use the current figure
            edgecolor.

        orientation : {'landscape', 'portrait'}, default: 'portrait'
            Only currently applies to PostScript printing.

        format : str, optional
            Force a specific file format. If not given, the format is inferred
            from the *filename* extension, and if that fails from
            :rc:`savefig.format`.

        bbox_inches : 'tight' or `.Bbox`, default: :rc:`savefig.bbox`
            Bounding box in inches: only the given portion of the figure is
            saved.  If 'tight', try to figure out the tight bbox of the figure.

        pad_inches : float or 'layout', default: :rc:`savefig.pad_inches`
            Amount of padding in inches around the figure when bbox_inches is
            'tight'. If 'layout' use the padding from the constrained or
            compressed layout engine; ignored if one of those engines is not in
            use.

        bbox_extra_artists : list of `~matplotlib.artist.Artist`, optional
            A list of extra artists that will be considered when the
            tight bbox is calculated.

        backend : str, optional
            Use a non-default backend to render the file, e.g. to render a
            png file with the "cairo" backend rather than the default "agg",
            or a pdf file with the "pgf" backend rather than the default
            "pdf".  Note that the default backend is normally sufficient.  See
            :ref:`the-builtin-backends` for a list of valid backends for each
            file format.  Custom backends can be referenced as "module://...".
        Nr�   r.   ú.zsavefig.dpirM  r�  )rŒ  )r   rÔ  Tr¸  )rï  rî  zsavefig.Úautozsavefig.bboxÚtight)rð  r   )r  ÚlayoutÚh_padÚw_pad)Nr
  zsavefig.pad_inchesÚnone)Úlayout_engine)rï  rî  rð  rñ  rL   )$r8   ÚosÚPathLikeÚfspathr9   rX   ÚsplitextrG  ÚrstripÚlowerr   rZ  rM  r   r   r   rI  rå  r   ÚlocalsÚ
_str_equalrH  Ú_cm_setÚget_layout_enginerR  rþ  Úpartialr   rF  Úget_tightbboxr   r§  Úpaddedr   Úadjust_bboxÚ	fixed_dpi)rI   Úfilenamer   rï  rî  rð  r1   r  r  r  r2   r  rN  rO  rÝ   rñ   r  ró   r  r  Úrestore_bboxÚ_bbox_inches_restoreÚresults                          r4   Úprint_figurezFigureCanvasBase.print_figure  sm  € ðr ˆ>ä˜(¤B§K¡KÔ0ÜŸ9™9 XÓ.�Ü˜(¤CÔ(ÜŸ™×)Ñ)¨(Ó3°AÑ6°q°rÐ:�Øˆ~ ¨2¢Ø×2Ñ2Ó4�Ü˜h¬Ô,Ø'Ÿ™¨sÓ3°cÑ9¸FÑB�HØ—‘“ˆàˆ;Ü˜=Ñ)ˆCØ�(Š?Ü˜$Ÿ+™+ ¸¿¹¿¹ÓHˆCô ×Ñ ¨dÔ3ñ G	Ø×9Ñ9¸&À'ÓJðG	à Ü×Ñ §¡°Ô5ñG	ô ×Ñ §¡× 2Ñ 2ÈÔJñ	G	ô
 ×Ñ §¡× 2Ñ 2¸tÔDñG	ô ‹kðG	ð #à2ò N�Ü› ™�Ø�=Ü$ x°¨vÐ%6Ñ7�EÜ×'Ñ'¨¨vÕ6Ø×'Ñ'Ð(;¨¯©×(;Ñ(;Ñ(L¸tÀU¸mÑ(LÕMðNð Ð"Ü& ~Ñ6�à ŸK™K×9Ñ9Ó;ˆMØÐ(¨K¸7Ò,Bô )Ø—K‘KÜ×%Ñ%Ø$°+ô?ó�ð F”W˜XÐ'7¼ÓEÓGñ /Ø—K‘K×$Ñ$ XÔ.÷/áØ 'Ò)Ø"&§+¡+×";Ñ";Ø Ð5Gð #<ó #I�Kä" =Ô2IÔJØ&¨(Ò2Ø -× 1Ñ 1Ó 3°GÑ <˜Ø -× 1Ñ 1Ó 3°GÑ <™à%Ð)9Ñ9Ü)1Ð2FÑ)G˜JØ(2Ð2˜ Ø"-×"4Ñ"4°U¸EÓ"B�Kô  +×6Ñ6Ø—K‘K ¨d¯k©k×.@Ñ.@×.JÑ.Jó L�ð )4°\Ð'BÑ$à'+Ð$ð ×Ñ §¡× 3Ñ 3À&Ð 3Ó IÔJð#ô ×&Ñ& t§{¡{¸Ô<ñ "Ù)Ø ð"à"+Ø"+Ø$/Ø,@ñ"ð !ñ"�F÷"ñ ¡<Ù •Nà÷OG	÷ G	÷ G	÷ G	÷ G	÷ G	ö G	÷</ñ /ú÷:"ð "ûñ ¡<Ù •Nð $0�;ú÷IG	ð G	ú÷ G	÷ G	ñ G	ú÷ G	÷ G	ñ G	ú÷ G	÷ G	ñ G	ú÷ G	÷ G	ñ G	ú÷ G	÷ G	ñ G	úsì   ÄRÄ"RÄ<,Q2Å(,Q	ÆQÆ7P3ÇBP3É3PÊC<P3Î!P!Î-PÎ<P!ÏP3Ï	QÏ	Q	Ï#	Q2Ï,	RÏ5	RÐPÐP3ÐPÐP!Ð!P0Ð0P3Ð3P<Ð8QÐ?	Q	ÑQÑQ	Ñ	Q2ÑQ&Ñ"Q2Ñ)	RÑ2Q;Ñ7RÑ>	RÒR	ÒRÒR%c                 ó   — t         d   S )zò
        Return the default savefig file format as specified in
        :rc:`savefig.format`.

        The returned string does not include a period. This method is
        overridden in backends that only support a single file type.
        zsavefig.format)r   rx  s    r4   rG  z%FigureCanvasBase.get_default_filetype•  s   € ô Ð(Ñ)Ð)r6   c                 óì   — | j                   �| j                   j                  «       nd}|xs d}d}|j                  |D �ci c]  }t        |«      d“Œ c}«      }| j	                  «       }|› d|› �S c c}w )zN
        Return a suitable default filename, including the extension.
        r.   Úimagez<>:"/\|?*\0 Ú_r  )rŒ  Úget_window_titlera   ÚordrG  )rI   Údefault_basenameÚremoved_charsr×  Údefault_filetypes        r4   Úget_default_filenamez%FigureCanvasBase.get_default_filename   s‹   € ð �|‰|Ð'ð �L‰L×)Ñ)Ô+àð 	ð
 ,Ò6¨wÐð (ˆØ+×5Ñ5Ø"/Ö0˜QŒS�‹V�S‰[Ò0ó2Ðà×4Ñ4Ó6ÐØ"Ð# 1Ð%5Ð$6Ð7Ð7ùò 1s   Á A1c                 ó:   — | j                   j                  ||«      S )a¨  
        Bind function *func* to event *s*.

        Parameters
        ----------
        s : str
            One of the following events ids:

            - 'button_press_event'
            - 'button_release_event'
            - 'draw_event'
            - 'key_press_event'
            - 'key_release_event'
            - 'motion_notify_event'
            - 'pick_event'
            - 'resize_event'
            - 'scroll_event'
            - 'figure_enter_event',
            - 'figure_leave_event',
            - 'axes_enter_event',
            - 'axes_leave_event'
            - 'close_event'.

        func : callable
            The callback function to be executed, which must have the
            signature::

                def func(event: Event) -> Any

            For the location events (button and key press/release), if the
            mouse is over the Axes, the ``inaxes`` attribute of the event will
            be set to the `~matplotlib.axes.Axes` the event occurs is over, and
            additionally, the variables ``xdata`` and ``ydata`` attributes will
            be set to the mouse location in data coordinates.  See `.KeyEvent`
            and `.MouseEvent` for more info.

            .. note::

                If func is a method, this only stores a weak reference to the
                method. Thus, the figure does not influence the lifetime of
                the associated object. Usually, you want to make sure that the
                object is kept alive throughout the lifetime of the figure by
                holding a reference to it.

        Returns
        -------
        cid
            A connection id that can be used with
            `.FigureCanvasBase.mpl_disconnect`.

        Examples
        --------
        ::

            def on_press(event):
                print('you pressed', event.button, event.xdata, event.ydata)

            cid = canvas.mpl_connect('button_press_event', on_press)
        )r¯  Úconnect)rI   rM   rÎ  s      r4   Úmpl_connectzFigureCanvasBase.mpl_connect³  s   € ðz �~‰~×%Ñ% a¨Ó.Ð.r6   c                 ó:   — | j                   j                  |«       y)zë
        Disconnect the callback with id *cid*.

        Examples
        --------
        ::

            cid = canvas.mpl_connect('button_press_event', on_press)
            # ... later
            canvas.mpl_disconnect(cid)
        N)r¯  Ú
disconnect)rI   Úcids     r4   Úmpl_disconnectzFigureCanvasBase.mpl_disconnectò  s   € ð 	�‰×!Ñ! #Õ&r6   c                 ó(   — | j                  ||¬«      S )aÐ  
        Create a new backend-specific subclass of `.Timer`.

        This is useful for getting periodic events through the backend's native
        event loop.  Implemented only for backends with GUIs.

        Parameters
        ----------
        interval : int
            Timer interval in milliseconds.

        callbacks : list[tuple[callable, tuple, dict]]
            Sequence of (func, args, kwargs) where ``func(*args, **kwargs)``
            will be executed by the timer every *interval*.

            Callbacks which return ``False`` or ``0`` will be removed from the
            timer.

        Examples
        --------
        >>> timer = fig.canvas.new_timer(callbacks=[(f1, (1,), {'a': 3})])
        )r°  r¯  )Ú
_timer_clsr²  s      r4   Ú	new_timerzFigureCanvasBase.new_timer	  s   € ð. �‰¨¸IˆÓFÐFr6   c                  ó   — y)zu
        Flush the GUI events for the figure.

        Interactive backends need to reimplement this method.
        NrL   rÍ   s    r4   Úflush_eventszFigureCanvasBase.flush_events	  rP   r6   c                 óð   — |dk  rt         j                  }d}d}d| _        | j                  rJ||z  |k  rA| j                  «        t	        j
                  |«       |dz  }| j                  r
||z  |k  rŒ?yyyy)aK  
        Start a blocking event loop.

        Such an event loop is used by interactive functions, such as
        `~.Figure.ginput` and `~.Figure.waitforbuttonpress`, to wait for
        events.

        The event loop blocks until a callback function triggers
        `stop_event_loop`, or *timeout* is reached.

        If *timeout* is 0 or negative, never timeout.

        Only interactive backends need to reimplement this method and it relies
        on `flush_events` being properly implemented.

        Interactive backends should implement this in a more native way.
        r   g{®Gáz„?Tr�   N)r†   ÚinfÚ_loopingr8  ÚtimeÚsleep)rI   ÚtimeoutÚtimestepÚcounters       r4   Ústart_event_loopz!FigureCanvasBase.start_event_loop$	  su   € ð$ �aŠ<Ü—f‘fˆGØˆØˆØˆŒØ�mŠm ¨(Ñ 2°WÒ <Ø×ÑÔÜ�J‰J�xÔ Ø�q‰LˆGð �mŠm ¨(Ñ 2°WÔ <ˆmÐ <ˆmr6   c                 ó   — d| _         y)z’
        Stop the current blocking event loop.

        Interactive backends need to reimplement this to match
        `start_event_loop`
        FN)r;  rÍ   s    r4   Ústop_event_loopz FigureCanvasBase.stop_event_loop@	  s   € ð ˆ�r6   r¢   )NNNÚportraitNrM  )r   )3r!  r"  r#  r$  r«  r
   Úclasspropertyr±  Úeventsr  r0   râ  rƒ  rC   rà  r¯  Úbutton_pick_idÚscroll_pick_idÚclassmethodrþ  Úcacherˆ  r´  r   r¶  r¹  r¼  rú  rÉ  rË  rÎ  rF  rÒ  rÕ  rÚ  rþ   rã  rê  rI  r"  rG  r,  r/  r3  r¬  r5  r6  r8  rA  rC  r%  r&  s   @r4   ru  ru  }  s­  ø„ ñð &*Ð"ð '�D×&Ñ&Ñ'DÓE€Mò€Fð" €Ià"€Ià	×Ññ4ó ð4õ
ñ* ÑCÓD€IÙÑFÓG€NÙÑFÓG€NàØ‡_�_ñ"/ó ó ð"/ðH ñ
Fó ð
Fð ñ*ó ð*òó?òò0	 ò&òò$ò+ð" ñ
(ó ð
(ò$ðL ,1ô 7ð0 ñó ðð ñó ðð ò;&ó ð;&ð| AEØ+/ðRð ¨À$Øô	Rðh ñ*ó ð*ò8ò&=/ò~'ð  €JóGò2óö8r6   ru  c                 ó’  — | j                   €y|€| j                  }|€|j                  }| j                   t        d   v r	 |j                  j                  «        | j                   t        d   v rt        j                  |j                  «       | j                   t        d   v rt        j                  «        |��| j                   t        d   v r|j                  «        nß| j                   t        d   v r|j                  «        n¹| j                   t        d   v r|j                  «        n“| j                   t        d   v r"|j                  «        |j                  | «       n\| j                   t        d	   v r"|j!                  «        |j                  | «       n%| j                   t        d
   v r|j#                  «        | j$                  €yd„ }| j$                  }| j                   t        d   v rßd ||j&                  j(                  «       ||j*                  j(                  «      fvr¥ ||j&                  j,                  «      } ||j*                  j,                  «      }g d¢}	 ||j/                  ||f«      dz   t1        |«      z     \  }}|j3                  ||rdndd¬«       |j3                  ||rdndd¬«       |j5                  «        | j                   t        d   v rØd ||j&                  j,                  «       ||j*                  j,                  «      fvrž ||j&                  j(                  «      } ||j*                  j(                  «      }g d¢}	 ||j/                  ||f«      dz   t1        |«      z     \  }}|j3                  |dd¬«       |j3                  |dd¬«       |j5                  «        y| j                   t        d   v r”|j9                  «       }|dk(  r<|j;                  d«       |j=                  d¬«      j                  j5                  «        y|dk(  r=	 |j;                  d«       |j=                  d¬«      j                  j5                  «        yy| j                   t        d   v r”|jE                  «       }
|
dk(  r<|jG                  d«       |j=                  d¬«      j                  j5                  «        y|
dk(  r=	 |jG                  d«       |j=                  d¬«      j                  j5                  «        yyy# t        $ r Y �ŒÁw xY w# t6        $ r Y �Œ\w xY w# t6        $ r Y yw xY w# t6        $ r:}	t>        jA                  tC        |	«      «       |j;                  d«       Y d}	~	�ŒCd}	~	ww xY w# t6        $ r9}	t>        jA                  tC        |	«      «       |jG                  d«       Y d}	~	Œßd}	~	ww xY w)a§  
    Implement the default Matplotlib key bindings for the canvas and toolbar
    described at :ref:`key-event-handling`.

    Parameters
    ----------
    event : `KeyEvent`
        A key press/release event.
    canvas : `FigureCanvasBase`, default: ``event.canvas``
        The backend-specific canvas instance.  This parameter is kept for
        back-compatibility, but, if set, should always be equal to
        ``event.canvas``.
    toolbar : `NavigationToolbar2`, default: ``event.canvas.toolbar``
        The navigation cursor toolbar.  This parameter is kept for
        back-compatibility, but, if set, should always be equal to
        ``event.canvas.toolbar``.
    Nzkeymap.fullscreenzkeymap.quitzkeymap.quit_allzkeymap.homeúkeymap.backúkeymap.forwardz
keymap.panzkeymap.zoomzkeymap.savec                 óV   — t        d„ | D «       «      rdS t        d„ | D «       «      sdS d S )Nc              3   óP   K  — | ]  }|j                   j                  «       –— Œ  y ­wr¢   ©ÚgridlinerÁ  ©rÞ  Úticks     r4   rß  zDkey_press_handler.<locals>._get_uniform_gridstate.<locals>.<genexpr>Ž	  s   è ø€ ÒJ¸D˜DŸM™M×5Ñ5×7ÑJùó   ‚$&Tc              3   óP   K  — | ]  }|j                   j                  «       –— Œ  y ­wr¢   rP  rR  s     r4   rß  zDkey_press_handler.<locals>._get_uniform_gridstate.<locals>.<genexpr>�	  s   è ø€ Ò OÀ §¡×!:Ñ!:×!<Ñ OùrT  F)rO  r{  )Útickss    r4   Ú_get_uniform_gridstatez1key_press_handler.<locals>._get_uniform_gridstate‹	  s6   € ô ÑJÀEÔJÔJ�ð 	Ü Ñ OÈÔ OÔO�ð	àð	r6   zkeymap.grid))FF)TF)TT)FTr�   ÚmajorÚbothrg   )ÚwhichÚaxisrh   zkeymap.grid_minorzkeymap.yscaleÚlogÚlinearTr3  zkeymap.xscale)$r  rå  r�  r   rŒ  Úfull_screen_toggleÚAttributeErrorr   Údestroy_figrM  Údestroy_allÚhomeÚbackr×  ÚpanÚ_update_cursorÚzoomÚsave_figurerú  ÚxaxisÚ
minorTicksÚyaxisÚ
majorTicksrÖ  r`   ÚgridrÒ  r|  Ú
get_yscaleÚ
set_yscaler8  rP  rQ  r9   Ú
get_xscaleÚ
set_xscale)r.  rå  r�  rW  rÈ  Úx_stateÚy_stater¤   rè   rQ  Úscalexs              r4   Úkey_press_handlerrt  J	  sá  € ð$ ‡y�yÐØØ€~Ø—‘ˆØ€Ø—.‘.ˆð ‡y�y”HÐ0Ñ1Ñ1ð	Ø�N‰N×-Ñ-Ô/ð
 ‡y�y”H˜]Ñ+Ñ+Ü�‰˜Ÿ™Ô&Ø‡y�y”HÐ.Ñ/Ñ/Ü�‰ÔàÑà�9‰9œ Ñ/Ñ/Ø�L‰L�Nð �Y‰Yœ( =Ñ1Ñ1Ø�L‰L�Nà�Y‰Yœ(Ð#3Ñ4Ñ4Ø�O‰OÕà�Y‰Yœ( <Ñ0Ñ0Ø�K‰KŒMØ×"Ñ" 5Õ)à�Y‰Yœ( =Ñ1Ñ1Ø�L‰LŒNØ×"Ñ" 5Õ)à�Y‰Yœ( =Ñ1Ñ1Ø×ÑÔ!à‡|�|ÐØòð 
�‰€Bð
 	�	‰	”X˜mÑ,Ñ,àÑ3°B·H±H×4GÑ4GÓHÙ3°B·H±H×4GÑ4GÓHðJñ Já(¨¯©×)<Ñ)<Ó=ˆÙ(¨¯©×)<Ñ)<Ó=ˆÚLˆð
	à�u—{‘{ G¨WÐ#5Ó6¸Ñ:¼cÀ%»jÑHÑIñ ˆG�Wð �G‰G�G©g¡7¸6ÈˆGÔLØ�G‰G�G©g¡7¸6ÈˆGÔLØ×ÑÔà�	‰	”XÐ1Ñ2Ñ2àÑ3°B·H±H×4GÑ4GÓHÙ3°B·H±H×4GÑ4GÓHðJñ Já(¨¯©×)<Ñ)<Ó=ˆÙ(¨¯©×)<Ñ)<Ó=ˆÚLˆð		à�u—{‘{ G¨WÐ#5Ó6¸Ñ:¼cÀ%»jÑHÑIñ ˆG�Wð �G‰G�G 6°ˆGÔ4Ø�G‰G�G 6°ˆGÔ4Ø×ÑÕà	�‰”h˜Ñ/Ñ	/Ø—‘“ˆØ�EŠ>Ø�M‰M˜(Ô#Ø�M‰M˜tˆMÓ$×+Ñ+×5Ñ5Õ7Ø�hÒð(Ø—‘˜eÔ$ð �M‰M˜tˆMÓ$×+Ñ+×5Ñ5Õ7ð ð 
�‰”h˜Ñ/Ñ	/Ø—‘“ˆØ�UŠ?Ø�M‰M˜(Ô#Ø�M‰M˜tˆMÓ$×+Ñ+×5Ñ5Õ7Ø�xÒð(Ø—‘˜eÔ$ð �M‰M˜tˆMÓ$×+Ñ+×5Ñ5Õ7ð  ð 
0øôE ò 	Úð	ûôt ò 	âð	ûô& ò 	áð	ûô  ò (Ü—‘œS ›XÔ&Ø—‘˜h×'Ò'ûð(ûô ò (Ü—‘œS ›XÔ&Ø—‘˜h×'Ñ'ûð(úsf   Á T É'(T Í(T/ Ð(T> ÓV Ô	TÔTÔ	T,Ô+T,Ô/	T;Ô:T;Ô>	VÕ/U<Õ<VÖ	WÖ/W×Wc                 óî   — |€| j                   }|€|j                  }|�Wt        t        | j                  «      «      }|t
        d   v r|j                  «        y|t
        d   v r|j                  «        yyy)z£
    The default Matplotlib button actions for extra mouse buttons.

    Parameters are as for `key_press_handler`, except that *event* is a
    `MouseEvent`.
    NrL  rM  )rå  r�  r9   r  r  r   rc  r×  )r.  rå  r�  Úbutton_names       r4   Úbutton_press_handlerrw  ×	  sq   € ð €~Ø—‘ˆØ€Ø—.‘.ˆØÐÜœ+ e§l¡lÓ3Ó4ˆØœ( =Ñ1Ñ1Ø�L‰L�NØœHÐ%5Ñ6Ñ6Ø�O‰OÕð 7ð	 r6   c                   ó   — e Zd ZdZy)ÚNonGuiExceptionz6Raised when trying show a figure in a non-GUI backend.Nró  rL   r6   r4   ry  ry  ê	  s   „ Ù@Ør6   ry  c                   óx   — e Zd ZdZdZdZd„ Zed„ «       Zed„ «       Z	eddœd„«       Z
d„ Zd	„ Zd
„ Zd„ Zd„ Zd„ Zy)rw  a	  
    A backend-independent abstraction of a figure container and controller.

    The figure manager is used by pyplot to interact with the window in a
    backend-independent way. It's an adapter for the real (GUI) framework that
    represents the visual figure on screen.

    The figure manager is connected to a specific canvas instance, which in turn
    is connected to a specific figure instance. To access a figure manager for
    a given figure in user code, you typically use ``fig.canvas.manager``.

    GUI backends derive from this class to translate common operations such
    as *show* or *resize* to the GUI-specific code. Non-GUI backends do not
    support these operations and can just use the base class.

    This following basic operations are accessible:

    **Window operations**

    - `~.FigureManagerBase.show`
    - `~.FigureManagerBase.destroy`
    - `~.FigureManagerBase.full_screen_toggle`
    - `~.FigureManagerBase.resize`
    - `~.FigureManagerBase.get_window_title`
    - `~.FigureManagerBase.set_window_title`

    **Key and mouse button press handling**

    The figure manager sets up default key and mouse button press handling by
    hooking up the `.key_press_handler` to the matplotlib event system. This
    ensures the same shortcuts and mouse actions across backends.

    **Other operations**

    Subclasses will have additional attributes and functions to access
    additional functionality. This is of course backend-specific. For example,
    most GUI backends have ``window`` and ``toolbar`` attributes that give
    access to the native GUI widgets of the respective framework.

    Attributes
    ----------
    canvas : `FigureCanvasBase`
        The backend-specific canvas instance.

    num : int or str
        The figure number.

    key_press_handler_id : int
        The default key handler cid, when using the toolmanager.
        To disable the default key press handling use::

            figure.canvas.mpl_disconnect(
                figure.canvas.manager.key_press_handler_id)

    button_press_handler_id : int
        The default mouse button handler cid, when using the toolmanager.
        To disable the default button press handling use::

            figure.canvas.mpl_disconnect(
                figure.canvas.manager.button_press_handler_id)
    Nc                 óœ  ‡ — |‰ _         ‰ |_        |‰ _        ‰ j                  d|d›�«       d ‰ _        d ‰ _        t        d   dk7  rJ‰ j                   j                  dt        «      ‰ _        ‰ j                   j                  dt        «      ‰ _        t        j                  d   dk(  rt        |j                  «      nd ‰ _        t        j                  d   dk(  r-‰ j                  r!‰ j                  ‰ j                   «      ‰ _        nJt        j                  d   dk(  r-‰ j                   r!‰ j!                  ‰ j                  «      ‰ _        nd ‰ _        ‰ j                  rJt#        j$                  ‰ j                  «       ‰ j                  rt#        j&                  ‰ j                  «       ‰ j                   j                  j(                  ˆ fd„«       }y )	NzFigure r  r�  Útoolmanagerr+  r1  Útoolbar2c                 ón   •— ‰j                   €(‰j                  �‰j                  j                  «        y y y r¢   )r|  r�  r&  )ÚfigrI   s    €r4   Únotify_axes_changez6FigureManagerBase.__init__.<locals>.notify_axes_changeP
  s3   ø€ ð ×ÑÐ'¨D¯L©LÐ,DØ—‘×#Ñ#Õ%ð -EÐ'r6   )rå  rŒ  r³  Úset_window_titleÚkey_press_handler_idÚbutton_press_handler_idr   r/  rt  rw  Úmplr   rM  r|  Ú_toolbar2_classr�  Ú_toolmanager_toolbar_classÚtoolsÚadd_tools_to_managerÚadd_tools_to_containerÚadd_axobserver)rI   rå  r³  r€  s   `   r4   rC   zFigureManagerBase.__init__1
  su  ø€ ØˆŒØˆŒØˆŒØ×Ñ ¨¨A wÐ/Ô0à$(ˆÔ!Ø'+ˆÔ$Ü�IÑ -Ò/Ø(,¯©×(?Ñ(?Ø!Ô#4ó)6ˆDÔ%à+/¯;©;×+BÑ+BØ$Ô&:ó,<ˆDÔ(ô  #Ÿ|™|¨IÑ6¸-ÒGô (¨¯©Ô6à!%ð 	Ôô �L‰L˜Ñ# zÒ1Ø×(Ò(Ø×/Ñ/°·±Ó<ˆD�LÜ�l‰l˜9Ñ%¨Ò6Ø×3Ò3Ø×:Ñ:¸4×;KÑ;KÓLˆD�LàˆDŒLà×ÒÜ×&Ñ& t×'7Ñ'7Ô8Ø�|Š|Ü×,Ñ,¨T¯\©\Ô:à	�‰×	Ñ	×	*Ñ	*ó	&ó 
+ñ	&r6   c                 ó    —  |  ||«      |«      S )zÔ
        Create a manager for a given *figure* using a specific *canvas_class*.

        Backends should override this method if they have specific needs for
        setting up the canvas or the manager.
        rL   )ry  r   rM  r³  s       r4   r²  z$FigureManagerBase.create_with_canvasV
  s   € ñ ‘< Ó'¨Ó-Ð-r6   c                  ó   — y)a¢  
        Start the main event loop.

        This method is called by `.FigureManagerBase.pyplot_show`, which is the
        implementation of `.pyplot.show`.  To customize the behavior of
        `.pyplot.show`, interactive backends should usually override
        `~.FigureManagerBase.start_main_loop`; if more customized logic is
        necessary, `~.FigureManagerBase.pyplot_show` can also be overridden.
        NrL   rx  s    r4   Ústart_main_loopz!FigureManagerBase.start_main_loop`
  rP   r6   ©Úblockc                ó€  — t        j                  «       }|sy|D ]  }	 |j                  «        Œ |€Ft        t        j                  j                  d«      dd«      }t        |d«      }| xr t        «        }|r| j                  «        yy# t        $ r(}t	        j
                  t        |«      «       Y d}~Œžd}~ww xY w)af  
        Show all figures.  This method is the implementation of `.pyplot.show`.

        To customize the behavior of `.pyplot.show`, interactive backends
        should usually override `~.FigureManagerBase.start_main_loop`; if more
        customized logic is necessary, `~.FigureManagerBase.pyplot_show` can
        also be overridden.

        Parameters
        ----------
        block : bool, optional
            Whether to block by calling ``start_main_loop``.  The default,
            None, means to block if we are neither in IPython's ``%pylab`` mode
            nor in ``interactive`` mode.
        Númatplotlib.pyplotÚshowÚ	_needmain)r   Úget_all_fig_managersr’  ry  r
   Úwarn_externalr9   rZ  r¥  r¦  r§  rY  r   r�  ©ry  r�  ÚmanagersrŒ  rQ  Úpyplot_showÚipython_pylabs          r4   r˜  zFigureManagerBase.pyplot_showl
  sµ   € ô" ×+Ñ+Ó-ˆÙØØò 	-ˆGð-Ø—‘•ð	-ð
 ˆ=ô "¤#§+¡+§/¡/Ð2EÓ"FÈÐPTÓUˆKÜ# K°Ó=ˆMØ%Ð%Ò>¬nÓ.>Ð*>ˆEÙØ×ÑÕ!ð øô #ò -Ü×"Ñ"¤3 s£8×,Ñ,ûð-ús   žBÂ	B=ÂB8Â8B=c                 ó¾   — t         j                  dk(  r t        j                  j	                  d«      syt        t        | j                  «      j                  › d�«      ‚)a  
        For GUI backends, show the figure window and redraw.
        For non-GUI backends, raise an exception, unless running headless (i.e.
        on Linux with an unset DISPLAY); this exception is converted to a
        warning in `.Figure.show`.
        ÚlinuxÚDISPLAYNz- is non-interactive, and thus cannot be shown)	r¥  Úplatformr  Úenvironr§  ry  Útyperå  r!  rÍ   s    r4   r’  zFigureManagerBase.show�
  sP   € ô �<‰<˜7Ò"¬2¯:©:¯>©>¸)Ô+Dð
 ÜÜ�D—K‘KÓ ×)Ñ)Ð*ð +ð óð 	r6   c                  ó   — y r¢   rL   rÍ   s    r4   ÚdestroyzFigureManagerBase.destroy¡
  rÁ  r6   c                  ó   — y r¢   rL   rÍ   s    r4   r^  z$FigureManagerBase.full_screen_toggle¤
  rÁ  r6   c                  ó   — y)z9For GUI backends, resize the window (in physical pixels).NrL   )rI   r  r  s      r4   ÚresizezFigureManagerBase.resize§
  rP   r6   c                  ó   — y)zˆ
        Return the title text of the window containing the figure, or None
        if there is no window (e.g., a PS backend).
        r%  rL   rÍ   s    r4   r'  z"FigureManagerBase.get_window_titleª
  s   € ð
 r6   c                  ó   — y)a  
        Set the title text of the window containing the figure.

        This has no effect for non-GUI (e.g., PS) backends.

        Examples
        --------
        >>> fig = plt.figure()
        >>> fig.canvas.manager.set_window_title('My figure')
        NrL   )rI   Útitles     r4   r�  z"FigureManagerBase.set_window_title±
  rP   r6   )r!  r"  r#  r$  r…  r†  rC   rI  r²  r�  r˜  r’  r¡  r^  r¤  r'  r�  rL   r6   r4   rw  rw  ï	  sz   „ ñ<ð| €OØ!%Ðò#&ðJ ñ.ó ð.ð ñ	ó ð	ð Ø"&ó  "ó ð "òDò$òòHòó
r6   rw  c                   ó.   — e Zd ZdZdZdZd„ Zed„ «       Zy)Ú_Moder.   zpan/zoomz	zoom rectc                 ó   — | j                   S r¢   )ÚvaluerÍ   s    r4   r  z_Mode.__str__Æ
  s   € Ø�z‰zÐr6   c                 óB   — | t         j                  ur| j                  S d S r¢   )r©  ÚNONErG  rÍ   s    r4   Ú_navigate_modez_Mode._navigate_modeÉ
  s   € à ¬¯
©
Ñ2ˆt�y‰yÐ<¸Ð<r6   N)	r!  r"  r#  r­  ÚPANÚZOOMr  rà  r®  rL   r6   r4   r©  r©  Á
  s*   „ Ø€DØ
€CØ€Dòð ñ=ó ñ=r6   r©  c                   óü   — e Zd ZdZdZ e«       Zd„ Zd„ Zd„ Z	d„ Z
d„ Zd„ Zd	„ Zd
„ Zed„ «       Zed„ «       Zd„ Zd„ Zd„ Zd„ Z edd«      Zd„ Zd„ Zd„ Zd„ Z edd«      Zd„ Zd„ Zd„ Z d„ Z!d„ Z"d„ Z#d„ Z$d „ Z%d!„ Z&y")#ÚNavigationToolbar2aë  
    Base class for the navigation cursor, version 2.

    Backends must implement a canvas that handles connections for
    'button_press_event' and 'button_release_event'.  See
    :meth:`FigureCanvasBase.mpl_connect` for more information.

    They must also define

    :meth:`save_figure`
        Save the current figure.

    :meth:`draw_rubberband` (optional)
        Draw the zoom to rect "rubberband" rectangle.

    :meth:`set_message` (optional)
        Display message.

    :meth:`set_history_buttons` (optional)
        You can change the history back / forward buttons to indicate disabled / enabled
        state.

    and override ``__init__`` to set up the toolbar -- without forgetting to
    call the base-class init.  Typically, ``__init__`` needs to set up toolbar
    buttons connected to the `home`, `back`, `forward`, `pan`, `zoom`, and
    `save_figure` methods and using standard icons in the "images" subdirectory
    of the data path.

    That's it, we'll do the rest!
    )	)ÚHomezReset original viewrb  rb  )ÚBackzBack to previous viewrc  rc  )ÚForwardzForward to next viewr×  r×  ©NNNN)ÚPanzFLeft button pans, Right button zooms
x/y fixes axis, CTRL fixes aspectÚmoverd  )ÚZoomz Zoom to rectangle
x/y fixes axisÚzoom_to_rectrf  )ÚSubplotszConfigure subplotsÚsubplotsÚconfigure_subplotsr¶  )ÚSavezSave the figureÚfilesaverg  c                 óø  — || _         | |_        t        j                  «       | _        t
        j                  j                  | _        | j                   j                  d| j                  «      | _        | j                   j                  d| j                  «      | _        | j                   j                  d| j                  «      | _        d | _        d | _        t"        j$                  | _        | j)                  «        y )Nr1  r2  r  )rå  r�  r   Ú_StackÚ
_nav_stackr‡  ÚCursorsÚPOINTERÚ_last_cursorr/  Ú_zoom_pan_handlerÚ	_id_pressÚ_id_releaseÚ
mouse_moveÚ_id_dragÚ	_pan_infoÚ
_zoom_infor©  r­  ÚmodeÚset_history_buttons)rI   rå  s     r4   rC   zNavigationToolbar2.__init__  s¶   € ØˆŒØˆŒÜŸ,™,›.ˆŒä!ŸM™M×1Ñ1ˆÔàŸ™×0Ñ0Ø  $×"8Ñ"8ó:ˆŒàŸ;™;×2Ñ2Ø" D×$:Ñ$:ó<ˆÔàŸ™×/Ñ/Ø! 4§?¡?ó4ˆŒàˆŒØˆŒä—J‘JˆŒ	Ø× Ñ Õ"r6   c                  ó   — y)z.Display a message on toolbar or in status bar.NrL   rR   s     r4   Úset_messagezNavigationToolbar2.set_message  rP   r6   c                  ó   — y)z’
        Draw a rectangle rubberband to indicate zoom limits.

        Note that it is not guaranteed that ``x0 <= x1`` and ``y0 <= y1``.
        NrL   )rI   r.  Úx0Úy0Úx1Úy1s         r4   Údraw_rubberbandz"NavigationToolbar2.draw_rubberband  rP   r6   c                  ó   — y)zRemove the rubberband.NrL   rÍ   s    r4   Úremove_rubberbandz$NavigationToolbar2.remove_rubberband#  rP   r6   c                 óx   — | j                   j                  «        | j                  «        | j                  «        y)zó
        Restore the original view.

        For convenience of being directly connected as a GUI callback, which
        often get passed additional parameters, this method accepts arbitrary
        parameters, but does not use them.
        N)rÂ  rb  rÎ  Ú_update_view©rI   r  s     r4   rb  zNavigationToolbar2.home&  ó,   € ð 	�‰×ÑÔØ× Ñ Ô"Ø×ÑÕr6   c                 óx   — | j                   j                  «        | j                  «        | j                  «        y)zù
        Move back up the view lim stack.

        For convenience of being directly connected as a GUI callback, which
        often get passed additional parameters, this method accepts arbitrary
        parameters, but does not use them.
        N)rÂ  rc  rÎ  rÚ  rÛ  s     r4   rc  zNavigationToolbar2.back2  rÜ  r6   c                 óx   — | j                   j                  «        | j                  «        | j                  «        y)zü
        Move forward in the view lim stack.

        For convenience of being directly connected as a GUI callback, which
        often get passed additional parameters, this method accepts arbitrary
        parameters, but does not use them.
        N)rÂ  r×  rÎ  rÚ  rÛ  s     r4   r×  zNavigationToolbar2.forward>  s,   € ð 	�‰×ÑÔ!Ø× Ñ Ô"Ø×ÑÕr6   c                 óÂ  — | j                   �rX|j                  �rK|j                  j                  «       �r0| j                   t        j                  k(  rz| j
                  t        j                  j                  k7  rS| j                  j                  t        j                  j                  «       t        j                  j                  | _        y| j                   t        j                  k(  r{| j
                  t        j                  j                  k7  rS| j                  j                  t        j                  j                  «       t        j                  j                  | _        yyy| j
                  t        j                  j                  k7  rS| j                  j                  t        j                  j                  «       t        j                  j                  | _        yy)zV
        Update the cursor after a mouse move event or a tool (de)activation.
        N)rÍ  rú  Úget_navigater©  r°  rÅ  r‡  rÃ  ÚSELECT_REGIONrå  rÎ  r¯  ÚMOVErÄ  ©rI   r.  s     r4   re  z!NavigationToolbar2._update_cursorJ  s#  € ð �9‹9˜Ÿ›¨%¯,©,×*CÑ*CÕ*EØ—	‘	œUŸZ™ZÒ'Ø×)Ñ)¬U¯]©]×-HÑ-HÒHØ—‘×&Ñ&¤u§}¡}×'BÑ'BÔCÜ$)§M¡M×$?Ñ$?�Õ!Ø—)‘)œuŸy™yÒ(Ø×'Ñ'¬5¯=©=×+=Ñ+=Ò=Ø—‘×&Ñ&¤u§}¡}×'9Ñ'9Ô:Ü$)§M¡M×$6Ñ$6�Õ!ð >ð )ð ×Ñ¤%§-¡-×"7Ñ"7Ò7Ø�K‰K×"Ñ"¤5§=¡=×#8Ñ#8Ô9Ü %§¡× 5Ñ 5ˆDÕð 8r6   c              #   ó´  K  — t        j                   «       t        | dt        j                   «      c| _        }| j                  |z
  dkD  r^	 | j
                  j                  t        j                  j                  «       d–— | j
                  j                  | j                  «       yd–— y# | j
                  j                  | j                  «       w xY w­w)a‘  
        Set the cursor to a wait cursor when drawing the canvas.

        In order to avoid constantly changing the cursor when the canvas
        changes frequently, do nothing if this context was triggered during the
        last second.  (Optimally we'd prefer only setting the wait cursor if
        the *current* draw takes too long, but the current draw blocks the GUI
        thread).
        Ú
_draw_timer�   N)r<  rZ  r†   r:  rå  rå  rÎ  r‡  rÃ  ÚWAITrÅ  )rI   Úlast_draw_times     r4   Ú_wait_cursor_for_draw_cmz+NavigationToolbar2._wait_cursor_for_draw_cm[  s˜   è ø€ ô �I‰I‹Kœ  |´b·f±f°WÓ=ð 	(ˆŒ˜à�?‰?˜^Ñ+¨aÒ/ð:Ø—‘×&Ñ&¤u§}¡}×'9Ñ'9Ô:Ûà—‘×&Ñ& t×'8Ñ'8Õ9äøð —‘×&Ñ& t×'8Ñ'8Õ9üs   ‚A	CÁ7B. Â+CÂ.'CÃCc                 óp  — | j                   �r| j                   j                  «       rõ	 | j                   j                  | j                  | j                  «      }|j                  «       }| j                   j                  D �cg c](  }|j                  | «      d   r|j                  «       r|‘Œ* }}|rit        j                  |«      }|| j                   j                  ur<|j                  | «      }|�)|j                  |«      j                  «       }|r|dz   |z   }|S yc c}w # t        t        f$ r Y yw xY w)Nr   ú
r.   )rú  rà  Úformat_coordrû  rü  r  Ú_mouseover_setÚcontainsrÁ  r   rÂ  r¿  Úget_cursor_dataÚformat_cursor_datar|  ÚOverflowError)r.  rM   rÃ  ÚartistsÚdataÚdata_strs         r4   Ú_mouse_event_to_messagez*NavigationToolbar2._mouse_event_to_messageq  s  € à�<‹<˜EŸL™L×5Ñ5Ô7ðØ—L‘L×-Ñ-¨e¯k©k¸5¿;¹;ÓG�ð —H‘H“J�Ø&+§l¡l×&AÑ&Aö H ØŸj™j¨Ó/°Ò2°q·}±}´ò ð H�ð HáÜ×-Ñ-¨gÓ6�AØ §¡× 2Ñ 2Ñ2Ø ×0Ñ0°Ó7˜ØÐ+Ø'(×';Ñ';¸DÓ'A×'HÑ'HÓ'J˜HÙ'Ø$%¨¡H¨xÑ$7 Ø�ØùòHøô	 ¤Ð.ò Øð ðús   ©0D# Â-DÄ#D5Ä4D5c                 óf   — | j                  |«       | j                  | j                  |«      «       y r¢   )re  rÐ  rô  rã  s     r4   rÉ  zNavigationToolbar2.mouse_move‡  s)   € Ø×Ñ˜EÔ"Ø×Ñ˜×5Ñ5°eÓ<Õ=r6   c                 ó€  — | j                   t        j                  k(  rA|j                  dk(  r| j	                  |«       n |j                  dk(  r| j                  |«       | j                   t        j                  k(  rC|j                  dk(  r| j                  |«       y |j                  dk(  r| j                  |«       y y y )Nr1  r2  )	rÍ  r©  r¯  rG  Ú	press_panÚrelease_panr°  Ú
press_zoomÚrelease_zoomrã  s     r4   rÆ  z$NavigationToolbar2._zoom_pan_handler‹  s”   € Ø�9‰9œŸ	™	Ò!Ø�z‰zÐ1Ò1Ø—‘˜uÕ%Ø—‘Ð5Ò5Ø× Ñ  Ô'Ø�9‰9œŸ
™
Ò"Ø�z‰zÐ1Ò1Ø—‘ Õ&Ø—‘Ð5Ò5Ø×!Ñ! %Õ(ð 6ð #r6   c                ó‚  ‡‡— ˆˆfd„}d„ }t        t        || j                  j                  j	                  «       «      «      }t        |«      dk(  rg S | j                  «       €| j                  «        t        «       }t        |«      D ]1  }|j                  |j                  «       g «      j                  |«       Œ3 g }t        |d¬«      D ]S  }	||	   D ]G  }|j                  |«       |j                  |j                  j!                  |«      «        ||«      sŒG n ŒS n t        t        j#                  |«      «      }|S )Nc                 óv   •— | j                  ‰«      xr& | j                  «       xr  t        | d‰› �«      «       S )NÚcan_)Úin_axesrà  rZ  )rÈ  r.  Úmethods    €€r4   Ú
_ax_filterzDNavigationToolbar2._start_event_axes_interaction.<locals>._ax_filter™  s=   ø€ Ø—J‘J˜uÓ%ò 3Ø—O‘OÓ%ò3à0”G˜B $ v h Ó0Ó2ðr6   c                 óh   — | j                  «       }|dk(  r| j                  j                  «        }| S )Nr  )Úget_forward_navigation_eventsr¿  rÁ  )rÈ  Úfs     r4   Ú_capture_eventszINavigationToolbar2._start_event_axes_interaction.<locals>._capture_eventsŸ  s3   € Ø×0Ñ0Ó2ˆAØ�FŠ{ØŸ™×,Ñ,Ó.Ð.�Ø�5ˆLr6   r   T)Úreverse)rm   Úfilterrå  rM  r¾  r`   rÂ  Úpush_currentÚdictÚreversedræ  Ú
get_zorderrÍ  rú  ÚextendÚ_twinned_axesÚget_siblingsÚfromkeys)
rI   r.  rÿ  r   r  rÅ  ÚgrpsrÈ  Úaxes_to_triggerÚzorders
    ``       r4   Ú_start_event_axes_interactionz0NavigationToolbar2._start_event_axes_interaction—  s$  ù€ õ	ò	ô ”F˜: t§{¡{×'9Ñ'9×'BÑ'BÓ'DÓEÓFˆäˆt‹9˜Š>ØˆIà�?‰?ÓÐ$Ø×ÑÔô ‹vˆÜ˜4“.ò 	<ˆBØ�O‰O˜BŸM™M›O¨RÓ0×7Ñ7¸Õ;ð	<ð ˆä˜T¨4Ô0ò 	ˆFØ˜6‘lò �Ø×&Ñ& rÔ*à×&Ñ& r×'7Ñ'7×'DÑ'DÀRÓ'HÔIá" 2Õ&Ùðð ñ ð!	ô& œtŸ}™}¨_Ó=Ó>ˆàÐr6   c                 ó  — | j                   j                  j                  | «      s| j                  d«       y| j                  t
        j                  k(  r;t
        j                  | _        | j                   j                  j                  | «       n0t
        j                  | _        | j                   j                  | «       | j                   j                  j                  «       D ]'  }|j                  | j                  j                  «       Œ) y)z[
        Toggle the pan/zoom tool.

        Pan with left button, zoom with right.
        zpan unavailableN)rå  rŽ  Ú	availablerÐ  rÍ  r©  r¯  r­  ÚreleaserM  r¾  Úset_navigate_moder®  ©rI   r  rÃ  s      r4   rd  zNavigationToolbar2.panÌ  s¸   € ð �{‰{×%Ñ%×/Ñ/°Ô5Ø×ÑÐ.Ô/ØØ�9‰9œŸ	™	Ò!ÜŸ
™
ˆDŒIØ�K‰K×"Ñ"×*Ñ*¨4Õ0äŸ	™	ˆDŒIØ�K‰K×"Ñ" 4Ô(Ø—‘×#Ñ#×,Ñ,Ó.ò 	:ˆAØ×Ñ §	¡	× 8Ñ 8Õ9ñ	:r6   Ú_PanInfozbutton axes cidc                 ó  — |j                   t        j                  t        j                  fvs|j                  �|j
                  €y| j                  |d¬«      }|sy|D ]3  }|j                  |j                  |j
                  |j                   «       Œ5 | j                  j                  | j                  «       | j                  j                  d| j                  «      }| j                  |j                   ||¬«      | _        y)z1Callback for mouse button press in pan/zoom mode.Nrd  ©rÿ  r  )r  rÅ  r2  )r  r  r
  r  rg   rh   r  Ú	start_panrå  r3  rÊ  r/  Údrag_panr  rË  )rI   r.  rÅ  rÈ  Úid_drags        r4   r÷  zNavigationToolbar2.press_panà  sÎ   € à�L‰L¤×!1Ñ!1´;×3DÑ3DÐ EÑEØ—7‘7�? e§g¡g oØà×1Ñ1°%ÀÐ1ÓFˆÙØð ò 	9ˆBØ�L‰L˜Ÿ™ %§'¡'¨5¯<©<Õ8ð	9ð 	�‰×"Ñ" 4§=¡=Ô1Ø—+‘+×)Ñ)Ð*?ÀÇÁÓOˆàŸ™Ø—<‘< d°ð 'ó 9ˆ�r6   c                 óú   — | j                   j                  D ]H  }|j                  | j                   j                  |j                  |j
                  |j                  «       ŒJ | j                  j                  «        y)z'Callback for dragging in pan/zoom mode.N)	rË  rÅ  r  r  r  rg   rh   rå  rÒ  ©rI   r.  rÈ  s      r4   r  zNavigationToolbar2.drag_panô  sY   € à—.‘.×%Ñ%ò 	LˆBð �K‰K˜Ÿ™×-Ñ-¨u¯y©y¸%¿'¹'À5Ç7Á7ÕKð	Lð 	�‰×ÑÕr6   c                 óŠ  — | j                   €y| j                  j                  | j                   j                  «       | j                  j	                  d| j
                  «      | _        | j                   j                  D ]  }|j                  «        Œ | j                  j                  «        d| _         | j                  «        y)z3Callback for mouse button release in pan/zoom mode.Nr  )rË  rå  r3  r2  r/  rÉ  rÊ  rÅ  Úend_panrÒ  r  r  s      r4   rø  zNavigationToolbar2.release_panü  s�   € à�>‰>Ð!ØØ�‰×"Ñ" 4§>¡>×#5Ñ#5Ô6ØŸ™×/Ñ/Ø! 4§?¡?ó4ˆŒà—.‘.×%Ñ%ò 	ˆBØ�J‰J�Lð	à�‰×ÑÔØˆŒØ×ÑÕr6   c                 ó   — | j                   j                  j                  | «      s| j                  d«       y 	 | j                  t
        j                  k(  r;t
        j                  | _        | j                   j                  j                  | «       n0t
        j                  | _        | j                   j                  | «       | j                   j                  j                  «       D ]'  }|j                  | j                  j                  «       Œ) y )Nzzoom unavailable)rå  rŽ  r  rÐ  rÍ  r©  r°  r­  r  rM  r¾  r  r®  r  s      r4   rf  zNavigationToolbar2.zoom	  s¹   € Ø�{‰{×%Ñ%×/Ñ/°Ô5Ø×ÑÐ/Ô0ØØ'Ø�9‰9œŸ
™
Ò"ÜŸ
™
ˆDŒIØ�K‰K×"Ñ"×*Ñ*¨4Õ0äŸ
™
ˆDŒIØ�K‰K×"Ñ" 4Ô(Ø—‘×#Ñ#×,Ñ,Ó.ò 	:ˆAØ×Ñ §	¡	× 8Ñ 8Õ9ñ	:r6   Ú	_ZoomInfoz direction start_xy axes cid cbarc                 óÞ  — |j                   t        j                  t        j                  fvs|j                  �|j
                  €y| j                  |d¬«      }|sy| j                  j                  d| j                  «      }|d   }t        |d«      r|j                  j                  }nd}| j                  |j                   dk(  rdnd	|j                  |j
                  f|||¬
«      | _        y)z5Callback for mouse button press in zoom to rect mode.Nrf  r  r  r   Ú	_colorbarr�   ÚinÚout)Ú	directionÚstart_xyrÅ  r2  Úcbar)r  r  r
  r  rg   rh   r  rå  r/  Ú	drag_zoomrY  r%  rð  r#  rÌ  )rI   r.  rÅ  Úid_zoomÚ	parent_axr*  s         r4   rù  zNavigationToolbar2.press_zoom  sÒ   € à�L‰L¤×!1Ñ!1´;×3DÑ3DÐ EÑEØ—7‘7�? e§g¡g oØà×1Ñ1°%ÀÐ1ÓGˆÙØà—+‘+×)Ñ)Ø! 4§>¡>ó3ˆð ˜‘Gˆ	Ü�9˜kÔ*Ø×&Ñ&×2Ñ2‰DàˆDàŸ.™.Ø#Ÿl™l¨aÒ/‘d°UØ—g‘g˜uŸw™wÐ'¨d¸Àdð )ó Lˆ�r6   c                 óL  — | j                   j                  }| j                   j                  d   }t        j                  ||j
                  |j                  gg|j                  j                  |j                  j                  «      \  \  }}\  }}|j                  }| j                   j                  dk(  rd}n| j                   j                  dk(  rd}|dk(  r|j                  j                  \  }}n|dk(  r|j                  j                  \  }}| j                  |||||«       y)z#Callback for dragging in zoom mode.r   Ú
horizontalrg   Úverticalrh   N)rÌ  r)  rÅ  r†   Úcliprg   rh   r»  Úminr•   r  r*  Ú	intervalyÚ	intervalxrÖ  )	rI   r.  r)  rÈ  rÔ  rÕ  Úx2Úy2r  s	            r4   r+  zNavigationToolbar2.drag_zoom3  së   € à—?‘?×+Ñ+ˆØ�_‰_×!Ñ! !Ñ$ˆÜŸW™WØ˜Ÿ™ §¡Ð)Ð*¨B¯G©G¯K©K¸¿¹¿¹óFÑ‰ˆˆR‘(�2�rà�i‰iˆà�?‰?×Ñ <Ò/Ø‰CØ�_‰_×!Ñ! ZÒ/ØˆCØ�#Š:Ø—W‘W×&Ñ&‰FˆB‘Ø�CŠZØ—W‘W×&Ñ&‰FˆB�à×Ñ˜U B¨¨B°Õ3r6   c                 óø  ‡— | j                   €y| j                  j                  | j                   j                  «       | j	                  «        | j                   j
                  \  }}|j                  }| j                   j                  dk(  rd}n| j                   j                  dk(  rd}t        |j                  |z
  «      dk  r|dk7  s t        |j                  |z
  «      dk  r'|dk7  r"| j                  j                  «        d| _         yt        | j                   j                  «      D ]œ  \  }Št        ˆfd„| j                   j                  d| D «       «      }t        ˆfd„| j                   j                  d| D «       «      }‰j                  |||j                  |j                  f| j                   j                   |||«       Œž | j                  j                  «        d| _         | j#                  «        y)	z7Callback for mouse button release in zoom to rect mode.Nr/  rg   r0  rh   é   c              3   ó^   •K  — | ]$  }‰j                  «       j                  ‰|«      –— Œ& y ­wr¢   )Úget_shared_x_axesÚjoined©rÞ  ÚprevrÈ  s     €r4   rß  z2NavigationToolbar2.release_zoom.<locals>.<genexpr>c  ó/   øè ø€ ò >Ø ð ×,Ñ,Ó.×5Ñ5°b¸$×?ñ >ùó   ƒ*-c              3   ó^   •K  — | ]$  }‰j                  «       j                  ‰|«      –— Œ& y ­wr¢   )Úget_shared_y_axesr;  r<  s     €r4   rß  z2NavigationToolbar2.release_zoom.<locals>.<genexpr>e  r>  r?  )rÌ  rå  r3  r2  rØ  r)  r  r*  Úabsrg   rh   rÒ  Ú	enumeraterÅ  r{  Ú_set_view_from_bboxr(  r  )	rI   r.  Ústart_xÚstart_yr  r›   ÚtwinxÚtwinyrÈ  s	           @r4   rú  zNavigationToolbar2.release_zoomF  s©  ø€ à�?‰?Ð"Øð 	�‰×"Ñ" 4§?¡?×#6Ñ#6Ô7Ø×ÑÔ àŸ?™?×3Ñ3Ñˆ�Ø�i‰iˆð �?‰?×Ñ <Ò/Ø‰CØ�_‰_×!Ñ! ZÒ/ØˆCô �—‘˜7Ñ"Ó# aÒ'¨C°3ªJÜ�U—W‘W˜wÑ&Ó'¨!Ò+°°s²
Ø�K‰K×!Ñ!Ô#Ø"ˆDŒOØä˜tŸ™×3Ñ3Ó4ò 		>‰EˆAˆrô ó >Ø$(§O¡O×$8Ñ$8¸¸!Ð$<ô>ó >ˆEäó >Ø$(§O¡O×$8Ñ$8¸¸!Ð$<ô>ó >ˆEà×"Ñ"Ø˜' 5§7¡7¨E¯G©GÐ4Ø—‘×)Ñ)¨3°°uõ>ð		>ð 	�‰×ÑÔØˆŒØ×ÑÕr6   c                 óf  — | j                   j                  t        | j                  j                  j
                  D �ci c]P  }||j                  «       |j                  d«      j                  «       |j                  «       j                  «       ff“ŒR c}«      «       | j                  «        yc c}w )z9Push the current view limits and position onto the stack.TN)
rÂ  Úpushr	   rå  rM  rÅ  Ú	_get_viewÚget_positionrn   rÎ  rÇ  s     r4   r  zNavigationToolbar2.push_currento  s˜   € à�‰×ÑÜð
  Ÿ;™;×-Ñ-×2Ñ2ö	4ð ð	 �b—l‘l“nà—‘ tÓ,×3Ñ3Ó5Ø—‘Ó(×/Ñ/Ó1ð3ð4ñ 4ò 4ó5ô	6ð 	× Ñ Õ"ùò4s   ½AB.c                 ó  — | j                  «       }|€yt        |j                  «       «      }|D ]@  \  }\  }\  }}|j                  |«       |j	                  |d«       |j	                  |d«       ŒB | j
                  j                  «        y)zi
        Update the viewlim and position from the view and position stack for
        each Axes.
        NÚoriginalÚactive)rÂ  rm   rå  Ú	_set_viewÚ_set_positionrå  rÒ  )rI   Únav_inforå  rÈ  ÚviewÚpos_origÚ
pos_actives          r4   rÚ  zNavigationToolbar2._update_viewz  sˆ   € ð
 —?‘?Ó$ˆØÐØô �X—^‘^Ó%Ó&ˆØ27ò 	3Ñ.ˆBÑ.�Ñ-˜ *Ø�L‰L˜Ôà×Ñ˜X zÔ2Ø×Ñ˜Z¨Õ2ð		3ð
 	�‰×ÑÕr6   c                 óØ  ‡ ‡‡— t        ‰ d«      r9‰ j                  j                  j                  j                  j                  «        y ddlm} t        j                  ddi«      5  t        ‰ j                  «      j                   |d¬«      d«      Šd d d «       ‰j                  d	«       ‰j                  j                  }|j                  d
¬«       t        j                  ‰ j                  j                  |«      ‰ _        ‰ j                  j!                  dˆfd„«      Šˆˆ fd„}|j                  j!                  d|«       ‰j                  «        ‰ j                  S # 1 sw Y   ŒÎxY w)NÚsubplot_toolr   r…  r�  r  )é   r«   )ÚfigsizeéÿÿÿÿzSubplot configuration toolgÍÌÌÌÌÌì?)Útopr  c                 ó$   •— ‰j                  «       S r¢   )r¡  )ÚerŒ  s    €r4   r  z7NavigationToolbar2.configure_subplots.<locals>.<lambda>™  s   ø€  W§_¡_Ó%6€ r6   c                 ó@   •— ‰j                   j                  ‰«       ‰`y r¢   )rå  r3  rW  )r]  r2  rI   s    €€r4   Úon_tool_fig_closez@NavigationToolbar2.configure_subplots.<locals>.on_tool_fig_close›  s   ø€ Ø�K‰K×&Ñ& sÔ+ØÑ!r6   )rY  rW  rM  rå  rŒ  r’  r‡  r†  r„  Ú
rc_contextrŸ  r´  r�  Úsubplots_adjustr   ÚSubplotToolr/  )rI   r  r†  Útool_figr_  r2  rŒ  s   `    @@r4   r½  z%NavigationToolbar2.configure_subplotsŒ  s  ú€ Ü�4˜Ô(Ø×Ñ×$Ñ$×+Ñ+×3Ñ3×8Ñ8Ô:Øå,Ü�^‰^˜Y¨Ð/Ó0ñ 	PÜ˜4Ÿ;™;Ó'×3Ñ3±FÀ6Ô4JÈBÓOˆG÷	Pà× Ñ Ð!=Ô>Ø—>‘>×(Ñ(ˆØ× Ñ  SÐ Ô)Ü#×/Ñ/°·±×0BÑ0BÀHÓMˆÔØ�k‰k×%Ñ%ØÓ6ó8ˆõ	"ð 	�‰×#Ñ# MÐ3DÔEØ�‰ŒØ× Ñ Ð ÷	Pð 	Pús   Á&-E Å E)c                 ó   — t         ‚)a¦  
        Save the current figure.

        Backend implementations may choose to return
        the absolute path of the saved file, if any, as
        a string.

        If no file is created then `None` is returned.

        If the backend does not implement this functionality
        then `NavigationToolbar2.UNKNOWN_SAVED_STATUS` is returned.

        Returns
        -------
        str or `NavigationToolbar2.UNKNOWN_SAVED_STATUS` or `None`
            The filepath of the saved figure.
            Returns `None` if figure is not saved.
            Returns `NavigationToolbar2.UNKNOWN_SAVED_STATUS` when
            the backend does not provide the information.
        rU   rÛ  s     r4   rg  zNavigationToolbar2.save_figure£  s
   € ô* "Ð!r6   c                 óX   — | j                   j                  «        | j                  «        y)zReset the Axes stack.N)rÂ  ÚclearrÎ  rÍ   s    r4   r&  zNavigationToolbar2.updateº  s   € à�‰×ÑÔØ× Ñ Õ"r6   c                  ó   — y)z*Enable or disable the back/forward button.NrL   rÍ   s    r4   rÎ  z&NavigationToolbar2.set_history_buttons¿  rP   r6   N)'r!  r"  r#  r$  Ú	toolitemsÚobjectÚUNKNOWN_SAVED_STATUSrC   rÐ  rÖ  rØ  rb  rc  r×  re  r   rè  Ústaticmethodrô  rÉ  rÆ  r  rd  r   r  r÷  r  rø  rf  r#  rù  r+  rú  r  rÚ  r½  rg  r&  rÎ  rL   r6   r4   r²  r²  Î
  sß   „ ñðL€Iñ "›8Ðò#ò&=òò%ò
ò
ò
ò6ð" ñó ðð* ñó ðò*>ò
)ò3òj:ñ$ ˜*Ð&7Ó8€Hò9ò( òò:ñ ˜;Ð(JÓK€IòLò44ò&'òR	#ò ò$!ò."ò.#ó
9r6   r²  c                   óN   — e Zd ZdZdZ	 d„ Zd„ Zdd„Zd„ Zd„ Z	d„ Z
d	„ Zd
„ Zd„ Zy)ÚToolContainerBasezÄ
    Base class for all tool containers, e.g. toolbars.

    Attributes
    ----------
    toolmanager : `.ToolManager`
        The tools with which this `ToolContainer` wants to communicate.
    z.pngc                 óh   ‡ — |‰ _         |j                  dˆ fd„«       |j                  dˆ fd„«       y )NÚtool_message_eventc                 ó:   •— ‰j                  | j                  «      S r¢   )rÐ  rÒ  ©r.  rI   s    €r4   r  z,ToolContainerBase.__init__.<locals>.<lambda>Ø  s   ø€ ˜$×*Ñ*¨5¯=©=Ó9€ r6   Útool_removed_eventc                 óN   •— ‰j                  | j                  j                  «      S r¢   )Úremove_toolitemÚtoolrG  rq  s    €r4   r  z,ToolContainerBase.__init__.<locals>.<lambda>Û  s   ø€ ˜$×.Ñ.¨u¯z©z¯©Ó?€ r6   )r|  Útoolmanager_connect)rI   r|  s   ` r4   rC   zToolContainerBase.__init__Ô  s6   ø€ Ø&ˆÔØ×'Ñ'Ø Û9ô	;ð 	×'Ñ'Ø Û?õ	Ar6   c                 óx   — | j                  |j                  j                  |j                  j                  «       y)zc
        Capture the 'tool_trigger_[name]'

        This only gets used for toggled tools.
        N)Útoggle_toolitemru  rG  Útoggledrã  s     r4   Ú_tool_toggled_cbkz#ToolContainerBase._tool_toggled_cbkÝ  s&   € ð 	×Ñ˜UŸZ™ZŸ_™_¨e¯j©j×.@Ñ.@ÕAr6   c                 óŒ  — | j                   j                  |«      }| j                  |«      }t        |dd«      du}| j	                  |j
                  ||||j                  |«       |r]| j                   j                  d|j
                  z  | j                  «       |j                  r| j                  |j
                  d«       yyy)aV  
        Add a tool to this container.

        Parameters
        ----------
        tool : tool_like
            The tool to add, see `.ToolManager.get_tool`.
        group : str
            The name of the group to add this tool to.
        position : int, default: -1
            The position within the group to place this tool.
        ry  Nztool_trigger_%sT)r|  Úget_toolÚ_get_image_filenamerZ  Úadd_toolitemrG  r3   rv  rz  ry  rx  )rI   ru  ÚgroupÚpositionr%  Útoggles         r4   Úadd_toolzToolContainerBase.add_toolå  s¶   € ð ×Ñ×(Ñ(¨Ó.ˆØ×(Ñ(¨Ó.ˆÜ˜˜y¨$Ó/°tÐ;ˆØ×Ñ˜$Ÿ)™) U¨HØ ×!1Ñ!1°6ô	;áØ×Ñ×0Ñ0Ð1BÀTÇYÁYÑ1NØ15×1GÑ1GôIð �|Š|Ø×$Ñ$ T§Y¡Y°Õ5ð ð	 r6   c                 óZ  — |j                   syt        j                  j                  |j                   «      r|j                   }n™dt	        |di «      v rt        d«      ‚t        |«      j                  D ]'  }dt        |«      v sŒ	 t        j                  |«      } n t        d«      ‚t        t        j                  |«      j                   |j                   z  «      }||| j"                  z   fD ]B  }t        j                  j%                  |«      sŒ#t        j                  j'                  |«      c S  |j                   |j                   | j"                  z   t)        j*                  d|j                   «      t)        j*                  d|j                   | j"                  z   «      fD ]g  }t        j                  j%                  |«      sŒ#t-        j.                  dd	|j                   ›d
�¬«       t        j                  j'                  |«      c S  y# t        t        f$ r t        d«      d‚w xY w)zResolve a tool icon's filename.Nr%  r%  zDIf 'tool.image' is an instance variable, it must be an absolute pathz:Failed to locate source file where 'tool.image' is definedz1Failed to find parent class defining 'tool.image'Úimagesr¸  zLoading icon zñ from the current directory or from Matplotlib's image directory.  This behavior is deprecated since %(since)s and will be removed in %(removal)s; Tool.image should be set to a path relative to the Tool's source file, or to an absolute path.rÑ  )r%  r  rX   ÚisabsrZ  r|  rŸ  Ú__mro__Úvarsrû  ÚgetfileÚOSErrorÚ	TypeErrorr9   Úpathlibr   rW  Ú_icon_extensionÚisfileÚabspathr   Ú_get_data_pathr
   rÓ  )rI   ru  r  ry  ÚsrcÚfnames         r4   r}  z%ToolContainerBase._get_image_filenameþ  sÚ  € à�zŠzØÜ�7‰7�=‰=˜Ÿ™Ô$Ø—z‘z‰Hàœ' $¨
°BÓ7Ñ7Ü ð "?ó @ð @ä˜D“z×)Ñ)ò 	V�Øœd 3›iÒ'ðTÜ%Ÿo™o¨cÓ2˜Ùð		Vô !Ð!TÓUÐUÜœ7Ÿ<™<¨Ó,×3Ñ3°d·j±jÑ@ÓAˆHØ! 8¨d×.BÑ.BÑ#BÐCò 	1ˆHÜ�w‰w�~‰~˜hÕ'Ü—w‘w—‘ xÓ0Ò0ð	1ð �J‰JØ�J‰J˜×-Ñ-Ñ-Ü× Ñ  ¨4¯:©:Ó6Ü× Ñ  ¨4¯:©:¸×8LÑ8LÑ+LÓMð	
ò 	.ˆEô �w‰w�~‰~˜eÕ$Ü×$Ñ$Ø ]°4·:±:°.ð A4ð $4õ5ô —w‘w—‘ uÓ-Ò-ñ	.øô $¤YÐ/ò TÜ(ð *Ió JØOSðTðTús   ÂHÈH*c                 ó>   — | j                   j                  || ¬«       y)z¤
        Trigger the tool.

        Parameters
        ----------
        name : str
            Name (id) of the tool triggered from within the container.
        )ÚsenderN)r|  Útrigger_tool©rI   rG  s     r4   r”  zToolContainerBase.trigger_tool%  s   € ð 	×Ñ×%Ñ% d°4Ð%Õ8r6   c                 ó   — t         ‚)a  
        A hook to add a toolitem to the container.

        This hook must be implemented in each backend and contains the
        backend-specific code to add an element to the toolbar.

        .. warning::
            This is part of the backend implementation and should
            not be called by end-users.  They should instead call
            `.ToolContainerBase.add_tool`.

        The callback associated with the button click event
        must be *exactly* ``self.trigger_tool(name)``.

        Parameters
        ----------
        name : str
            Name of the tool to add, this gets used as the tool's ID and as the
            default label of the buttons.
        group : str
            Name of the group that this tool belongs to.
        position : int
            Position of the tool within its group, if -1 it goes at the end.
        image : str
            Filename of the image for the button or `None`.
        description : str
            Description of the tool, used for the tooltips.
        toggle : bool
            * `True` : The button is a toggle (change the pressed/unpressed
              state between consecutive clicks).
            * `False` : The button is a normal button (returns to unpressed
              state after release).
        rU   )rI   rG  r  r€  r%  r3   r�  s          r4   r~  zToolContainerBase.add_toolitem0  s   € ôD "Ð!r6   c                 ó   — t         ‚)aŒ  
        A hook to toggle a toolitem without firing an event.

        This hook must be implemented in each backend and contains the
        backend-specific code to silently toggle a toolbar element.

        .. warning::
            This is part of the backend implementation and should
            not be called by end-users.  They should instead call
            `.ToolManager.trigger_tool` or `.ToolContainerBase.trigger_tool`
            (which are equivalent).

        Parameters
        ----------
        name : str
            Id of the tool to toggle.
        toggled : bool
            Whether to set this tool as toggled or not.
        rU   )rI   rG  ry  s      r4   rx  z!ToolContainerBase.toggle_toolitemT  s
   € ô( "Ð!r6   c                 ó   — t         ‚)aû  
        A hook to remove a toolitem from the container.

        This hook must be implemented in each backend and contains the
        backend-specific code to remove an element from the toolbar; it is
        called when `.ToolManager` emits a ``tool_removed_event``.

        Because some tools are present only on the `.ToolManager` but not on
        the `ToolContainer`, this method must be a no-op when called on a tool
        absent from the container.

        .. warning::
            This is part of the backend implementation and should
            not be called by end-users.  They should instead call
            `.ToolManager.remove_tool`.

        Parameters
        ----------
        name : str
            Name of the tool to remove.
        rU   r•  s     r4   rt  z!ToolContainerBase.remove_toolitemj  s
   € ô, "Ð!r6   c                 ó   — t         ‚)z„
        Display a message on the toolbar.

        Parameters
        ----------
        s : str
            Message text.
        rU   rR   s     r4   rÐ  zToolContainerBase.set_message‚  s
   € ô "Ð!r6   N)rZ  )r!  r"  r#  r$  rŒ  rC   rz  r‚  r}  r”  r~  rx  rt  rÐ  rL   r6   r4   rm  rm  Ã  sD   „ ñð €OðòAòBó6ò2%.òN	9ò""òH"ò,"ó0	"r6   rm  c                   ór   — e Zd ZdZdZeZdZed„ «       Z	ed„ «       Z
ed„ «       Zeddœd„«       Zed„ «       Zy)	Ú_BackendÚunknownNc                 óf   — ddl m} |j                  d|«      } ||i |¤Ž}| j                  ||«      S )z%Create a new figure manager instance.r   r…  ÚFigureClass)r‡  r†  rÕ  Únew_figure_manager_given_figure)ry  r³  r  r  r†  Úfig_clsr  s          r4   Únew_figure_managerz_Backend.new_figure_manager¦  s9   € õ 	-Ø—*‘*˜]¨FÓ3ˆÙ�tÐ&˜vÑ&ˆØ×2Ñ2°3¸Ó<Ð<r6   c                 ó:   — | j                   j                  ||«      S )z:Create a new figure manager instance for the given figure.)r<   r´  )ry  r³  rM  s      r4   rŸ  z(_Backend.new_figure_manager_given_figure¯  s   € ð ×Ñ×+Ñ+¨F°CÓ8Ð8r6   c                 ó&  — | j                   j                  }|j                  t        j                  k7  xs |j                  t        j                  k7  }|r=t        «       r2t        j                  «       }|r|j                  j                  «        y y y y r¢   )
r<   r±  r�  rw  r˜  r   r   Ú
get_activerå  rÒ  )ry  r±  Úbackend_is_interactiverŒ  s       r4   Údraw_if_interactivez_Backend.draw_if_interactive´  s€   € à×(Ñ(×6Ñ6ˆð ×)Ñ)Ô->×-NÑ-NÑNò JØ×(Ñ(Ô,=×,IÑ,IÑIð 	ñ "¤nÔ&6Ü—n‘nÓ&ˆGÙØ—‘×(Ñ(Õ*ð ð '7Ð!r6   rŽ  c                óš  — t        j                  «       }|sy|D ]  }	 |j                  «        Œ | j                  €y|€Ft        t        j                  j                  d«      dd«      }t        |d«      }| xr t        «        }|r| j                  «        yy# t        $ r(}t	        j
                  t        |«      «       Y d}~Œ«d}~ww xY w)z÷
        Show all figures.

        `show` blocks by calling `mainloop` if *block* is ``True``, or if it is
        ``None`` and we are not in `interactive` mode and if IPython's
        ``%matplotlib`` integration has not been activated.
        Nr‘  r’  r“  )r   r”  r’  ry  r
   r•  r9   ÚmainlooprZ  r¥  r¦  r§  rY  r   r–  s          r4   r’  z_Backend.showÀ  s¿   € ô ×+Ñ+Ó-ˆÙØØò 	-ˆGð-Ø—‘•ð	-ð
 �<‰<ÐØØˆ=ô "¤#§+¡+§/¡/Ð2EÓ"FÈÐPTÓUˆKÜ# K°Ó=ˆMØ%Ð%Ò>¬nÓ.>Ð*>ˆEÙØ�L‰L�Nð øô #ò -Ü×"Ñ"¤3 s£8×,Ñ,ûð-ús   žBÂ	C
Â"CÃC
c           	      óì   ‡ — dD ]4  }t        t        j                  ‰ j                     |t	        ‰ |«      «       Œ6  G ˆ fd„dt
        «      }t        t        j                  ‰ j                     d|«       ‰ S )N)Úbackend_versionr<   ÚFigureManagerr¡  rŸ  r¦  r’  c                   ó   •— e Zd Zˆ fd„Zy)ú_Backend.export.<locals>.Showc                 ó$   •— ‰j                  «       S r¢   )r¨  )rI   ry  s    €r4   r¨  z&_Backend.export.<locals>.Show.mainloopï  s   ø€ Ø—|‘|“~Ð%r6   N)r!  r"  r#  r¨  rx  s   €r4   ÚShowr­  î  s   ø„ õ&r6   r¯  )Úsetattrr¥  r¦  r"  rZ  ÚShowBase)ry  rG  r¯  s   `  r4   Úexportz_Backend.exportß  sd   ø€ ð
ò 		KˆDô ”C—K‘K §¡Ñ/°´w¸sÀDÓ7IÕJð		Kö	&”8ô 	&ô 	”—‘˜CŸN™NÑ+¨V°TÔ:Øˆ
r6   )r!  r"  r#  rª  r<   rw  r«  r¨  rI  r¡  rŸ  r¦  r’  rk  r²  rL   r6   r4   r›  r›  Ž  s…   „ ð  €Oð €Lð &€Mð
 €Hð
 ñ=ó ð=ð ñ9ó ð9ð ñ	+ó ð	+ð Øó ó ðð< ñó ñr6   r›  c                   ó   — e Zd ZdZdd„Zy)r±  z}
    Simple base class to generate a ``show()`` function in backends.

    Subclass must override ``mainloop()`` method.
    Nc                 ó&   — | j                  |¬«      S )NrŽ  )r’  )rI   r�  s     r4   Ú__call__zShowBase.__call__ý  s   € Ø�y‰y˜uˆyÓ%Ð%r6   r¢   )r!  r"  r#  r$  rµ  rL   r6   r4   r±  r±  ö  s   „ ñô&r6   r±  r¢   rM  )_r$  Úcollectionsr   Ú
contextlibr   r   r   Úenumr   r   rþ  r:   rû  rJ  r£   Úloggingr  r‹  rb  rg  r¥  r<  r:  r	   Únumpyr†   Ú
matplotlibr„  r
   r   r‡  r   r   r   r   r   r   r   r   r   Úmatplotlib._pylab_helpersr   Úmatplotlib.backend_managersr   Úmatplotlib.cbookr   Úmatplotlib.layout_enginer   Úmatplotlib.pathr   Úmatplotlib.texmanagerr   Úmatplotlib.transformsr   Úmatplotlib._enumsr   r   Ú	getLoggerr!  rP  r0   r/   r5   r>   r@   r
  r¬  rã  rë  rï  rò  rõ  r  r  r!  r(  r/  r?  rR  rU  r\  rs  ru  rt  rw  r9  ry  rw  Úcursorsr9   r©  r²  rm  r›  r±  rL   r6   r4   ú<module>rÆ     sD  ðñõ6 #ß =Ñ =ß Û Û Û Û 	Û Û Û 	Û Û Û Û 
Û Û Ý %ã ã ÷@÷ @÷ @ñ @õ *Ý 3Ý (Ý <Ý  Ý ,Ý *ß 1ð €w×Ñ˜Ó"€à$Ø-Ø.Ø%ØØ&Ø
ØØØ%Ø&Ø%Ø&ØñÐ ð" ,Ø,Ø-Ø,Ø,Ø,Ø
*Ø,Ø-Ø,Ø-Ø,Ø-Ø-ñÐ ó$-ò&÷`+ñ `+÷FH=ñ H=÷V
Zñ Z÷zñ ô8!�ô !ô6<�%ô <ô(7�ô 7ô7�Eô 7ôt�'ô ôi)�ô i)ôX.%�ô .%ôb"ˆ}ô "òL!ò"AóJ<ò@$ò?ð ñ6.ó ð6.÷rJñ JóZJ8óZô&	�iô 	÷
Lñ Lð^ �-‰-€ô
=ˆC�ô 
=÷r9ñ r9÷jH"ñ H"÷Veñ eôP&ˆxõ &r6   