6.1.1.3.1.18. thyrsis.gui.time_plot module¶
- class thyrsis.gui.time_plot.AdjustWidget(curve, dates, values, allMeasureDates, allMeasureValues, units, canvas, timePlot)¶
Bases :
PyQt5.QtWidgets.QWidget
Widget to adjust plot in the 1D panel
- adjustX()¶
Automatically set x offset
- adjustXY()¶
Automatically set xy offset
- adjustY()¶
Automatically set y offset
- func(t)¶
Interpolate with the model data
- offset(scratch=None)¶
Apply offset
- reset(dummy=None)¶
Reset custom display
- setOffsetX(ox)¶
Set x offset
- Paramètres
ox (string) – offset value
- setOffsetY(oy)¶
Set y offset
- Paramètres
oy (string) – offset value
- class thyrsis.gui.time_plot.TimePlot(figure, provider, plots, ax, settings, parent=None)¶
Bases :
PyQt5.QtWidgets.QWidget
Time plot figure
- autoscale()¶
Automatic scale the axes
- ax()¶
Get axes
- Renvoie
axes
- Type renvoyé
matplotlib.pyplot.axes
- static create(provider, point, name, colorsMeasures, colors, settings)¶
Display graph at a point
- Paramètres
provider (MeshDataProvider) – provider of the mesh
point (QgPoint) – point
name (string) – point name
colorsMeasures (dict) – dict of colors for type measure
colors (list) – colors
settings (Settings) – settings used by Thyrsis
- fps()¶
Return fps
- Renvoie
fps
- Type renvoyé
narray
- static mass_balance(provider, settings, labels)¶
Display mass balance graph
- Paramètres
provider (MeshDataProvider) – provider of the mesh
settings (Settings) – settings used by Thyrsis
labels (list) – labels axes
- resizeEvent(event)¶
Resize plot
- save(fileName, sz, dpi=150)¶
Save the plot as an image
- Paramètres
fileName (str) – file path
sz (QSize) – size
dpi (int) – image resolution
- set_end(force=False)¶
Triggered when dataprovider changes
- Paramètres
force (bool) – flag to force
- set_linestyle(style=None, width=None, color=None, marker=None)¶
Set the line style
- Paramètres
style (string) – style of the line “-“,”-.”
width (float) – width line
color (string) – color line
marker (string) – marker style
- showEvent(event)¶
Show plot
- toolbar()¶
Get navigation toolbar
- Renvoie
navigation toolbar
- Type renvoyé
NavigationToolbar2QT