o
    ¡:´arx  ã                   @   s˜   d Z ddlmZ ddlZddlmZmZmZ ddl	m
Z
 ddlmZmZ ddlmZmZ ed	ƒ\ZZZZZZZZZZZZe
e d
¡ƒZG dd„ dƒZ dS )aO  
Functions to handle markers; used by the marker functionality of
`~matplotlib.axes.Axes.plot`, `~matplotlib.axes.Axes.scatter`, and
`~matplotlib.axes.Axes.errorbar`.

All possible markers are defined here:

============================== ====== =========================================
marker                         symbol description
============================== ====== =========================================
``"."``                        |m00|  point
``","``                        |m01|  pixel
``"o"``                        |m02|  circle
``"v"``                        |m03|  triangle_down
``"^"``                        |m04|  triangle_up
``"<"``                        |m05|  triangle_left
``">"``                        |m06|  triangle_right
``"1"``                        |m07|  tri_down
``"2"``                        |m08|  tri_up
``"3"``                        |m09|  tri_left
``"4"``                        |m10|  tri_right
``"8"``                        |m11|  octagon
``"s"``                        |m12|  square
``"p"``                        |m13|  pentagon
``"P"``                        |m23|  plus (filled)
``"*"``                        |m14|  star
``"h"``                        |m15|  hexagon1
``"H"``                        |m16|  hexagon2
``"+"``                        |m17|  plus
``"x"``                        |m18|  x
``"X"``                        |m24|  x (filled)
``"D"``                        |m19|  diamond
``"d"``                        |m20|  thin_diamond
``"|"``                        |m21|  vline
``"_"``                        |m22|  hline
``0`` (``TICKLEFT``)           |m25|  tickleft
``1`` (``TICKRIGHT``)          |m26|  tickright
``2`` (``TICKUP``)             |m27|  tickup
``3`` (``TICKDOWN``)           |m28|  tickdown
``4`` (``CARETLEFT``)          |m29|  caretleft
``5`` (``CARETRIGHT``)         |m30|  caretright
``6`` (``CARETUP``)            |m31|  caretup
``7`` (``CARETDOWN``)          |m32|  caretdown
``8`` (``CARETLEFTBASE``)      |m33|  caretleft (centered at base)
``9`` (``CARETRIGHTBASE``)     |m34|  caretright (centered at base)
``10`` (``CARETUPBASE``)       |m35|  caretup (centered at base)
``11`` (``CARETDOWNBASE``)     |m36|  caretdown (centered at base)
``"None"``, ``" "`` or  ``""``        nothing
``'$...$'``                    |m37|  Render the string using mathtext.
                                      E.g ``"$f$"`` for marker showing the
                                      letter ``f``.
``verts``                             A list of (x, y) pairs used for Path
                                      vertices. The center of the marker is
                                      located at (0, 0) and the size is
                                      normalized, such that the created path
                                      is encapsulated inside the unit cell.
path                                  A `~matplotlib.path.Path` instance.
``(numsides, 0, angle)``              A regular polygon with ``numsides``
                                      sides, rotated by ``angle``.
``(numsides, 1, angle)``              A star-like symbol with ``numsides``
                                      sides, rotated by ``angle``.
``(numsides, 2, angle)``              An asterisk with ``numsides`` sides,
                                      rotated by ``angle``.
============================== ====== =========================================

``None`` is the default which means 'nothing', however this table is
referred to from other docs for the valid inputs from marker inputs and in
those cases ``None`` still means 'default'.

Note that special symbols can be defined via the
:doc:`STIX math font </tutorials/text/mathtext>`,
e.g. ``"$\u266B$"``. For an overview over the STIX font symbols refer to the
`STIX font table <http://www.stixfonts.org/allGlyphs.html>`_.
Also see the :doc:`/gallery/text_labels_and_annotations/stix_fonts_demo`.

Integer numbers from ``0`` to ``11`` create lines and triangles. Those are
equally accessible via capitalized variables, like ``CARETDOWNBASE``.
Hence the following are equivalent::

    plt.plot([1, 2, 3], marker=11)
    plt.plot([1, 2, 3], marker=matplotlib.markers.CARETDOWNBASE)

Examples showing the use of markers:

* :doc:`/gallery/lines_bars_and_markers/marker_reference`
* :doc:`/gallery/lines_bars_and_markers/scatter_star_poly`


