Skip to content

Commit 5bda706

Browse files
committed
modify patheffect_demo.py to demonstrate patheffects for Line2D objects
1 parent a10358a commit 5bda706

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/pylab_examples/patheffect_demo.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
foreground="w"),
1818
PathEffects.Normal()])
1919

20+
ax1.grid(True, linestyle="-")
21+
22+
pe = [PathEffects.withStroke(linewidth=3,
23+
foreground="w")]
24+
for l in ax1.get_xgridlines() + ax1.get_ygridlines():
25+
l.set_path_effects(pe)
26+
2027
ax2 = plt.subplot(132)
2128
arr = np.arange(25).reshape((5,5))
2229
ax2.imshow(arr)

0 commit comments

Comments
 (0)