mpl_toolkits.axes_grid1.axes_divider.VBoxDivider#

classmpl_toolkits.axes_grid1.axes_divider.VBoxDivider(fig,*args,horizontal=None,vertical=None,aspect=None,anchor='C')[source]#

Bases:SubplotDivider

ASubplotDivider for laying out axes vertically, while ensuring thatthey have equal widths.

Parameters:
figFigure
*argstuple (nrows,ncols,index) or int

The array of subplots in the figure has dimensions(nrows,ncols), andindex is the index of the subplot being created.index starts at 1 in the upper left corner and increases to theright.

Ifnrows,ncols, andindex are all single digit numbers, thenargs can be passed as a single 3-digit number (e.g. 234 for(2, 3, 4)).

horizontallist ofaxes_size, optional

Sizes for horizontal division.

verticallist ofaxes_size, optional

Sizes for vertical division.

aspectbool, optional

Whether overall rectangular area is reduced so that the relativepart of the horizontal and vertical scales have the same scale.

anchor(float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', 'N', 'NW', 'W'}, default: 'C'

Placement of the reduced rectangle, whenaspect is True.

new_locator(ny,ny1=None)[source]#

Create an axes locator callable for the specified cell.

Parameters:
ny, ny1int

Integers specifying the row-position of thecell. Whenny1 is None, a singleny-th row isspecified. Otherwise, location of rows spanning betweennytony1 (but excludingny1-th row) is specified.

Examples usingmpl_toolkits.axes_grid1.axes_divider.VBoxDivider#

HBoxDivider and VBoxDivider demo

HBoxDivider and VBoxDivider demo