.. |m00| image:: /_static/markers/m00.png
.. |m01| image:: /_static/markers/m01.png
.. |m02| image:: /_static/markers/m02.png
.. |m03| image:: /_static/markers/m03.png
.. |m04| image:: /_static/markers/m04.png
.. |m05| image:: /_static/markers/m05.png
.. |m06| image:: /_static/markers/m06.png
.. |m07| image:: /_static/markers/m07.png
.. |m08| image:: /_static/markers/m08.png
.. |m09| image:: /_static/markers/m09.png
.. |m10| image:: /_static/markers/m10.png
.. |m11| image:: /_static/markers/m11.png
.. |m12| image:: /_static/markers/m12.png
.. |m13| image:: /_static/markers/m13.png
.. |m14| image:: /_static/markers/m14.png
.. |m15| image:: /_static/markers/m15.png
.. |m16| image:: /_static/markers/m16.png
.. |m17| image:: /_static/markers/m17.png
.. |m18| image:: /_static/markers/m18.png
.. |m19| image:: /_static/markers/m19.png
.. |m20| image:: /_static/markers/m20.png
.. |m21| image:: /_static/markers/m21.png
.. |m22| image:: /_static/markers/m22.png
.. |m23| image:: /_static/markers/m23.png
.. |m24| image:: /_static/markers/m24.png
.. |m25| image:: /_static/markers/m25.png
.. |m26| image:: /_static/markers/m26.png
.. |m27| image:: /_static/markers/m27.png
.. |m28| image:: /_static/markers/m28.png
.. |m29| image:: /_static/markers/m29.png
.. |m30| image:: /_static/markers/m30.png
.. |m31| image:: /_static/markers/m31.png
.. |m32| image:: /_static/markers/m32.png
.. |m33| image:: /_static/markers/m33.png
.. |m34| image:: /_static/markers/m34.png
.. |m35| image:: /_static/markers/m35.png
.. |m36| image:: /_static/markers/m36.png
.. |m37| image:: /_static/markers/m37.png
é    )ÚSizedNé   )Ú_apiÚcbookÚrcParams)ÚPath)ÚIdentityTransformÚAffine2D)Ú	JoinStyleÚCapStyleé   )r   é   c                   @   s`  e Zd ZdZi dd“dd“dd“dd	“d
d“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd“d d!“d"d#“i d$d%“d&d&“d'd(“d)d*“d+d,“d-d.“d/d0“d1d2“ed3“ed4“ed5“ed6“ed7“e	d8“e
d9“ed:“ed;“¥ed<ed=ed>d?d@dAd@dBd@dCd@i¥ZdDZdEZdFZdGZdÝdHdI„ZdJdK„ ZdLdM„ ZdNdO„ ZdPdQ„ ZejdRdSdTdUdV„ ƒZdWdX„ ZdYdZ„ Zd[d\„ Zd]d^„ Z ejdRdSdTd_d`„ ƒZ!dadb„ Z"dcdd„ Z#dedf„ Z$dgdh„ Z%didj„ Z&dkdl„ Z'dmdn„ Z(dodp„ Z)dqdr„ Z*dsdt„ Z+dudv„ Z,dwdx„ Z-dydz„ Z.dÞd|d}„Z/d~d„ Z0d€d„ Z1e2d‚dƒgd„d„gdƒd„gd‚dƒggd…d†Z3e2d‚dƒgd‡dˆgd‰dˆgd‚dƒggd…d†Z4e2d‡dˆgd‰dˆgdƒd„gd„d„gd‡dˆggd…d†Z5e2d‚dƒgd‚d„gd„d„gd‚dƒggd…d†Z6e2d‚dƒgd‚d„gdƒd„gd‚dƒggd…d†Z7dŠd‹„ Z8dŒd„ Z9dŽd„ Z:dd‘„ Z;d’d“„ Z<d”d•„ Z=d–d—„ Z>d˜d™„ Z?dšd›„ Z@dœd„ ZAdždŸ„ ZBd d¡„ ZCd¢d£„ ZDe2d¤d¥gd¤d{ggƒZEd¦d§„ ZFd¨d©„ ZGe2d¤d¤gd{d¤ggƒZHdªd«„ ZId¬d­„ ZJe2d®d¤gd®d{ggƒZKd¯d°„ ZLd±d²„ ZMe2d¤d¤gd¤d¥gd¤d¤gd³dGgd¤d¤gd´dGgge2jNe2jOe2jNe2jOe2jNe2jOgƒZPdµd¶„ ZQd·d¸„ ZRd¹dº„ ZSd»d¼„ ZTe2d¥d½gd¤d¤gd{d½ggƒZUd¾d¿„ ZVdÀdÁ„ ZWdÂdÃ„ ZXdÄdÅ„ ZYe2d¥d¤gd¤dÆgd{d‚ggƒZZdÇdÈ„ Z[dÉdÊ„ Z\dËdÌ„ Z]dÍdÎ„ Z^e2d¥d¤gd{d¤gd¤d¥gd¤d{gge2jNe2jOe2jNe2jOgƒZ_dÏdÐ„ Z`e2d¥d¥gd{d{gd¥d{gd{d¥gge2jNe2jOe2jNe2jOgƒZadÑdÒ„ Zbe2ec dg dÓ¢¡dÔ d…d†Zee2ec dg dÕ¢¡dÔ d…d†ZfdÖd×„ Zge2ec dg dØ¢¡dÙ d…d†Zhe2ec dg dÚ¢¡dÙ d…d†ZidÛdÜ„ ZjdAS )ßÚMarkerStyleae  
    A class representing marker types.

    Instances are immutable. If you need to change anything, create a new
    instance.

    Attributes
    ----------
    markers : list
        All known markers.
    filled_markers : list
        All known filled markers. This is a subset of *markers*.
    fillstyles : list
        The supported fillstyles.
    Ú.Zpointú,ZpixelÚoZcircleÚvZtriangle_downú^Ztriangle_upú<Ztriangle_leftú>Ztriangle_rightÚ1Ztri_downÚ2Ztri_upÚ3Ztri_leftÚ4Z	tri_rightÚ8ZoctagonÚsZsquareÚpZpentagonÚ*ZstarÚhZhexagon1ÚHZhexagon2ú+ZplusÚxÚDZdiamondÚdZthin_diamondú|ZvlineÚ_ZhlineÚPZplus_filledÚXZx_filledZtickleftZ	tickrightZtickupZtickdownZ	caretleftZ
