mpltools.layout.clear_frame([ax]) | Remove the frame (ticks and spines) from an axes. |
mpltools.layout.clip_zero_formatter(...) | Tick formatter that returns empty string for zero values. |
mpltools.layout.cross_spines([zero_cross, ...]) | Remove top and right spines from an axes. |
mpltools.layout.figaspect([aspect_ratio, ...]) | Return figure size (width, height) in inches. |
mpltools.layout.figimage(img[, scale, dpi]) | Return figure and axes with figure tightly surrounding image. |
mpltools.layout.figure([aspect_ratio, ...]) | Return matplotlib figure window. |
mpltools.layout.pad_limits([pad_frac, ax]) | Pad data limits to nicely accomodate data. |
Remove the frame (ticks and spines) from an axes.
This differs from turning off the axis (plt.axis(‘off’) or ax.set_axis_off()) in that only the ticks and spines are removed. Turning off the axis also removes the axes background and axis labels.
Parameters : | ax : Axes
|
---|
Tick formatter that returns empty string for zero values.
Remove top and right spines from an axes.
Parameters : | zero_cross : bool
remove_zeros : bool
ax : Axes
|
---|
Return figure size (width, height) in inches.
Calculate figure height using aspect_ratio and default figure width. For example, figaspect(2) gives a size that’s twice as tall as it is wide.
Note that figaspect uses the default figure width, or a specified width, and adjusts the height; this is the opposite of pyplot.figaspect, which constrains the figure height and adjusts the width. This function’s behavior is preferred when you have a constraint on the figure width (e.g. in a journal article or a web page with a set body-width).
Parameters : | aspect_ratio : float
scale : float
width : float
|
---|---|
Returns : | width, height : float
|
Return figure and axes with figure tightly surrounding image.
Unlike pyplot.figimage, this actually plots onto an axes object, which fills the figure. Plotting the image onto an axes allows for subsequent overlays.
Parameters : | img : array
scale : float
dpi : int
|
---|
Return matplotlib figure window.
Calculate figure height using aspect_ratio and default figure width.
Parameters : | aspect_ratio : float
scale : float
width : float
|
---|
See also
Pad data limits to nicely accomodate data.
Padding is useful when you use markers, which often get cropped by tight data limits since only their center-positions are used to calculate limits.
Parameters : | pad_frac : float
ax : Axes
|
---|