PlotView#

class hdf5view.views.PlotView(model, dims_model)#

Bases: QAbstractItemView

Shows a plot view of the associated PlotModel.

Currently a y(x) plot can be shown where x is either an index or a second column of data in the same dataset.

TODO: Multiplots

Attributes

Methods

PlotView.handle_mouse_moved(pos)

Update the cursor position when the mouse moves in the image scene.

PlotView.handle_scroll(value)

Change the image frame on scroll.

PlotView.horizontalOffset()

Return zero.

PlotView.init_signals()

Initialise the mouse and scrollbar signals.

PlotView.moveCursor(cursorAction, modifiers)

Return a QModelIndex.

PlotView.set_up_plot()

Set up the plot shown including the axis labels.

PlotView.update_plot()

Update the plot shown.

PlotView.verticalOffset()

Return zero.