caretrightZcaretupZ	caretdownZcaretleftbaseZcaretrightbaseZcaretupbaseZcaretdownbaseÚNoneZnothingNú Ú )r   r   r   r   r   r   r   r   r   r   r   r"   r#   r&   r'   )ZfullÚleftÚrightÚbottomÚtopÚnone)r+   r,   r-   r.   ç      à?c                 C   s   d| _ |  |¡ |  |¡ dS )aò  
        Parameters
        ----------
        marker : str, array-like, Path, MarkerStyle, or None, default: None
            - Another instance of *MarkerStyle* copies the details of that
              ``marker``.
            - *None* means no marker.
            - For other possible marker values see the module docstring
              `matplotlib.markers`.

        fillstyle : str, default: :rc:`markers.fillstyle`
            One of 'full', 'left', 'right', 'bottom', 'top', 'none'.
        N)Ú_marker_functionÚ_set_fillstyleÚ_set_marker)ÚselfÚmarkerÚ	fillstyle© r7   ú4/usr/lib/python3/dist-packages/matplotlib/markers.pyÚ__init__Û   s   
zMarkerStyle.__init__c                 C   sV   | j d u rd S t| _tƒ | _d | _d | _d | _tj	| _
tj| _| jdk| _|   ¡  d S )Nr/   )r1   Ú_empty_pathÚ_pathr   Ú
_transformÚ	_alt_pathÚ_alt_transformÚ_snap_thresholdr
   ÚroundÚ
_joinstyler   ZbuttÚ	_capstyleÚ
_fillstyleÚ_filled©r4   r7   r7   r8   Ú_recacheí   s   
zMarkerStyle._recachec                 C   s   t t| jjƒƒS ©N)ÚboolÚlenr;   ÚverticesrE   r7   r7   r8   Ú__bool__ý   ó   zMarkerStyle.__bool__c                 C   ó   | j S rG   ©rD   rE   r7   r7   r8   Ú	is_filled   ó   zMarkerStyle.is_filledc                 C   rM   rG   )rC   rE   r7   r7   r8   Úget_fillstyle  rP   zMarkerStyle.get_fillstylez3.4za new marker)Zalternativec                 C   ó
   |   |¡S rG   )r2   ©r4   r6   r7   r7   r8   Úset_fillstyle  ó   
