| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/lib/python3.9/dist-packages/matplotlib/__pycache__/ |
Upload File : |
a
���hEt � @ s� d Z ddlZddlZddlmZ ddlZddlZddlm Z m
Z
mZ ddlm
Z
e�e�ZG dd� d�ZG dd � d e�ZG d
d� de�ZG dd
� d
�ZG dd� d�ZdS )a�
:mod:`~matplotlib.gridspec` contains classes that help to layout multiple
`~.axes.Axes` in a grid-like pattern within a figure.
The `GridSpec` specifies the overall grid structure. Individual cells within
the grid are referenced by `SubplotSpec`\s.
Often, users need not access this module directly, and can use higher-level
methods like `~.pyplot.subplots`, `~.pyplot.subplot_mosaic` and
`~.Figure.subfigures`. See the tutorial :ref:`arranging_axes` for a guide.
� N)�Integral)�_api�_pylab_helpers�
_tight_layout)�Bboxc @ s� e Zd ZdZd'dd�Zdd� Zedd� d d
�Zedd� dd
�Zd
d� Z d(dd�Z
d)dd�Zdd� Zdd� Z
dd� Zdd� Zdd� Zedd� �Zd d!� Zd"d"d#dd$�d%d&�ZdS )*�GridSpecBasezm
A base class of GridSpec that specifies the geometry of the grid
that a subplot will be placed.
Nc C sf t |t�r|dkr td|����t |t�r2|dkr@td|����|| | _| _| �|� | �|� dS )a�
Parameters
----------
nrows, ncols : int
The number of rows and columns of the grid.
width_ratios : array-like of length *ncols*, optional
Defines the relative widths of the columns. Each column gets a
relative width of ``width_ratios[i] / sum(width_ratios)``.
If not given, all columns will have the same width.
height_ratios : array-like of length *nrows*, optional
Defines the relative heights of the rows. Each row gets a
relative height of ``height_ratios[i] / sum(height_ratios)``.
If not given, all rows will have the same height.
r z/Number of rows must be a positive integer, not z2Number of columns must be a positive integer, not N)�
isinstancer �
ValueError�_nrows�_ncols�set_height_ratios�set_width_ratios)�self�nrows�ncols�
height_ratios�width_ratios� r �=/usr/local/lib/python3.9/dist-packages/matplotlib/gridspec.py�__init__ s ��
zGridSpecBase.__init__c C sb t t| j��dkrd| j��nd}t t| j��dkr@d| j��nd}dj| jj| j| j|| d�S )N� z, height_ratios=� z, width_ratios=z&{clsname}({nrows}, {ncols}{optionals}))Zclsnamer r � optionals) �len�set�_row_height_ratios�_col_width_ratios�format� __class__�__name__r
r )r Z
height_argZ width_argr r r �__repr__9 s �����zGridSpecBase.__repr__c C s | j S �N)r
�r r r r �<lambda>E � zGridSpecBase.<lambda>zThe number of rows in the grid.)�docc C s | j S r! )r r"