8.5.5.8. pymodaq_gui.plotting.widgets module
Created the 04/11/2022
@author: Sebastien Weber
- class pymodaq_gui.plotting.widgets.ImageWidget(parent=None, *args_plotitem, **kwargs_plotitem)[source]
Bases:
GraphicsLayoutWidgetthis gives a layout to add imageitems.
Methods
add_scaled_axis(position)Add a AxisItem_Scaled to the given position with respect with the plotitem :param position: :type position: (str) either 'top', 'bottom', 'right' or 'left'
setAspectLocked([lock, ratio])Defines the aspect ratio of the view :param lock: :type lock: (bool) if True aspect ratio is set to ratio, else the aspect ratio is varying when scaling the view :param ratio: :type ratio: (int) aspect ratio between horizontal and vertical axis
getAxis
setupUI
- add_scaled_axis(position)[source]
Add a AxisItem_Scaled to the given position with respect with the plotitem :param position: :type position: (str) either ‘top’, ‘bottom’, ‘right’ or ‘left’