zMarkerStyle.set_fillstylec                 C   s2   |du rt d }tj| j|d || _|  ¡  dS )zï
        Set the fillstyle.

        Parameters
        ----------
        fillstyle : {'full', 'left', 'right', 'bottom', 'top', 'none'}
            The part of the marker surface that is colored with
            markerfacecolor.
        Nzmarkers.fillstyle)r6   )r   r   Zcheck_in_listÚ
fillstylesrC   rF   rS   r7   r7   r8   r2   
  s
   
zMarkerStyle._set_fillstylec                 C   rM   rG   )rA   rE   r7   r7   r8   Úget_joinstyle  rP   zMarkerStyle.get_joinstylec                 C   rM   rG   )rB   rE   r7   r7   r8   Úget_capstyle  rP   zMarkerStyle.get_capstylec                 C   rM   rG   )Ú_markerrE   r7   r7   r8   Ú
get_marker   rP   zMarkerStyle.get_markerc                 C   rR   rG   )r3   )r4   r5   r7   r7   r8   Ú
set_marker#  rU   zMarkerStyle.set_markerc              
   C   s6  t |tjƒr|jdkr|jd dkr| j| _ntt |tƒr&t 	|¡r&| j
| _net |tƒr0| j| _n[t |tƒrFt|ƒdv rF|d dv rF| j| _nEt |tjtfƒs_|| jv r_t| d| j|  ƒ| _n,t |tƒrl| j |j¡ nz
t|ƒ | j| _W n tyŠ } ztd |¡ƒ|‚d}~ww t |tƒs™|| _|  ¡  dS dS )a‹  
        Set the marker.

        Parameters
        ----------
        marker : str, array-like, Path, MarkerStyle, or None, default: None
            - Another instance of *MarkerStyle* copies the details of that
              ``marker``.
            - *None* means no marker.
            - For other possible marker values see the module docstring
              `matplotlib.markers`.
        r   r   )r   é   )r   r   r   Z_set_zUnrecognized marker style {!r}N)Ú
isinstanceÚnpZndarrayÚndimÚshapeÚ_set_verticesr1   Ústrr   Zis_math_textÚ_set_mathtext_pathr   Ú_set_path_markerr   rI   Ú_set_tuple_markerÚlistÚmarkersÚgetattrr   Ú__dict__ÚupdateÚ
ValueErrorÚformatrY   rF   )r4   r5   Úerrr7   r7   r8   r3   '  sF   ÿ




ÿ
ÿÿ
ÿÿ€ÿ
þzMarkerStyle._set_markerc                 C   rM   )zÏ
        Return a `.Path` for the primary part of the marker.

        For unfilled markers this is the whole marker, for filled markers,
        this is the area to be drawn with *markerfacecolor*.
        )r;   rE   r7   r7   r8   Úget_pathP  ó   zMarkerStyle.get_pathc                 C   ó
   | j  ¡ S )zj
        Return the transform to be applied to the `.Path` from
        `MarkerStyle.get_path()`.
        )r<   ÚfrozenrE   r7   r7   r8   Úget_transformY  ó   
zMarkerStyle.get_transformc                 C   rM   )zË
        Return a `.Path` for the alternate part of the marker.

        For unfilled markers, this is *None*; for filled markers, this is the
        area to be drawn with *markerfacecoloralt*.
        )r=   rE   r7   r7   r8   Úget_alt_path`  ro   zMarkerStyle.get_alt_pathc                 C   rp   )zn
        Return the transform to be applied to the `.Path` from
        `MarkerStyle.get_alt_path()`.
        )r>   rq   rE   r7   r7   r8   Úget_alt_transformi  rs   zMarkerStyle.get_alt_transformc                 C   rM   rG   )r?   rE   r7   r7   r8   Úget_snap_thresholdp  rP   zMarkerStyle.get_snap_thresholdc                 C   s
   d| _ d S )NFrN   rE   r7   r7   r8   Ú_set_nothings  s   
zMarkerStyle._set_nothingc                 C   s.   t  t  |j¡¡}tƒ  d| ¡| _|| _d S )Nr0   )r^   ÚmaxÚabsrJ   r	   Úscaler<   r;   )r4   ÚpathZrescaler7   r7   r8   Ú_set_custom_markerv  s   
zMarkerStyle._set_custom_markerc                 C   s   |   | j¡ d S rG   )r|   rY   rE   r7   r7   r8   rd   {  rL   zMarkerStyle._set_path_markerc                 C   s   |   t| jƒ¡ d S rG   )r|   r   rY   rE   r7   r7   r8   ra   ~  s   zMarkerStyle._set_verticesc                 C   sÎ   | j }t|ƒdkr|d d}}nt|ƒdkr |d |d }}|d }|dkr3t |¡| _tj| _n(|dkrBt |¡| _tj	| _n|dkrTt 
|¡| _d| _tj	| _ntd|› ƒ‚tƒ  d¡ |¡| _d S )	Nr   r   ç        r\   r   FzUnexpected tuple marker: r0   )rY   rI   r   Úunit_regular_polygonr;   r
   ÚmiterrA   Úunit_regular_starÚbevelZunit_regular_asteriskrD   rk   r	   rz   Ú
rotate_degr<   )r4   r5   ZnumsidesZrotationZsymstyler7   r7   r8   re     s$   


zMarkerStyle._set_tuple_markerc           
      C   s´   ddl m} |d|  ¡ td d}t|jƒdkrdS |jjdd\}}|jjdd\}}|| }|| }t||ƒ}	tƒ  	| d|   | d|   ¡ 
d	|	 ¡| _|| _d
| _dS )z`
        Draw mathtext markers '$...$' using TextPath object.

        Submitted by tcb
        r   )ÚTextPath)r   r   ztext.usetex)Zxyr   ZusetexN)Zaxisr0   ç      ð?F)Zmatplotlib.textrƒ   rZ   r   rI   rJ   Úminrx   r	   Ú	translaterz   r<   r;   Z_snap)
