axes_grid.axes_size

mpl_toolkits.axes_grid.axes_size

class mpl_toolkits.axes_grid.axes_size.Fixed(fixed_size)

Simple fixed size with absolute part = fixed_size and relative part = 0

class mpl_toolkits.axes_grid.axes_size.Scaled(scalable_size)

Simple scaled(?) size with absolute part = 0 and relative part = scalable_size

class mpl_toolkits.axes_grid.axes_size.AxesX(axes, aspect=1.0, ref_ax=None)

Scaled size whose relative part corresponds to the data width of the axes multiplied by the aspect.

class mpl_toolkits.axes_grid.axes_size.AxesY(axes, aspect=1.0, ref_ax=None)

Scaled size whose relative part corresponds to the data height of the axes multiplied by the aspect.

class mpl_toolkits.axes_grid.axes_size.MaxWidth(artist_list)

Size whose absolute part is the largest width of the given artist_list.

class mpl_toolkits.axes_grid.axes_size.MaxHeight(artist_list)

Size whose absolute part is the largest height of the given artist_list.

class mpl_toolkits.axes_grid.axes_size.Fraction(fraction, ref_size)

An instance whose size is a fraction of the ref_size.

>>> s = Fraction(0.3, AxesX(ax))
class mpl_toolkits.axes_grid.axes_size.Padded(size, pad)

Return a instance where the absolute part of size is increase by the amount of pad.

mpl_toolkits.axes_grid.axes_size.from_any(size, fraction_ref=None)

Creates Fixed unit when the first argument is a float, or a Fraction unit if that is a string that ends with %. The second argument is only meaningful when Fraction unit is created.:

>>> a = Size.from_any(1.2) # => Size.Fixed(1.2)
>>> Size.from_any("50%", a) # => Size.Fraction(0.5, a)
doc_matplotlib
2017-01-22 12:13:39
Comments
Leave a Comment

Please login to continue.