Skip to content

Commit 277e69d

Browse files
committed
Fix spelling of trigonometric function names in examples
1 parent 0091a75 commit 277e69d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ plot.insertLegend(qwt.QwtLegend(), qwt.QwtPlot.BottomLegend)
3333

3434
# Create two curves and attach them to plot
3535
x = np.linspace(-10, 10, 500)
36-
qwt.QwtPlotCurve.make(x, np.cos(x), "Cosinus", plot, linecolor="red", antialiased=True)
37-
qwt.QwtPlotCurve.make(x, np.sin(x), "Sinus", plot, linecolor="blue", antialiased=True)
36+
qwt.QwtPlotCurve.make(x, np.cos(x), "Cosine", plot, linecolor="red", antialiased=True)
37+
qwt.QwtPlotCurve.make(x, np.sin(x), "Sine", plot, linecolor="blue", antialiased=True)
3838

3939
# Resize and show plot
4040
plot.resize(600, 300)

doc/plot_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
x = np.linspace(-10, 10, 500)
1111
plot = qwt.QwtPlot("Trigonometric functions")
1212
plot.insertLegend(qwt.QwtLegend(), qwt.QwtPlot.BottomLegend)
13-
qwt.QwtPlotCurve.make(x, np.cos(x), "Cosinus", plot, linecolor="red", antialiased=True)
14-
qwt.QwtPlotCurve.make(x, np.sin(x), "Sinus", plot, linecolor="blue", antialiased=True)
13+
qwt.QwtPlotCurve.make(x, np.cos(x), "Cosine", plot, linecolor="red", antialiased=True)
14+
qwt.QwtPlotCurve.make(x, np.sin(x), "Sine", plot, linecolor="blue", antialiased=True)
1515
qth.take_screenshot(
1616
plot,
1717
osp.join(osp.abspath(osp.dirname(__file__)), "_static", "QwtPlot_example.png"),

qwt/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ class QwtPlot(QFrame):
132132
x = np.linspace(-10, 10, 500)
133133
plot = qwt.QwtPlot("Trigonometric functions")
134134
plot.insertLegend(qwt.QwtLegend(), qwt.QwtPlot.BottomLegend)
135-
qwt.QwtPlotCurve.make(x, np.cos(x), "Cosinus", plot, linecolor="red", antialiased=True)
136-
qwt.QwtPlotCurve.make(x, np.sin(x), "Sinus", plot, linecolor="blue", antialiased=True)
135+
qwt.QwtPlotCurve.make(x, np.cos(x), "Cosine", plot, linecolor="red", antialiased=True)
136+
qwt.QwtPlotCurve.make(x, np.sin(x), "Sine", plot, linecolor="blue", antialiased=True)
137137
plot.resize(600, 300)
138138
plot.show()
139139
@@ -2137,7 +2137,7 @@ def setAxis(self, xAxis, yAxis):
21372137
import warnings
21382138

21392139
warnings.warn(
2140-
"`setAxis` has been removed in Qwt6: " "please use `setAxes` instead",
2140+
"`setAxis` has been removed in Qwt6: please use `setAxes` instead",
21412141
RuntimeWarning,
21422142
)
21432143
self.setAxes(xAxis, yAxis)

0 commit comments

Comments
 (0)