r4   rƒ   ÚtextZxminZyminZxmaxZymaxÚwidthZheightZmax_dimr7   r7   r8   rc   –  s"   
ÿ
 
þ
zMarkerStyle._set_mathtext_pathc                 C   s   |   ¡ | jv S rG   )rQ   Ú_half_fillstylesrE   r7   r7   r8   Ú
_half_fill°  s   zMarkerStyle._half_fillr„   c                 C   sx   t ƒ  d| ¡| _tj| _|  ¡ st ¡ | _	d S t 
¡  | _	| _|  ¡ }| j dddddœ| ¡ | j ¡  d¡| _d S )Nr0   r   éZ   é´   é  ©r,   r.   r+   r-   ç     €f@)r	   rz   r<   r^   Úinfr?   rŠ   r   Zunit_circler;   Zunit_circle_righthalfr=   rQ   r‚   rq   r>   )r4   Ú	reductionÚfsr7   r7   r8   Ú_set_circle³  s   ÿzMarkerStyle._set_circlec                 C   s$   t  ¡ | _tƒ  dd¡| _d | _d S )Ng9î”Öÿß¿)r   Úunit_rectangler;   r	   r†   r<   r?   rE   r7   r7   r8   Ú
_set_pixel¿  s   


zMarkerStyle._set_pixelc                 C   s   | j | jd d S )N)r‘   )r“   Ú_point_size_reductionrE   r7   r7   r8   Ú
_set_pointÍ  s   zMarkerStyle._set_pointr   r   éÿÿÿÿT)Úclosedg333333ã¿gš™™™™™É¿ç333333ã?c                 C   s
  t ƒ  d¡ |¡| _d| _|  ¡ s| j| _ni| j| j	| j
| jg}|  ¡ }|dkr;|d| d  | _|d| d  | _n@|dkrR|d| d  | _|d| d  | _n)|dkri|d	| d  | _|d
| d  | _n|d
| d  | _|d	| d  | _| j| _tj| _d S )Nr0   ç      @r.   r   é   r   r-   r+   r   r\   )r	   rz   r‚   r<   r?   rŠ   Ú_triangle_pathr;   Ú_triangle_path_uÚ_triangle_path_lÚ_triangle_path_dÚ_triangle_path_rrQ   r=   r>   r
   r   rA   )r4   ZrotÚskipZmpathsr’   r7   r7   r8   Ú_set_triangleÚ  s.   
