pcntoolkit.util.autoscale_plot#
Functions#
|
Autoscales the x or y axis of a given matplotlib ax object |
|
Calculates the min/max of the dependent axis given |
|
Gets the xy coordinates of a given artist |
Module Contents#
- autoscale(ax=None, axis='y', margin=0.1)#
Autoscales the x or y axis of a given matplotlib ax object to fit the margins set by manually limits of the other axis, with margins in fraction of the width of the plot
Defaults to current axes object if not specified.
- calculate_new_limit(fixed, dependent, limit)#
Calculates the min/max of the dependent axis given a fixed axis with limits
- get_xy(artist)#
Gets the xy coordinates of a given artist