| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/lib/python3.9/dist-packages/matplotlib/__pycache__/ |
Upload File : |
a
���hO � @ s� d Z ddlZddlZddlZddlmZmZ ddlmZ ddl m
Z
ddlmZmZm
Z
e�e�Zee
_G dd � d �Zd
dd
�dd�ZdS )a
A module for parsing a subset of the TeX math syntax and rendering it to a
Matplotlib backend.
For a tutorial of its usage, see :ref:`mathtext`. This
document is primarily concerned with implementation details.
The module uses pyparsing_ to parse the TeX expression.
.. _pyparsing: https://pypi.org/project/pyparsing/
The Bakoma distribution of the TeX Computer Modern fonts, and STIX
fonts are supported. There is experimental support for using
arbitrary fonts, but results may vary without proper tweaking and
metrics for those fonts.
� N)�_api� _mathtext)�LOAD_NO_HINTING)�FontProperties� )�RasterParse�VectorParse�get_unicode_indexc @ sX e Zd ZdZejejejejej ej
d�Zdd� Zddd�dd�Z
e�d �d
d� �ZdS )
�MathTextParserN)�cmZdejavuserifZ
dejavusansZstixZstixsansZcustomc C s t jdddd�|�� d�| _dS )a
Create a MathTextParser for the given backend *output*.
Parameters
----------
output : {"path", "agg"}
Whether to return a `VectorParse` ("path") or a
`RasterParse` ("agg", or its synonym "macosx").
�vector�raster)�pathZagg�macosx)�outputN)r �
check_getitem�lower�_output_type)�selfr � r �=/usr/local/lib/python3.9/dist-packages/matplotlib/mathtext.py�__init__0 s
�zMathTextParser.__init__�H ��antialiasedc C s0 |dur|� � nd}t�|d�}| �||||�S )a�
Parse the given math expression *s* at the given *dpi*. If *prop* is
provided, it is a `.FontProperties` object specifying the "default"
font to use in the math expression, used for all non-math text.
The results are cached, so multiple calls to `parse`
with the same expression should be fast.
Depending on the *output* type, this returns either a `VectorParse` or
a `RasterParse`.
Nztext.antialiased)�copy�mplZ
_val_or_rc�
_parse_cached)r �s�dpi�propr r r r �parse>