ýzMarkerStyle._set_trianglec                 C   ó   |   dd¡S )Nr}   r   ©r£   rE   r7   r7   r8   Ú_set_triangle_upø  ó   zMarkerStyle._set_triangle_upc                 C   r¤   )Nr   r   r¥   rE   r7   r7   r8   Ú_set_triangle_downû  r§   zMarkerStyle._set_triangle_downc                 C   r¤   )Ng     €V@r\   r¥   rE   r7   r7   r8   Ú_set_triangle_leftþ  r§   zMarkerStyle._set_triangle_leftc                 C   r¤   )Ng     àp@r   r¥   rE   r7   r7   r8   Ú_set_triangle_right  r§   zMarkerStyle._set_triangle_rightc                 C   s´   t ƒ  dd¡| _d| _|  ¡ st ¡ | _n?tddgddgddgddgddggƒ| _tddgddgddgddgddggƒ| _|  	¡ }dddd	d
œ| }| j 
|¡ | j| _tj| _d S )Nç      à¿ç       @r}   r„   r0   r   r‹   rŒ   r   )r-   r,   r.   r+   )r	   r†   r<   r?   rŠ   r   r”   r;   r=   rQ   r‚   r>   r
   r   rA   ©r4   r’   Úrotater7   r7   r8   Ú_set_square  s   ÿÿzMarkerStyle._set_squarec                 C   s®   t ƒ  dd¡ d¡| _d| _|  ¡ st ¡ | _n9tddgddgddgddggƒ| _tddgddgddgddggƒ| _	|  
¡ }ddddd	œ| }| j |¡ | j| _tj| _d S )
Nr«   é-   r›   r   r   r‹   rŒ   r   rŽ   )r	   r†   r‚   r<   r?   rŠ   r   r”   r;   r=   rQ   r>   r
   r   rA   r­   r7   r7   r8   Ú_set_diamond  s   ""zMarkerStyle._set_diamondc                 C   s   |   ¡  | j dd¡ d S )Nrš   r„   )r±   r<   rz   rE   r7   r7   r8   Ú_set_thin_diamond$  ó   zMarkerStyle._set_thin_diamondc                 C   sø   t ƒ  d¡| _d| _t d¡}|  ¡ s|| _n_|j}dt	 
d¡ d }t|g d¢ ƒ}t|g d¢ ƒ}t|d |d |d	 d| g|d gƒ}t|d |d
 |d d| g|d gƒ}||f||f||f||fdœ|  ¡  \| _| _| j| _tj| _d S )Nr0   r›   é   r   ç      @)r   r   rœ   r   )r   r   r\   rœ   r   r   r   rœ   r\   ©r.   r-   r+   r,   )r	   rz   r<   r?   r   r~   rŠ   r;   rJ   r^   ÚsqrtrQ   r=   r>   r
   r   rA   )r4   ÚpolypathÚvertsÚyr.   r-   r+   r,   r7   r7   r8   Ú_set_pentagon(  s$   
((þýzMarkerStyle._set_pentagonc                 C   s  t ƒ  d¡| _d| _tjddd}|  ¡ s|| _nl|j}tt	 
|dd… |dd	… |dd
… g¡ƒ}tt	 
|dd… |dd… g¡ƒ}tt	 
|dd… |dd
… g¡ƒ}tt	 
|dd
… |dd	… |dd
… g¡ƒ}||f||f||f||fdœ|  ¡  \| _| _| j| _tj| _d S )Nr0   r›   r´   gœÅ‹…!rØ?)ZinnerCircler   rœ   é   é
   r   r\   é   é   r¶   )r	   rz   r<   r?   r   r€   rŠ   r;   rJ   r^   ÚconcatenaterQ   r=   r>   r
   r   rA   )r4   r¸   r¹   r.   r-   r+   r,   r7   r7   r8   Ú	_set_star?  s"   ,"",þýzMarkerStyle._set_starc                 C   s  t ƒ  d¡| _d | _t d¡}|  ¡ s|| _ne|j}t	 
t	 dt	j d ¡¡}tt	 | dfg|g d¢ |dfgg¡ƒ}tt	 | dfg|dd… |dfgg¡ƒ}t|dd… ƒ}t|g d	¢ ƒ}||f||f||f||fd
œ|  ¡  \| _| _| j| _tj| _d S )Nr0   r¿   r´   g      @r   )r   r   r´   r   rœ   )r   r´   rœ   r\   r¶   )r	   rz   r<   r?   r   r~   rŠ   r;   rJ   r^   ry   ZcosZpirÀ   rQ   r=   r>   r
   r   rA   )r4   r¸   r¹   r!   r.   r-   r+   r,   r7   r7   r8   Ú_set_hexagon1U  s$   
**þýzMarkerStyle._set_hexagon1c           	      C   s  t ƒ  d¡ d¡| _d | _t d¡}|  ¡ s|| _nh|j	}t
 d¡d d}}t|g d¢ ƒ}t|dd	… ƒ}tt
 ||fg|d d… | | f||fgg¡ƒ}tt
 ||fg|d	d
