| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 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 dl Z ddlmZ ddlmZ ddlmZmZmZ ddlm Z
ej dd �
� G d� de� � Z G d
� dee� Z
d� Zej G d� de� � Zy)� N� )�_api� )�FigureCanvasAgg)�
_BackendWx�_FigureCanvasWxBase�
FigureFrameWx)�NavigationToolbar2Wxz3.6z2FigureFrameWx(..., canvas_class=FigureCanvasWxAgg))�alternativec � � e Zd Zd� Zy)�FigureFrameWxAggc � � t | d|� S )N���)�FigureCanvasWxAgg)�self�figs �C/usr/lib/python3/dist-packages/matplotlib/backends/backend_wxagg.py�
get_canvaszFigureFrameWxAgg.get_canvas
s � � ��r�3�/�/� N)�__name__�
__module__�__qualname__r � r r r
r
s � �0r r
c � � e Zd ZdZdd�Zdd�Zy)r ad
The FigureCanvas contains the figure and does event handling.
In the wxPython backend, it is derived from wxPanel, and (usually)
lives inside a frame instantiated by a FigureManagerWx. The parent
window probably implements a wxSizer to control the displayed
control size - but we give a hint as to our preferred minimum
size.
Nc � � t j | � t | j � j � � | _ d| _ | j |�� y)z.
Render the figure using agg.
T)�drawDCN)r �draw�_rgba_to_wx_bitmap�get_renderer�buffer_rgba�bitmap�_isDrawn�gui_repaint)r r s r r zFigureCanvasWxAgg.draw sH � � ���T�"�(��):�):�)<�)H�)H�)J�K�����
������'r c �n � t | j � j � � }|�|| _ n�t j
|� }t j
| j � }t
|j � }t
| j j � |j z
� }|j ||t
|j � t
|j � |||� |j t j � |j t j � | j � y �N)r r r r! �wx�MemoryDC�int�x0� GetHeight�y1�Blit�width�height�SelectObject�
NullBitmapr# )r �bboxr! �srcDC�destDC�x�ys r �blitzFigureCanvasWxAgg.blit% s� � �#�D�$5�$5�$7�$C�$C�$E�F���<� �D�K��K�K��'�E��[�[����-�F��D�G�G��A��D�K�K�)�)�+�d�g�g�5�6�A��K�K��1�c�$�*�*�o�s�4�;�;�/?���1�M�����
�
�.����r�}�}�-����r r% )r r r �__doc__r r6 r r r r r s � ��(�
r r c �d � | j \ }}}t j j ||| � S )z&Convert an RGBA buffer to a wx.Bitmap.)�shaper&