Skip to content

Commit f91ae7b

Browse files
committed
set npTDMS matplotlib as example dependencies
1 parent a522bec commit f91ae7b

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

examples/analog_in/voltage_acq_int_clk_plot_data.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This example demonstrates how to plot the acquired data.
44
"""
55

6-
import matplotlib.pyplot as plt
6+
import matplotlib.pyplot as plot
77

88
import nidaqmx
99
from nidaqmx.constants import READ_ALL_AVAILABLE, AcquisitionType
@@ -14,7 +14,7 @@
1414

1515
data = task.read(READ_ALL_AVAILABLE)
1616

17-
plt.plot(data)
18-
plt.ylabel("Amplitude")
19-
plt.title("Waveform")
20-
plt.show()
17+
plot.plot(data)
18+
plot.ylabel("Amplitude")
19+
plot.title("Waveform")
20+
plot.show()

poetry.lock

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ toml = {version=">=0.10.2", optional=true}
4949
tzlocal = "^5.0"
5050
python-decouple = ">=3.8"
5151
click = ">=8.0.0"
52-
nptdms = "^1.9.0"
53-
matplotlib = {version=">=3.9.0", python = ">=3.9"}
5452

5553

5654
[tool.poetry.extras]
@@ -66,6 +64,10 @@ grpcio-tools = [
6664
]
6765
mypy-protobuf = ">=3.4"
6866

67+
[tool.poetry.group.example.dependencies]
68+
nptdms = ">=1.9.0"
69+
matplotlib = {version=">=3.9.0", python = ">=3.9"}
70+
6971
[tool.poetry.group.lint.dependencies]
7072
ni-python-styleguide = ">=0.4.1"
7173
mypy = ">=1.0"

0 commit comments

Comments
 (0)