d… | | fgg¡ƒ}||f||f||f||fdœ|  ¡  \| _| _| j| _tj| _d S )Nr0   é   r¿   r\   rœ   g      è?)r   r   r´   rœ   r   r   r´   r   r˜   r¶   )r	   rz   r‚   r<   r?   r   r~   rŠ   r;   rJ   r^   r·   rÀ   rQ   r=   r>   r
   r   rA   )	r4   r¸   r¹   r!   rº   r.   r-   r+   r,   r7   r7   r8   Ú_set_hexagon2m  s,   
$ÿ ÿþýzMarkerStyle._set_hexagon2c              	   C   sÈ   t ƒ  d¡| _d| _t d¡}|  ¡ s| j d¡ || _nAt	 
d¡d }tddgdd	g| d	gd|gd| g| dgddggƒ | _| _|  ¡ }| j dd
dddœ| ¡ | j ¡  d¡| _tj| _d S )Nr0   r›   r¾   g     €6@r¬   rµ   r   r˜   r   r‹   rŒ   r   )r+   r-   r,   r.   r   )r	   rz   r<   r?   r   r~   rŠ   r‚   r;   r^   r·   r=   rQ   rq   r>   r
   r   rA   )r4   r¸   r!   r’   r7   r7   r8   Ú_set_octagon‡  s$   
ÿÿÿzMarkerStyle._set_octagonr}   ç      ð¿c                 C   ó&   t ƒ  d¡| _d| _d| _| j| _d S ©Nr0   r„   F)r	   rz   r<   r?   rD   Ú_line_marker_pathr;   rE   r7   r7   r8   Ú
_set_vlinež  ó   zMarkerStyle._set_vlinec                 C   ó   |   ¡  | j d¡| _d S ©Nr‹   )rÊ   r<   r‚   rE   r7   r7   r8   Ú
_set_hline¤  r³   zMarkerStyle._set_hlinec                 C   s(   t ƒ  dd¡| _d| _d| _| j| _d S )NrÆ   r„   F©r	   rz   r<   r?   rD   Ú_tickhoriz_pathr;   rE   r7   r7   r8   Ú_set_tickleftª  ó   zMarkerStyle._set_tickleftc                 C   ó(   t ƒ  dd¡| _d| _d| _| j| _d S ©Nr„   FrÏ   rE   r7   r7   r8   Ú_set_tickright°  rÒ   zMarkerStyle._set_tickrightg       €c                 C   rÓ   rÔ   ©r	   rz   r<   r?   rD   Ú_tickvert_pathr;   rE   r7   r7   r8   Ú_set_tickup¸  rÒ   zMarkerStyle._set_tickupc                 C   s(   t ƒ  dd¡| _d| _d| _| j| _d S )Nr„   rÆ   FrÖ   rE   r7   r7   r8   Ú_set_tickdown¾  rÒ   zMarkerStyle._set_tickdowngš™™™™™é?gš™™™™™é¿c                 C   rÇ   )Nr0   r›   F)r	   rz   r<   r?   rD   Ú	_tri_pathr;   rE   r7   r7   r8   Ú_set_tri_downË  rË   zMarkerStyle._set_tri_downc                 C   rÌ   ©NrŒ   ©rÛ   r<   r‚   rE   r7   r7   r8   Ú_set_tri_upÑ  r³   zMarkerStyle._set_tri_upc                 C   rÌ   ©Nr   rÝ   rE   r7   r7   r8   Ú_set_tri_leftÕ  r³   zMarkerStyle._set_tri_leftc                 C   rÌ   rÍ   rÝ   rE   r7   r7   r8   Ú_set_tri_rightÙ  r³   zMarkerStyle._set_tri_rightg      ø?c                 C   s.   t ƒ  d¡| _d| _d| _| j| _tj| _	d S ©Nr0   g      @F)
r	   rz   r<   r?   rD   Ú_caret_pathr;   r
   r   rA   rE   r7   r7   r8   Ú_set_caretdownß  s
   zMarkerStyle._set_caretdownc                 C   rÌ   rÜ   ©rä   r<   r‚   rE   r7   r7   r8   Ú_set_caretupæ  r³   zMarkerStyle._set_caretupc                 C   rÌ   rß   rå   rE   r7   r7   r8   Ú_set_caretleftê  r³   zMarkerStyle._set_caretleftc                 C   rÌ   rÍ   rå   rE   r7   r7   r8   Ú_set_caretrightî  r³   zMarkerStyle._set_caretrightg      ø¿c                 C   s   |   ¡  | j| _d S rG   )rä   Ú_caret_path_baser;   rE   r7   r7   r8   Ú_set_caretdownbaseô  s   zMarkerStyle._set_caretdownbasec                 C   rÌ   rÜ   ©rê   r<   r‚   rE   r7   r7   r8   Ú_set_caretupbaseø  r³   zMarkerStyle._set_caretupbasec                 C   rÌ   rß   rë   rE   r7   r7   r8   Ú_set_caretleftbaseü  r³   zMarkerStyle._set_caretleftbasec                 C   rÌ   rÍ   rë   rE   r7   r7   r8   Ú_set_caretrightbase   r³   zMarkerStyle._set_caretrightbasec                 C   rÇ   rÈ   )r	   rz   r<   r?   rD   Ú
