| Server IP : 35.80.110.71 / Your IP : 216.73.216.46 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/matplotlib/__pycache__/ |
Upload File : |
�
G8�cJ � �� � d Z ddlmZmZ ddlmZ G d� de� Z G d� dee� Zdd j eD � cg c] } d
| j � d
��� c} � z dz e_ G d� d
ee� Zdd j eD �cg c] }d
|j � d
��� c}� z dz e_ ej j ej ej d�� yc c} w c c}w )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�auto)�
_docstringc � � e Zd ZdZd� Zd� Zy)�_AutoStringNameEnumz<Automate the ``name = 'name'`` part of making a (str, Enum).c � � | S �N� )�name�start�count�last_valuess �3/usr/lib/python3/dist-packages/matplotlib/_enums.py�_generate_next_value_z)_AutoStringNameEnum._generate_next_value_ s � ��� c �4 � t | � j � S r )�str�__hash__)�selfs r r z_AutoStringNameEnum.__hash__ s � ��4�y�!�!�#�#r N)�__name__�
__module__�__qualname__�__doc__r r r
r r r r s � �F��$r r c �J � e Zd ZdZ e� Z e� Z e� Zed� � Z y)� JoinStylea�
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()
c �� �� ddl �ddlm} �fd�}| j dd�� \ }}|j d� t g d�� D ]U \ }}|j
|d |� t g d
�� D ]- \ }} ||||||� |dk( s�|j
d||� d�� �/ �W |j d
d� |j dd� |j � |j � y)z=Demonstrate how each JoinStyle looks for various join angles.r Nc �$ �� �j |� }|dz ||d�j |� z z g}|||d�j |� z z g}| j ||dd|�� | j ||dd�� | j |d |d dd d
�� y )N� �?� �tab:blue)�lw�color�solid_joinstyle� �black�r! r"