| 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/tests/__pycache__/ |
Upload File : |
�
G8�c� � �X � d Z ddlZddlmZ ddlZddlmZ ddlm Z ddl
mZmZ d� Z
d� Zy) zL
Backend-loading machinery tests, using variations on the template backend.
� N)�SimpleNamespace)�pyplot)�backend_template)�FigureCanvasTemplate�FigureManagerTemplatec � � t j d� t t j � j
� t k( sJ �y )N�template)�mpl�use�type�plt�figure�canvasr � � �H/usr/lib/python3/dist-packages/matplotlib/tests/test_backend_template.py�test_load_templater s. � ��G�G�J����
�
��#�#�$�(<�<�<�<r c �n � t di t t � ��}t j j
d�d�|_ | j t j d|� t j d� t t j � j � t k( sJ �t j � y )N)�FigureClassc �8 � t t ||i |��� | � S )N)r r )�numr �args�kwargss r �<lambda>z#test_load_old_api.<locals>.<lambda> s$ � �� ��d�!=�f�!=�>�� E� r �mpl_test_backendzmodule://mpl_test_backendr )r �varsr r
r �Figure�new_figure_manager�setitem�sys�modulesr r r
r r �draw_if_interactive)�monkeypatchr s r �test_load_old_apir$ s� � �&�@��.>�)?�@��'*�z�z�'8�'8� E� �'� ������%7�9I�J��G�G�'�(���
�
��#�#�$�(<�<�<�<����r )�__doc__r �typesr �
matplotlibr
r r
�matplotlib.backendsr �$matplotlib.backends.backend_templater r r r$ r r r �<module>r* s* ��� � !� � $� 0�1�=�
r