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

Parameters

ox (string) – offset value

setOffsetY(oy)

Set y offset

Parameters

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

Returns

axes

Return type

matplotlib.pyplot.axes

static create(provider, point, name, colorsMeasures, colors, settings)

Display graph at a point

Parameters
  • 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

Returns

fps

Return type

narray

static mass_balance(provider, settings, labels)

Display mass balance graph

Parameters
  • 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

Parameters
  • fileName (str) – file path

  • sz (QSize) – size

  • dpi (int) – image resolution

set_end(force=False)

Triggered when dataprovider changes

Parameters

force (bool) – flag to force

set_linestyle(style=None, width=None, color=None, marker=None)

Set the line style

Parameters
  • 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

Returns

navigation toolbar

Return type

NavigationToolbar2QT