ibl_alignment_gui.utils.qt.adapted_axis

Functions

replace_axis

Replace the axis of a PlotItem with an AdaptedAxisItem.

Classes

AdaptedAxisItem

An AxisItem that does not hide overlapping labels.

class ibl_alignment_gui.utils.qt.adapted_axis.AdaptedAxisItem(orientation, parent=None)[source]

Bases: AxisItem

An AxisItem that does not hide overlapping labels.

drawPicture(p, axisSpec, tickSpecs, textSpecs)[source]
generateDrawSpecs(p)[source]

Calls tickValues() and tickStrings() to determine where and how ticks should be drawn, then generates from this a set of drawing commands to be interpreted by drawPicture().

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