| 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
���h�6 � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
mZ ddlZddl
Z
ddlZddlZddlZddlZddlZddlZzddlmZ W n ey� ddlmZ Y n0 ddlZddlmZmZ dd� Zdd � ZG d
d� d�Zdd
� ZG dd� d�ZG dd� de �Z!ej"d�dd�Z#dd� Z$dd� Z%dd� Z&dd� Z'd�dd �Z(d�d!d"�Z)d#d$� Z*ej+d%d&d'd(�d�d)d*�d+d,��Z,d-d.� Z-e*fd/d0�Z.e�/d%�G d1d2� d2��Z0G d3d4� d4�Z1d�d5d6�Z2ej3dfd7d8�Z4G d9d:� d:�Z5G d;d<� d<�Z6d=d>� Z7d?d@� Z8dAdB� Z9ddC�dDdE�Z:d�dGdH�Z;dIdJdKdLdM�Z<dNdO� e<�=� D �Z>dPdQ� Z?dRdS� Z@dTdU� ZAdVdW� ZBdXdY� ZCd�d[d\�ZDd]d^� ZEd_d`� ZFdadb� ZGdcdd� eEeEeFeGde�ZHdfdg� ZIdhdi� ZJdjdk� ZKdldm� ZLd�dndo�ZMejNdpdq� �ZOejPeQe�Rdr�ds�fdtdu�ZSdvdw� ZTdxdy� ZUdzd{� ZVd|d}� ZWd~d� ZXejNd�d�� �ZYG d�d�� d�ejZj[�Z\d�d�� Z]d�d�� Z^d�d�� Z_d�d�� Z`d�d�� Zad�d�� Zbd�d�� Zcd�d�� Zdd�d�� Zeejfd�d�d���Zgd�d�� Zhd�d�� Zid�d�� Zjd�d�� Zkd�d�� ZldS )�z�
A collection of utility functions and classes. Originally, many
(but not all) were from the Python Cookbook -- hence the name cbook.
� N)�Path)�VisibleDeprecationWarning)�_api�_c_internal_utilsc C s* t j�d�p.t j�d�p.t j�d�p.t j�d�} | rB| j�� rBdS t j�d�}|r�|jdkrtdd lm} |�� rtd
S |jdkr�|� � r�dS t j�d
�}|r�|�
� r�d
S t j�d�}|r�|jj|j
jjh}t �� �� D ] }|r�|j|v r� dS |j}q�q�~t j�d�}|�r|�� �rdS t�� �s&dS dS )a/
Return the interactive framework whose event loop is currently running, if
any, or "headless" if no event loop can be started, or None.
Returns
-------
Optional[str]
One of the following values: "qt", "gtk3", "gtk4", "wx", "tk",
"macosx", "headless", ``None``.
zPyQt6.QtWidgetszPySide6.QtWidgetszPyQt5.QtWidgetszPySide2.QtWidgetsZqtzgi.repository.Gtk� r )�GLibZgtk4� Zgtk3�wx�tkinterZtkzmatplotlib.backends._macosx�macosx�headlessN)�sys�modules�getZQApplication�instanceZ
MAJOR_VERSIONZ
gi.repositoryr Z
main_depthZ
main_levelZGetAppZmainloop�__code__ZMisc�_current_frames�values�f_code�f_backZevent_loop_is_runningr Zdisplay_is_valid)Z QtWidgetsZGtkr r r
�codes�framer � r �:/usr/local/lib/python3.9/dist-packages/matplotlib/cbook.py�"_get_running_interactive_framework# sF
�
�
�
r c C s t � dv r| �nt�� d S )N)r N)r � traceback� print_exc)�excr r r �_exception_printerU s
r c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�
_StrongRefzU
Wrapper similar to a weakref, but keeping a strong reference to the object.
c C s
|| _ d S �N��_obj)�self�objr r r �__init__a s z_StrongRef.__init__c C s | j S r r! �r# r r r �__call__d s z_StrongRef.__call__c C s t |t�o| j|jkS r )�
isinstancer r"