OwlCyberSecurity - MANAGER
Edit File: backend_bases.cpython-38.pyc
U ��]O� � @ s� d Z ddlmZ ddlmZ ddlZddlZddlZddlZddl Z ddl Z ddlZddlm Z ddlZddlZddlmZmZmZmZmZmZmZmZmZmZ ddlmZ ddlm Z dd l!m"Z" z4dd l#m$Z$ ddl%m&Z& e&e$�dkr�d Z'ndZ'[$W n e(k �r dZ'Y nX e�)e*�Z+dddddddddd� Z,dddddddddd� Z-dNdd�Z.dd� Z/G d d!� d!e0�Z1G d"d#� d#e0�Z2G d$d%� d%e0�Z3G d&d'� d'e0�Z4G d(d)� d)e4�Z5G d*d+� d+e4�Z6G d,d-� d-e4�Z7G d.d/� d/e4�Z8G d0d1� d1e�Z9G d2d3� d3e8�Z:G d4d5� d5e4�Z;G d6d7� d7e8�Z<d8d9� Z=G d:d;� d;e0�Z>dOd<d=�Z?dPd>d?�Z@G d@dA� dAeA�ZBG dBdC� dCe0�ZCejDZDG dDdE� dEe0�ZEG dFdG� dGe0�ZFG dHdI� dIe0�ZGG dJdK� dKe0�ZHG dLdM� dMeH�ZIdS )Qab Abstract base classes define the primitives that renderers and graphics contexts must implement to serve as a matplotlib backend :class:`RendererBase` An abstract base class to handle drawing/rendering operations. :class:`FigureCanvasBase` The abstraction layer that separates the :class:`matplotlib.figure.Figure` from the backend specific details like a user interface drawing area :class:`GraphicsContextBase` An abstract base class that provides color, line styles, etc... :class:`Event` The base class for all of the matplotlib event handling. Derived classes such as :class:`KeyEvent` and :class:`MouseEvent` store the meta data like keys and buttons pressed, x and y locations in pixel and :class:`~matplotlib.axes.Axes` coordinates. :class:`ShowBase` The base class for the Show class of each interactive backend; the 'show' callable is then set to Show.__call__, inherited from ShowBase. :class:`ToolContainerBase` The base class for the Toolbar class of each interactive backend. :class:`StatusbarBase` The base class for the messaging area. � )�contextmanager)�IntEnumN)�WeakKeyDictionary) � backend_tools�cbook�colors�textpath� tight_bbox� transforms�widgets�get_backend�is_interactive�rcParams)�Gcf)�Affine2D)�Path)�PILLOW_VERSION)�LooseVersionz3.4TFZ PostscriptzEncapsulated PostscriptzPortable Document FormatzPGF code for LaTeXzPortable Network GraphicszRaw RGBA bitmapzScalable Vector Graphics) ZpsZepsZpdfZpgfZpng�rawZrgbaZsvgZsvgzzmatplotlib.backends.backend_pszmatplotlib.backends.backend_pdfzmatplotlib.backends.backend_pgf�matplotlib.backends.backend_aggzmatplotlib.backends.backend_svgc C s |dkrd}|t | <