
    h              	          S r SSKJr  SSKJr   " S S\\5      rSSR                  \ V s/ s H  n SU R                   S3PM     sn 5      -   S	-   \l	         " S
 S\\5      r
SSR                  \
 Vs/ s H  nSUR                   S3PM     sn5      -   S	-   \
l	        \R                  R                  \R                  \
R                  S9  gs  sn f s  snf )a  
Enums representing sets of strings that Matplotlib uses as input parameters.

Matplotlib often uses simple data types like strings or tuples to define a
concept; e.g. the line capstyle can be specified as one of 'butt', 'round',
or 'projecting'. The classes in this module are used internally and serve to
document these concepts formally.

As an end-user you will not use these classes directly, but only the values
they define.
    )Enum)
_docstringc                   4    \ rS rSrSrSrSrSr\S 5       r	Sr
g)		JoinStyle   a  
Define how the connection between two line segments is drawn.

For a visual impression of each *JoinStyle*, `view these docs online
<JoinStyle>`, or run `JoinStyle.demo`.

Lines in Matplotlib are typically defined by a 1D `~.path.Path` and a
finite ``linewidth``, where the underlying 1D `~.path.Path` represents the
center of the stroked line.

By default, `~.backend_bases.GraphicsContextBase` defines the boundaries of
a stroked line to simply be every point within some radius,
``linewidth/2``, away from any point of the center line. However, this
results in corners appearing "rounded", which may not be the desired
behavior if you are drawing, for example, a polygon or pointed star.

**Supported values:**

.. rst-class:: value-list

    'miter'
        the "arrow-tip" style. Each boundary of the filled-in area will
        extend in a straight line parallel to the tangent vector of the
        centerline at the point it meets the corner, until they meet in a
        sharp point.
    'round'
        stokes every point within a radius of ``linewidth/2`` of the center
        lines.
    'bevel'
        the "squared-off" style. It can be thought of as a rounded corner
        where the "circular" part of the corner has been cut off.

.. note::

    Very long miter tips are cut off (to form a *bevel*) after a
    backend-dependent limit called the "miter limit", which specifies the
    maximum allowed ratio of miter length to line width. For example, the
    PDF backend uses the default value of 10 specified by the PDF standard,
    while the SVG backend does not even specify the miter limit, resulting
    in a default value of 4 per the SVG specification. Matplotlib does not
    currently allow the user to adjust this parameter.

    A more detailed description of the effect of a miter limit can be found
    in the `Mozilla Developer Docs
    <https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-miterlimit>`_

.. plot::
    :alt: Demo of possible JoinStyle's

    from matplotlib._enums import JoinStyle
    JoinStyle.demo()

miterroundbevelc            	        ^ SSK mSSKJn   U4S jnU R                  SSS9u  p#UR	                  S5        [        / SQ5       HU  u  pEUR                  US	U5        [        / S
Q5       H,  u  pgU" X4XgU5        US:X  d  M  UR                  SXg S35        M.     MW     UR                  SS5        UR                  SS5        UR                  5         UR                  5         g)z=Demonstrate how each JoinStyle looks for various join angles.r   Nc                 
  > TR                  U5      nUS-   XSTR                  U5      -  -   /nX"USTR                  U5      -  -   /nU R                  XgSSUS9  U R                  XgSSS9  U R                  US   US   SS	S
S9  g )N      ?   tab:blue)lwcolorsolid_joinstyle   blackr   r   otab:red   r   
markersize)radianscossinplot)	axxyanglestylephixxyynps	           C/var/www/html/env/lib/python3.13/site-packages/matplotlib/_enums.py
plot_angle"JoinStyle.demo.<locals>.plot_angleR   s    **U#Cb&!BFF3K/0BBrvvc{N*+BGGBrUGKGGBqG0GGBqE2a5#Y1GE    )      T)figsizeconstrained_layoutz
Join style)r   r	   r
   r,   )   -   <   Z   x   gz degreesg      g      @      g      @)numpymatplotlib.pyplotpyplotsubplots	set_title	enumeratetextset_xlimset_ylimset_axis_offshow)	pltr)   figr   r    r#   r!   r"   r'   s	           @r(   demoJoinStyle.demoL   s     	'	F ,,v$,G
\"!"=>HAGGAq% %&;<2!E26GGD!wh%78 = ? 	D$
C

r+    N)__name__
__module____qualname____firstlineno____doc__r   r	   r
   staticmethodrC   __static_attributes__rE   r+   r(   r   r      s+    4l EEE r+   r   {z, '}c                   4    \ rS rSrSrSrSrSr\S 5       r	Sr
g)	CapStylem   a  
Define how the two endpoints (caps) of an unclosed line are drawn.

How to draw the start and end points of lines that represent a closed curve
(i.e. that end in a `~.path.Path.CLOSEPOLY`) is controlled by the line's
`JoinStyle`. For all other lines, how the start and end points are drawn is
controlled by the *CapStyle*.

For a visual impression of each *CapStyle*, `view these docs online
<CapStyle>` or run `CapStyle.demo`.

By default, `~.backend_bases.GraphicsContextBase` draws a stroked line as
squared off at its endpoints.

**Supported values:**

.. rst-class:: value-list

    'butt'
        the line is squared off at its endpoint.
    'projecting'
        the line is squared off as in *butt*, but the filled in area
        extends beyond the endpoint a distance of ``linewidth/2``.
    'round'
        like *butt*, but a semicircular cap is added to the end of the
        line, of radius ``linewidth/2``.

.. plot::
    :alt: Demo of possible CapStyle's

    from matplotlib._enums import CapStyle
    CapStyle.demo()

butt
projectingr	   c            	         SSK Jn   U R                  SS9nUR                  / SQ5      nUR	                  S5        [        / SQ5       HY  u  p4UR                  US-   S	US
S9  X3S-   /nSS/nUR                  XVSSUS9  UR                  XVSSS9  UR                  XVSSSS9  M[     UR                  SS5        UR                  5         UR                  5         g)z=Demonstrate how each CapStyle looks for a thick line segment.r   N)r-   g333333?)r.   )r   r   r   g?z	Cap style)rS   r	   rT   g      ?g333333?center)har   r   r   )r   r   solid_capstyler   r   r   r   r   r   r   r5   g      ?)r7   r8   figureadd_axesr:   r;   r<   r   r>   r?   r@   )rA   rB   r   r    r#   r%   r&   s          r(   rC   CapStyle.demo   s     	(jjj*\\.)
[!!"ABHAGGAdFD%HG5sUBQBGGBrEGJGGBqG0GGBCyQG? C 	C

r+   rE   N)rF   rG   rH   rI   rJ   rS   rT   r	   rK   rC   rL   rE   r+   r(   rQ   rQ   m   s+    !D DJE r+   rQ   )r   rQ   N)rJ   enumr   
matplotlibr   strr   joinnameinput_descriptionrQ   interpdregister)jscss   00r(   <module>rf      s   
  !TT Tn "
))i8iq	^i8
9:
	 
:sD :z !
))h7hq	^h7
89
      ))''  K 9D 8s   C
2C
