| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 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�c;� � �� � d Z ddlZddlmZ ddlZddlZddlZddl m
Z
mZ ddlm
Z
ddlmZmZ ddlmZmZ ed � \ ZZZZZZZZZZZZ e
ejB d
� � Z" G d� d� Z#y)
a�
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 ``"None"`` nothing
``" "`` 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``.
============================== ====== =========================================
As a deprecated feature, ``None`` also means 'nothing' when directly
constructing a `.MarkerStyle`, but note that there are other contexts where
``marker=None`` instead means "the default marker" (e.g. :rc:`scatter.marker`
for `.Axes.scatter`).
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)
Markers join and cap styles can be customized by creating a new instance of
MarkerStyle.
A MarkerStyle can also have a custom `~matplotlib.transforms.Transform`
allowing it to be arbitrarily rotated or offset.
Examples showing the use of markers:
* :doc:`/gallery/lines_bars_and_markers/marker_reference`
* :doc:`/gallery/lines_bars_and_markers/scatter_star_poly`
* :doc:`/gallery/lines_bars_and_markers/multivariate_marker_plot`
.. |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
� N)�Sized� )�_api�cbook)�Path)�IdentityTransform�Affine2D)� JoinStyle�CapStyle� )r � c � � e Zd ZdZi dd�dd�dd�dd �d
d�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d#�i d$d%�d&d&�d'd(�d)d*�d+d,�d-d.�d/d0�d1d2�ed3�ed4�ed5�ed6�ed7�e d8�e
d9�ed:�ed;��e
d<ed=ed>d?d@dAd@dBd@dCd@i�ZdDZdEZdFZ e� ZedGdGdGdGfdH�Z ej0 d�dI�� e_ dJ� ZdK� ZdL� ZdM� ZdN� ZdO� ZdP� Z dQ� Z!dR� Z"dS� Z#dT� Z$dU� Z%dV� Z&dW� Z'dX� Z(dYe)fdZ�Z*dGdGd[�d\�Z+d�d]�Z,d^� Z-d_� Z.d`� Z/da� Z0db� Z1dc� Z2dd� Z3d�df�Z4dg� Z5dh� Z6 e7jp didjgdkdkgdjdkgg� Z9 e7jp didjgdldmgdndmgg� Z: e7jp dldmgdndmgdjdkgdkdkgg� Z; e7jp didjgdidkgdkdkgg� Z< e7jp didjgdidkgdjdkgg� Z=do� Z>dp� Z?dq� Z@dr� ZAds� ZBdt� ZCdu� ZDdv� ZEdw� ZFdx� ZGdy� ZHdz� ZId{� ZJ e7d|d}gd|degg� ZKd~� ZLd� ZM e7d|d|gded|gg� ZNd�� ZOd�� ZP e7d�d|gd�degg� ZQd�� ZRd�� ZS e7d|d|gd|d}gd|d|gd�d�gd|d|gd�d�gge7j� e7j� e7j� e7j� e7j� e7j� g� ZVd�� ZWd�� ZXd�� ZYd�� ZZ e7d}d�gd|d|gded�gg� Z[d�� Z\d�� Z]d�� Z^d�� Z_ e7d}d|gd|d�gdedigg� Z`d�� Zad�� Zbd�� Zcd�� Zd e7d}d|gded|gd|d}gd|degge7j� e7j� e7j� e7j� g� Zed�� Zf e7d}d}gdedegd}degded}gge7j� e7j� e7j� e7j� g� Zgd�� Zh e7jp eij� g d��� d�z � Zk e7jp eij� g d��� d�z � Zld�� Zm e7jp eij� g d��� d�z � Zn e7jp eij� g d��� d�z � Zod�� ZpyG)��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.
�.�point�,�pixel�o�circle�v�
triangle_down�^�triangle_up�<�
triangle_left�>�triangle_right�1�tri_down�2�tri_up�3�tri_left�4� tri_right�8�octagon�s�square�p�pentagon�*�star�h�hexagon1�H�hexagon2�+�plus�x�D�diamond�d�thin_diamond�|�vline�_�hline�P�plus_filled�X�x_filled�tickleft� tickright�tickup�tickdown� caretleft�
caretright�caretup� caretdown�
caretleftbase�caretrightbase�caretupbase�
caretdownbase�None�nothing�none� � )r r r r r r&