OwlCyberSecurity - MANAGER
Edit File: test_tightlayout.cpython-38.pyc
U ��]�( � @ st d dl Z d dlZd dlmZ d dlmZ d dlmZ d dl mZmZ d dl mZ d@dd�Zed gd �dd� �Zed gd �dd� �Zedgd �dd� �Zedgdd�dd� �Zedgd �dd� �Zedgd �dd� �Zedgd �dd � �Zed!gd �d"d#� �Zed$gd �d%d&� �Zd'd(� ZdAd,d-�Zed.d/gd �d0d1� �Zd2d3� Zd4d5� Zd6d7� Zd8d9� Zd:d;� Z d<d=� Z!d>d?� Z"dS )B� N)�assert_array_equal)�image_comparison)�AnchoredOffsetbox�DrawingArea)� Rectangle� c C sH | � ddg� | jdd� | jd|d� | jd|d� | jd|d� d S ) N� � � �Znbins�x-label��fontsize�y-labelZTitle)�plot�locator_params� set_xlabel� set_ylabel� set_title)�axr � r �C/usr/lib/python3/dist-packages/matplotlib/tests/test_tightlayout.py�example_plot s r Z tight_layout1)�baseline_imagesc C s$ t �� \} }t|dd� t �� dS )z&Test tight_layout for a single subplot� r N��plt�subplotsr �tight_layout��figr r r r �test_tight_layout1 s r! Z tight_layout2c C sJ t jddd�\} \\}}\}}t|� t|� t|� t|� t �� dS )�'Test tight_layout for multiple subplotsr )ZnrowsZncolsNr �r �ax1�ax2�ax3Zax4r r r �test_tight_layout2 s r'