class mpl_toolkits.axes_grid1.axes_divider.Divider(fig, pos, horizontal, vertical, aspect=None, anchor='C')
[source]
Bases: object
This class calculates the axes position. It divides the given rectangular area into several sub-rectangles. You initialize the divider by setting the horizontal and vertical lists of sizes (mpl_toolkits.axes_grid.axes_size
) that the division will be based on. You then use the new_locator method to create a callable object that can be used as the axes_locator of the axes.
Parameters: |
|
---|
add_auto_adjustable_area(self, use_axes, pad=0.1, adjust_dirs=None)
[source]
append_size(self, position, size)
[source]
get_anchor(self)
[source]
return the anchor
get_aspect(self)
[source]
return aspect
get_horizontal(self)
[source]
return horizontal sizes
get_horizontal_sizes(self, renderer)
[source]
get_locator(self)
[source]
get_position(self)
[source]
return the position of the rectangle.
get_position_runtime(self, ax, renderer)
[source]
get_vertical(self)
[source]
return vertical sizes
get_vertical_sizes(self, renderer)
[source]
get_vsize_hsize(self)
[source]
locate(self, nx, ny, nx1=None, ny1=None, axes=None, renderer=None)
[source]
Parameters: |
|
---|
new_locator(self, nx, ny, nx1=None, ny1=None)
[source]
Returns a new locator (mpl_toolkits.axes_grid.axes_divider.AxesLocator
) for specified cell.
Parameters: |
|
---|
set_anchor(self, anchor)
[source]
Parameters: |
|
---|
set_aspect(self, aspect=False)
[source]
Parameters: |
|
---|
set_horizontal(self, h)
[source]
Parameters: |
|
---|
set_locator(self, _locator)
[source]
set_position(self, pos)
[source]
set the position of the rectangle.
Parameters: |
|
---|
set_vertical(self, v)
[source]
Parameters: |
|
---|
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/mpl_toolkits.axes_grid1.axes_divider.Divider.html