| Server IP : 35.80.110.71 / Your IP : 216.73.216.170 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/backends/__pycache__/ |
Upload File : |
�
G8�c`S � �* � d Z ddlmZ ddlmZmZmZ ddlZddlZ ddl
Zddl
mZm
Z
ddlmZmZmZmZ ddlmZmZ ddlmZmZmZmZ dd lmZ dd
lmZ ddl m!Z!m"Z" ddl#m$Z% d
� Z& G d� de� Z$ G d� de� Z'ejP G d� de� � Z)y)a�
An `Anti-Grain Geometry`_ (AGG) backend.
Features that are implemented:
* capstyles and join styles
* dashes
* linewidth
* lines, rectangles, ellipses
* clipping to a rectangle
* output to RGBA and Pillow-supported image formats
* alpha blending
* DPI scaling properly - everything scales properly (dashes, linewidths, etc)
* draw polygon
* freetype2 w/ ft2font
Still TODO:
* integrate screen dpi w/ ppi and text
.. _Anti-Grain Geometry: http://agg.sourceforge.net/antigrain.com
� )�nullcontext)�radians�cos�sinN)�_api�cbook)�_Backend�FigureCanvasBase�FigureManagerBase�RendererBase)�fontManager�get_font)�LOAD_FORCE_AUTOHINT�LOAD_NO_HINTING�LOAD_DEFAULT�LOAD_NO_AUTOHINT)�MathTextParser)�Path)�Bbox�BboxBase)�RendererAggc � � t t t t t t t t t t d�
} | t j
d S )N)
�default�no_autohint�force_autohint�
no_hintingTF�either�native�auto�noneztext.hinting)r r r r �mpl�rcParams)�mappings �A/usr/lib/python3/dist-packages/matplotlib/backends/backend_agg.py�get_hinting_flagr% + s= � ��'�-�%�!���"�#���G� �3�<�<��/�0�0� c �� � � e Zd ZdZ ej
� Z� fd�Zd� Zd� Z d� Z
dd�Zd� Zdd �Z
d
� Zdd�d�Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zdd�Zd� Zd� Z� xZS )r z
The renderer handles all the drawing primitives using a graphics
context instance that controls the colors/styles
c �D �� t �| � � || _ || _ || _ t t
|� t
|� |� | _ g | _ | j � t d� | _ t j dd| j | j � | _ y )N�Aggr )�super�__init__�dpi�width�height�_RendererAgg�int� _renderer�_filter_renderers�_update_methodsr �mathtext_parserr �from_bounds�bbox)�selfr- r. r, � __class__s �r$ r+ zRendererAgg.__init__N s| �� �
���������
����%�c�%�j�#�f�+�s�C���!#�������-�e�4����$�$�Q��4�:�:�t�{�{�C�� r&