ibl_alignment_gui.utils.qt.adapted_axis
Functions
Replace the axis of a PlotItem with an AdaptedAxisItem. |
Classes
An AxisItem that does not hide overlapping labels. |
- class ibl_alignment_gui.utils.qt.adapted_axis.AdaptedAxisItem(orientation, parent=None)[source]
Bases:
AxisItemAn AxisItem that does not hide overlapping labels.
- ibl_alignment_gui.utils.qt.adapted_axis.replace_axis(plot_item, orientation='left', pos=(2, 0))[source]
Replace the axis of a PlotItem with an AdaptedAxisItem.
- Parameters:
plot_item (pg.PlotItem) – The PlotItem to modify.
orientation (str) – The orientation of the axis to replace (‘left’, ‘right’, ‘top’, ‘bottom
pos (tuple) – The position in the layout to place the new axis.
- Return type:
None