| Server IP : 35.80.110.71 / Your IP : 216.73.216.117 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�* � � � d Z ddlmZ ddlZddlmZ ddlZddlZddlm Z ddl
Z
ddlZddlZddl
Z
ddlZ ddlZddlZddlZddlZddlZddlmZ ddlmZ d d
lmZ d dlmZm Z G d� d
ejB � Z" e"� Z# G d� dejH � Z$ G d� dejJ � Z& G d� dejN jP � Z)d� Z*ejV G d� de� � Z,y# e$ rZ ed� e�dZ[ww xY w)z8
Displays Agg images in the browser, with interactivity
� )�contextmanagerN)�BytesIO)�Pathz$The WebAgg backend requires Tornado.)�_Backend)�Gcf� )�backend_webagg_core)�TimerAsyncio�TimerTornadoc � � e Zd Zd� Zy)�ServerThreadc �p � t j j j � j � y �N)�tornado�ioloop�IOLoop�instance�start��selfs �D/usr/lib/python3/dist-packages/matplotlib/backends/backend_webagg.py�runzServerThread.run, s! � ������&�&�(�.�.�0� N)�__name__�
__module__�__qualname__r � r r r
r
+ s � �1r r
c �$ � e Zd Zej Zy)�FigureManagerWebAggN)r r r �core�NavigationToolbar2WebAgg�_toolbar2_classr r r r r 3 s
� ��3�3�Or r c � � e Zd ZeZy)�FigureCanvasWebAggN)r r r r �
manager_classr r r r$ r$ 7 s � �'�Mr r$ c � � � e Zd ZdZdZ G d� dej j � Z G d� dej j � Z G d� dej j � Z
G d� d ej j � Z G d
� dej j � Z G d� d
ej j � Zd� fd� Zedd�� Zed� � Z� xZS )�WebAggApplicationFc � � e Zd Zd� Zy)�WebAggApplication.FavIconc � � | j dd� | j t t j � d� j � � y )N�Content-Typez image/pngzimages/matplotlib.png)�
set_header�writer �mpl�
get_data_path�
read_bytesr s r �getzWebAggApplication.FavIcon.get@ s9 � ��O�O�N�K�8��J�J�t�C�-�-�/�3�5�5?�Z�\�
Cr N�r r r r1 r r r �FavIconr) ? s � � Cr r3 c �* � � e Zd Zdd�� fd�
Zd� Z� xZS )�"WebAggApplication.SingleFigurePage� ��
url_prefixc �6 �� || _ t �| � ||fi |�� y r �r8 �super�__init__�r �application�requestr8 �kwargs� __class__s �r r<