|
Server : Apache System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64 User : equistyl ( 1341) PHP Version : 8.1.30 Disable Function : NONE Directory : /lib64/python2.7/site-packages/matplotlib/ |
Upload File : |
�
r`]c @ s� d Z d d l m Z m Z d d l Z e j Z d d l j Z d d l Z
d d l Z d e f d � � YZ
d e
f d � � YZ d e
f d � � YZ d
e f d � � YZ d S( s�
:mod:`~matplotlib.gridspec` is a module which specifies the location
of the subplot in the figure.
``GridSpec``
specifies the geometry of the grid that a subplot will be
placed. The number of rows and number of columns of the grid
need to be set. Optionally, the subplot layout parameters
(e.g., left, right, etc.) can be tuned.
``SubplotSpec``
specifies the location of the subplot in the given *GridSpec*.
i����( t divisiont print_functionNt GridSpecBasec B sw e Z d Z d d d � Z d � Z d d � Z d d d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
RS(
sm
A base class of GridSpec that specifies the geometry of the grid
that a subplot will be placed.
c C s1 | | | _ | _ | j | � | j | � d S( s�
The number of rows and number of columns of the grid need to
be set. Optionally, the ratio of heights and widths of rows and
columns can be specified.
N( t _nrowst _ncolst set_height_ratiost set_width_ratios( t selft nrowst ncolst
height_ratiost width_ratios( ( s9 /usr/lib64/python2.7/site-packages/matplotlib/gridspec.pyt __init__! s
c C s | j | j f S( s$ get the geometry of the grid, eg 2,3( R R ( R ( ( s9 /usr/lib64/python2.7/site-packages/matplotlib/gridspec.pyt get_geometry. s c C s d S( N( ( R t fig( ( s9 /usr/lib64/python2.7/site-packages/matplotlib/gridspec.pyt get_subplot_params2 s i c C s4 | \ } } | | | | � | | | � f } | S( s:
create and return a SuplotSpec instance.
( ( R t loct rowspant colspant loc1t loc2t subplotspec( ( s9 /usr/lib64/python2.7/site-packages/matplotlib/gridspec.pyt new_subplotspec5 s $c C s
| | _ d S( N( t _col_width_ratios( R R ( ( s9 /usr/lib64/python2.7/site-packages/matplotlib/gridspec.pyR >