Skip to content

Commit 5a825dd

Browse files
committed
Enabled antialiasing on some curve examples
1 parent ee9f306 commit 5a825dd

4 files changed

Lines changed: 2 additions & 0 deletions

File tree

qwt/tests/cartesian.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ def __init__(self, *args):
8484
z = 4 * np.pi * np.cos(x) * np.cos(x) * np.sin(x)
8585
# attach a curve
8686
curve = QwtPlotCurve("y = pi*sin(x)")
87+
curve.setRenderHint(QwtPlotCurve.RenderAntialiased, True)
8788
curve.attach(self)
8889
curve.setPen(QPen(Qt.green, 2))
8990
curve.setData(x, y)
9091
# attach another curve
9192
curve = QwtPlotCurve("y = 4*pi*sin(x)*cos(x)**2")
93+
curve.setRenderHint(QwtPlotCurve.RenderAntialiased, True)
9294
curve.attach(self)
9395
curve.setPen(QPen(Qt.blue, 2))
9496
curve.setData(x, z)

qwt/tests/data/cartesian.png

33.6 KB
Loading

qwt/tests/data/simple.png

19.8 KB
Loading

qwt/tests/data/testlauncher.png

-567 Bytes
Loading

0 commit comments

Comments
 (0)