403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/matplotlib/backends/__pycache__/backend_mixed.cpython-312.pyc
�

G8�cW��D�ddlZddlmZddlmZddlmZGd�d�Zy)�N)�cbook�)�RendererAgg)�process_figure_for_rasterizingc�.�eZdZdZ		dd�Zd�Zd�Zd�Zy)�MixedModeRenderera&
    A helper class to implement a renderer that switches between
    vector and raster drawing.  An example may be a PDF writer, where
    most things are drawn with PDF vector commands, but some very
    complex objects, such as quad meshes, are rasterised and then
    output as images.
    Nc��|�t}||_||_||_||_||_d|_||_|j|_||_	||_
y)a%
        Parameters
        ----------
        figure : `matplotlib.figure.Figure`
            The figure instance.
        width : scalar
            The width of the canvas in logical units
        height : scalar
            The height of the canvas in logical units
        dpi : float
            The dpi of the canvas
        vector_renderer : `matplotlib.backend_bases.RendererBase`
            An instance of a subclass of
            `~matplotlib.backend_bases.RendererBase` that will be used for the
            vector drawing.
        raster_renderer_class : `matplotlib.backend_bases.RendererBase`
            The renderer class to use for the raster drawing.  If not provided,
            this will use the Agg backend (which is currently the only viable
            option anyway.)

        N)r�_raster_renderer_class�_width�_height�dpi�_vector_renderer�_raster_renderer�figure�_figdpi�_bbox_inches_restore�	_renderer)�selfr�width�heightr
�vector_renderer�raster_renderer_class�bbox_inches_restores        �C/usr/lib/python3/dist-packages/matplotlib/backends/backend_mixed.py�__init__zMixedModeRenderer.__init__s`��0!�(�$/�!�&;��#���������� /��� $���
����z�z���$7��!�(���c�.�t|j|�S)N)�getattrr)r�attrs  r�__getattr__zMixedModeRenderer.__getattr__>s���t�~�~�t�,�,rc�b�|j|j_|jr't|j|j�}||_|j	|j
|jz|j|jz|j�|_|j|_y)z�
        Enter "raster" mode.  All subsequent drawing commands (until
        `stop_rasterizing` is called) will be drawn with the raster backend.
        N)	r
rrrr
rrrr)r�rs  r�start_rasterizingz#MixedModeRenderer.start_rasterizingGs����(�(������$�$�.�t�{�{�/3�/H�/H�J�A�()�D�%� $� ;� ;��K�K���� �$�,�,�t�x�x�"7����!C����.�.��rc	���|j|_|j|jz}t	j
|jj��}tj|d�\}}|||f}|jr�|jj�}|jj||j|jz|jz||jz
|jz|jz|ddd��d|_|j|j _|j"r3t%|j |j"|j�}||_yy)z�
        Exit "raster" mode.  All of the drawing that was done since
        the last `start_rasterizing` call will be copied to the
        vector backend by calling draw_image.
        ).�N���)rrrr
�np�asarrayr�buffer_rgbar�_get_nonzero_slices�size�new_gc�
draw_image�startr�stoprrr)rr�img�slice_y�slice_x�cropped_img�gcr"s        r�stop_rasterizingz"MixedModeRenderer.stop_rasterizingWs0���.�.���������(���j�j��.�.�:�:�<�=�� �4�4�S��[�A�����'�7�*�+��������&�&�(�B�
�N�N�%�%���
�
����,�t�x�x�7��'�,�,�&�$�,�,�6����A��D�b�D�!�	
#�
!%����,�,������$�$�.�t�{�{�/3�/H�/H�/3�|�|�=�A�)*�D�%�	%r)NN)�__name__�
__module__�__qualname__�__doc__rr r#r5�rrrrs$���(,�%)�,)�\-�/�  *rr)	�numpyr'�
matplotlibr�backend_aggr�matplotlib._tight_bboxrrr:rr�<module>r?s����$�A�o*�o*r

Youez - 2016 - github.com/yon3zu
LinuXploit