Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfab80e commit daf7ad5Copy full SHA for daf7ad5
lib/matplotlib/tests/test_backend_ps.py
@@ -10,6 +10,7 @@
10
11
import matplotlib
12
import matplotlib.pyplot as plt
13
+from matplotlib import patheffects
14
from matplotlib.testing.decorators import cleanup, knownfailureif
15
16
@@ -120,6 +121,16 @@ def test_composite_image():
120
121
assert buff.count(six.b(' colorimage')) == 2
122
123
124
+@cleanup
125
+def test_patheffects():
126
+ with matplotlib.rc_context():
127
+ matplotlib.rcParams['path.effects'] = [patheffects.withStroke(linewidth=4, foreground='w')]
128
+ fig, ax = plt.subplots()
129
+ ax.plot([1, 2, 3])
130
+ with io.BytesIO() as ps:
131
+ fig.savefig(ps, format='ps')
132
+
133
134
if __name__ == '__main__':
135
import nose
136
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
0 commit comments