OwlCyberSecurity - MANAGER
Edit File: offsetbox.cpython-38.pyc
U ��]�� � @ s� d Z ddlZddlmZmZmZ ddlmZ ddl mZ ddl mZ ddlmZ ddlmZ ddlmZ ddlmZmZmZ ddl mZ ddlmZmZmZ d Z d d� Zd0d d�Z!d1dd�Z"G dd� de j#�Z$G dd� de$�Z%G dd� de%�Z&G dd� de%�Z'G dd� de$�Z(G dd� de$�Z)G dd� de$�Z*G d d!� d!e$�Z+G d"d#� d#e$�Z,G d$d%� d%e,�Z-G d&d'� d'e$�Z.G d(d)� d)e j#e�Z/G d*d+� d+e0�Z1G d,d-� d-e1�Z2G d.d/� d/e1�Z3dS )2a� The OffsetBox is a simple container artist. The child artist are meant to be drawn at a relative position to its parent. The [VH]Packer, DrawingArea and TextArea are derived from the OffsetBox. The [VH]Packer automatically adjust the relative positions of their children, which should be instances of the OffsetBox. This is used to align similar artists together, e.g., in legend. The DrawingArea can contain any Artist as a child. The DrawingArea has a fixed width and height. The position of children relative to the parent is fixed. The TextArea is contains a single Text instance. The width and height of the TextArea instance is the width and height of the its child text. � N)�cbook� docstring�rcParams)�FontProperties)� BboxImage)�FancyBboxPatch�FancyArrowPatch�bbox_artist)�_AnnotationBase)�Bbox�BboxBase�TransformedBboxFc O s t rt| |� d S �N)�DEBUG�mbbox_artist)�args�kwargs� r �6/usr/lib/python3/dist-packages/matplotlib/offsetbox.pyr $ s r �fixedc s6 t | � \}}|dkrZt�dg� fdd�|D � �}|dd� }|dkrR|d � }||fS |dkr�|dkrnd}t|�dkr�|t|� t|�d � nd� t�dg� fd d�|D � �}|dd� }||fS |d k�r$t|�}|dkr�|� t|� }n|t|� | � |� t�t|�� }||fS td|f ��dS )a� Given a list of (width, xdescent) of each boxes, calculate the total width and the x-offset positions of each items according to *mode*. xdescent is analogous to the usual descent, but along the x-direction. xdescent values are currently ignored. *wd_list* : list of (width, xdescent) of boxes to be packed. *sep* : spacing between boxes *total* : Intended total length. None if not used. *mode* : packing mode. 'fixed', 'expand', or 'equal'. r r c s g | ]}|� �qS r r ��.0�w��sepr r � <listcomp>>