OwlCyberSecurity - MANAGER
Edit File: _layoutbox.cpython-38.pyc
U ��]�^ � @ s$ d Z ddlZddlZddlZddlZe�e�Z dd� Z G dd� de�Zd7dd �Z d8d d�Zd9dd �Zd:dd�Zd;dd�Zd<dd�Zd=dd�Zd>dd�Zd?dd�Zd@dd�ZdAdd�ZdBd d!�ZdCd"d#�ZdDd$d%�ZdEd&d'�ZdFd(d)�Ze�� ad*d+� Zd,d-� Z d.d/� Z!d0d1� Z"d2d3� Z#dGd5d6�Z$dS )HaX Conventions: "constrain_x" means to constrain the variable with either another kiwisolver variable, or a float. i.e. `constrain_width(0.2)` will set a constraint that the width has to be 0.2 and this constraint is permanent - i.e. it will not be removed if it becomes obsolete. "edit_x" means to set x to a value (just a float), and that this value can change. So `edit_width(0.2)` will set width to be 0.2, but `edit_width(0.3)` will allow it to change to 0.3 later. Note that these values are still just "suggestions" in `kiwisolver` parlance, and could be over-ridden by other constrains. � Nc C sV | j r| j }nD| j}|r,t|d�r,|�� }n&t�d� ddlm} || �}|�� }|S )N�get_rendererz1constrained_layout : falling back to Agg rendererr )�FigureCanvasAgg)Z_cachedRenderer�canvas�hasattrr �_log�infoZmatplotlib.backends.backend_aggr )�figZrendererr r � r �7/usr/lib/python3/dist-packages/matplotlib/_layoutbox.pyr s r c @ sT e Zd ZdZdPdd�Zd d � Zdd� Zd d� Zdd� Zdd� Z dd� Z dd� Zdd� ZdQdd�Z dRdd�ZdSdd�Zd d!� ZdTd"d#�Zd$d%� ZdUd&d'�Zd(d)� ZdVd*d+�Zd,d-� Zd.d/� Zd0d1� ZdWd2d3�ZdXd4d5�ZdYd6d7�ZdZd8d9�Zd[d:d;�Zd\d<d=�Zd]d>d?�Zd^d@dA�Z d_dBdC�Z!d`dDdE�Z"dFdG� Z#dHdI� Z$dJdK� Z%dadLdM�Z&dNdO� Z'dS )b� LayoutBoxzD Basic rectangle representation using kiwi solver variables N� F�r r �� r c C s t j}|| _|| _| jd } |d kr6t �� | _d| _n|j| _d | _|�| � || _|| _ | | _ |t| d ��| _|t| d ��| _ |t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|t| d ��| _|\}}|\}}|| _ || _!| �"� g | _#d | _$| j �r| �%� | | _&|| _'d S )N�_r �top�bottom�left�right�width�height�h_center�v_center� min_width� min_height� pref_width�pref_height�left_margin�right_margin� bottom_margin� top_margin�left_margin_min�right_margin_min�bottom_margin_min�top_margin_min)(�kiwi�Variable�parent�nameZSolver�solverZconstrained_layout_called� add_child�artist�pos�subplot�strr r r r r r r r r r r r r r r r r! r"