spiketools.plts.style.invert_axes¶
- spiketools.plts.style.invert_axes(invert, ax=None)[source]¶
Invert plot axes.
- Parameters:
- invert{‘x’, ‘y’, ‘both’} or None
How to invert the plot axes, inverting the x, y, or both axes.
- axAxes, optional
Axis object to update. If not provided, takes the current axis.
Notes
Note that for a 2d array, inverting axes is equivalent to flipping the data, specifically:
Flipping up/down is equivalent to inverting the y-axis.
Flipping left/right is equivalent to inverting the x-axis.