Skip to content

Commit dab64c0

Browse files
committed
Fix terminology in ylabel and mode references: change 'sinus' to 'sine' for consistency
1 parent 6f29230 commit dab64c0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

plotpy/plot/interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def plotyy(x1, y1, x2, y2):
533533
import numpy as np
534534
x = np.linspace(-5, 5, 1000)
535535
plotyy(x, np.sin(x), x, np.cos(x))
536-
ylabel("sinus", "cosinus")
536+
ylabel("sine", "cosine")
537537
show()
538538
"""
539539
axe = gca()

plotpy/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
>>> plt.imshow(img)
6060
>>> plt.figure("plotyy")
6161
>>> plt.plotyy(x, np.sin(x), x, np.cos(x))
62-
>>> plt.ylabel("sinus", "cosinus")
62+
>>> plt.ylabel("sine", "cosine")
6363
>>> plt.show()
6464
6565
Reference

plotpy/tests/features/test_pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_pyplot():
5959

6060
plt.figure("plotyy")
6161
plt.plotyy(x, np.sin(x), x, np.cos(x))
62-
plt.ylabel("sinus", "cosinus")
62+
plt.ylabel("sine", "cosine")
6363
plt.show()
6464

6565
plt.figure("hist")

plotpy/tests/widgets/test_plot_timecurve.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def send_data(self):
8888
if value <= 0.0 or value >= 1:
8989
self.increasing_value = not self.increasing_value
9090
self.previous_value = value
91-
elif self.mode == "sinus":
91+
elif self.mode == "sine":
9292
value = 0.5 * np.sin(time.time() / np.pi) + 0.5
9393
else:
9494
raise ValueError("Unknown mode %r" % self.mode)
@@ -409,9 +409,9 @@ def update_all_curves(self, force=True):
409409
color="r",
410410
)
411411

412-
device1 = DummyDevice(period=10, mode="sinus")
412+
device1 = DummyDevice(period=10, mode="sine")
413413
device1.init_device(buffer1)
414-
device2 = DummyDevice(period=500, mode="sinus") # , duration_range=(4000, 7000))
414+
device2 = DummyDevice(period=500, mode="sine") # , duration_range=(4000, 7000))
415415
device2.init_device(buffer2)
416416
# win.showMaximized()
417417
win.resize(800, 400)

0 commit comments

Comments
 (0)