_plus_pathr;   rE   r7   r7   r8   Ú	_set_plus	  rË   zMarkerStyle._set_plusc                 C   rÇ   râ   )r	   rz   r<   r?   rD   Ú_x_pathr;   rE   r7   r7   r8   Ú_set_x  rË   zMarkerStyle._set_x)©r˜   éýÿÿÿ)r   rô   )r   r˜   )r\   r˜   ©r\   r   ©r   r   ©r   r\   ©r˜   r\   ©r˜   r   ©rô   r   )rô   r˜   )r˜   r˜   ró   r¿   )	©r\   r   rõ   rö   r÷   rø   rù   rú   )rô   r   rû   c                 C   óp   t ƒ | _d| _tj| _|  ¡ s| j| _d S | j	 | _| _
|  ¡ }| j dddddœ| ¡ | j ¡  d¡| _d S ©Nr›   r   r‹   rŒ   r   )r.   r+   r-   r,   )r	   r<   r?   r
   r   rA   rŠ   Ú_plus_filled_pathr;   Ú_plus_filled_path_tr=   rQ   r‚   rq   r>   ©r4   r’   r7   r7   r8   Ú_set_plus_filled#  ó   ÿzMarkerStyle._set_plus_filled)©r˜   éþÿÿÿ)r   r˜   )r   r  )r   r˜   ©r   r   ©r   r   ©r   r   ©r   r   ©r˜   r   ©r  r   ©r˜   r   )r  r˜   r  rœ   )r  r  r  r  r	  r
  r  r  c                 C   rü   rý   )r	   r<   r?   r
   r   rA   rŠ   Ú_x_filled_pathr;   Ú_x_filled_path_tr=   rQ   r‚   rq   r>   r   r7   r7   r8   Ú_set_x_filled;  r  zMarkerStyle._set_x_filled)NN)r„   )kÚ__name__Ú
__module__Ú__qualname__Ú__doc__ÚTICKLEFTÚ	TICKRIGHTÚTICKUPÚTICKDOWNÚ	CARETLEFTÚ
CARETRIGHTÚCARETUPÚ	CARETDOWNÚCARETLEFTBASEÚCARETRIGHTBASEÚCARETUPBASEÚCARETDOWNBASErg   Zfilled_markersrV   r‰   r–   r9   rF   rK   rO   rQ   r   Z
deprecatedrT   r2   rW   rX   rZ   r[   r3   rn   rr   rt   ru   rv   rw   r|   rd   ra   re   rc   rŠ   r“   r•   r—   r   r   rž   r    rŸ   r¡   r£   r¦   r¨   r©   rª   r¯   r±   r²   r»   rÁ   rÂ   rÄ   rÅ   rÉ   rÊ   rÎ   rÐ   rÑ   rÕ   r×   rØ   rÙ   ZMOVETOZLINETOrÚ   rÛ   rÞ   rà   rá   rã   rä   ræ   rç   rè   ré   rê   rì   rí   rî   rï   rð   rñ   rò   r^   Zarrayrþ   rÿ   r  r  r  r  r7   r7   r7   r8   r   ’   s¢   ÿþýüûúùø	÷
öõôóòñðïîíìëêéèçæåäãâá à!ß"Þ#×.


)		
$ÿ þ$$þþýÿÿþÿÿþþýþýþüÿýr   )!r  Zcollections.abcr   Znumpyr^   r*   r   r   r   r{   r   Z
transformsr   r	   Z_enumsr
   r   Úranger  r  r  r  r  r  r  r  r  r  r  r  Úemptyr:   r   r7   r7   r7   r8   Ú<module>   s     
þ