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 :type position: (str) either
'top','bottom','right'or'left':param position: :type position: (str) either'top','bottom','right'or'left'setAspectLocked([lock, ratio])Defines the aspect ratio of the view :type lock:
(bool) if True aspect ratio is settoratio,else the aspect ratio is varying when scaling the view:param lock: :type lock:(bool) if True aspect ratio is settoratio,else the aspect ratio is varying when scaling the view:type ratio:(int) aspect ratio between horizontalandvertical axis:param ratio: :type ratio:(int) aspect ratio between horizontalandvertical axisgetAxis
setupUI
- add_scaled_axis(position)[source]
Add a AxisItem_Scaled to the given position with respect with the plotitem :type position: (str) either
'top','bottom','right'or'left':param position: :type position: (str) either'top','bottom','right'or'left'
- setAspectLocked(lock=True, ratio=1)[source]
Defines the aspect ratio of the view :type lock:
(bool) if True aspect ratio is settoratio,else the aspect ratio is varying when scaling the view:param lock: :type lock:(bool) if True aspect ratio is settoratio,else the aspect ratio is varying when scaling the view:type ratio:(int) aspect ratio between horizontalandvertical axis:param ratio: :type ratio:(int) aspect ratio between horizontalandvertical axis