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: GraphicsLayoutWidget

this 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 set to ratio, else the aspect ratio is varying when scaling 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 :type ratio: (int) aspect ratio between horizontal and vertical axis :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 :type position: (str) either 'top', 'bottom', 'right' or 'left' :param position: :type position: (str) either 'top', 'bottom', 'right' or 'left'

getAxis(position)[source]
setAspectLocked(lock=True, ratio=1)[source]

Defines the aspect ratio of the view :type lock: (bool) if True aspect ratio is set to ratio, else the aspect ratio is varying when scaling 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 :type ratio: (int) aspect ratio between horizontal and vertical axis :param ratio: :type ratio: (int) aspect ratio between horizontal and vertical axis

setupUI(*args_plotitem, **kwargs_plotitem)[source]
class pymodaq_gui.plotting.widgets.PlotWidget(*args, **kwargs)[source]

Bases: PlotWidget

Attributes:
legend
view
property legend
property view