Skip to content

Commit

Permalink
Improved docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis-van-Gils committed Jun 24, 2024
1 parent ce8b38c commit 2d23168
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/dvg_pyqtgraph_threadsafe.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
.. code-block:: python
import sys
from PyQt5 import QtWidgets
from qtpy import QtWidgets
import pyqtgraph as pg
from dvg_pyqtgraph_threadsafe import HistoryChartCurve
Expand Down Expand Up @@ -66,7 +66,7 @@ def __init__(self, parent=None, **kwargs):
window.tscurve_1.update()
window.show()
sys.exit(app.exec_())
sys.exit(app.exec())
"""
__author__ = "Dennis van Gils"
__authoremail__ = "[email protected]"
Expand Down Expand Up @@ -439,20 +439,20 @@ class LegendSelect(QtCore.QObject):
attribute ``grid`` of type ``PyQt5.QtWidget.QGridLayout`` to be added to
your GUI.
The initial visibility, name and pen of each curve will be retrieved
from the members within the passed curves, i.e.:
* ``curve.isVisible()``
* ``curve.name()``
* ``curve.opts["pen"]``
Example grid::
□ Curve 1 [ / ]
□ Curve 2 [ / ]
□ Curve 3 [ / ]
[ Show / Hide all]
The initial visibility, name and pen of each curve will be retrieved
from the members within the passed curves, i.e.:
* ``curve.isVisible()``
* ``curve.name()``
* ``curve.opts["pen"]``
Args:
linked_curves (``Sequence[pyqtgraph.PlotDataItem | ThreadSafeCurve]``):
Sequence of ``pyqtgraph.PlotDataItem`` or ``ThreadSafeCurve``
Expand Down

0 comments on commit 2d23168

Please sign in to comment.