fsleyes.profiles.timeseriesprofile¶
This module provides the TimeSeriesProfile class, an interaction
profile for the TimeSeriesPanel.
-
class
fsleyes.profiles.timeseriesprofile.TimeSeriesProfile(viewPanel, overlayList, displayCtx)[source]¶ 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.-
static
supportedView()[source]¶ Returns the
TimeSeriesPanelclass.
-
static
tempModes()[source]¶ Returns the temporary mode map for the
TimeSeriesProfile, which controls the use of modifier keys to temporarily enter other interaction modes.
-
__init__(viewPanel, overlayList, displayCtx)[source]¶ Create a
TimeSeriesProfile.- Parameters
viewPanel – A
TimeSeriesPanelinstance.overlayList – The
OverlayListinstance.displayCtx – The
DisplayContextinstance.
-
__volumeModeCompatible()¶ Returns
Trueif a volume line can currently be shown,Falseotherwise.
-
__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.
-
_volumeModeLeftMouseDown(ev, canvas, mousePos, canvasPos)[source]¶ Adds a vertical line to the plot at the current volume.
-
_volumeModeLeftMouseDrag(ev, canvas, mousePos, canvasPos)[source]¶ Updates the position of the vertical volume line.
-
__module__= 'fsleyes.profiles.timeseriesprofile'¶
-
static