fsleyes.profiles.timeseriesprofile¶
This module provides the TimeSeriesProfile class, an interaction
profile for the TimeSeriesPanel.
-
class
fsleyes.profiles.timeseriesprofile.TimeSeriesProfile(viewPanel, overlayList, displayCtx)¶ Bases:
fsleyes.profiles.plotprofile.PlotProfileThe
TimeSeriesProfileis aPlotProfilefor use with theTimeSeriesPanel.In addition to the
panzoommode provided by thePlotProfileclass, theTimeSeriesProfileclass implements avolumemode, in which the user is able to click/drag on a plot to change theVolumeOpts.volumefor the currently selected overlay.-
__init__(viewPanel, overlayList, displayCtx)¶ Create a
TimeSeriesProfile.Parameters: - viewPanel – A
TimeSeriesPanelinstance. - overlayList – The
OverlayListinstance. - displayCtx – The
DisplayContextinstance.
- viewPanel – A
-
_volumeModeLeftMouseDown(ev, canvas, mousePos, canvasPos)¶ Adds a vertical line to the plot at the current volume.
-
_volumeModeLeftMouseDrag(ev, canvas, mousePos, canvasPos)¶ Updates the position of the vertical volume line.
-
_volumeModeLeftMouseUp(ev, canvas, mousePos, canvasPos)¶ Removes the vertical volume line.
-
_TimeSeriesProfile__updateVolume(volumeLine, xvalue)¶ Called by the
volumeevent handlers. Updates the givenvolumeLineartist (assumed to be amatplotlib.Line2Dinstance) so that it is located at the givenxvalue. Also updates theVolumeOpts.volumeproperty of the currently selected overlay accordingly.
-
_TimeSeriesProfile__volumeModeCompatible()¶ Returns
Trueif a volume line can currently be shown,Falseotherwise.
-
__module__= 'fsleyes.profiles.timeseriesprofile'¶
-