pcntoolkit.util.autoscale_plot ============================== .. py:module:: pcntoolkit.util.autoscale_plot Functions --------- .. autoapisummary:: pcntoolkit.util.autoscale_plot.autoscale pcntoolkit.util.autoscale_plot.calculate_new_limit pcntoolkit.util.autoscale_plot.get_xy Module Contents --------------- .. py:function:: 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. .. py:function:: calculate_new_limit(fixed, dependent, limit) Calculates the min/max of the dependent axis given a fixed axis with limits .. py:function:: get_xy(artist) Gets the xy coordinates of a given artist