Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 681e783

Browse files
committed
pgf: add hatching to test figures
1 parent 947e42b commit 681e783

File tree

5 files changed

+1
-0
lines changed

5 files changed

+1
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def create_figure():
6767
plt.figure()
6868
x = np.linspace(0, 1, 15)
6969
plt.plot(x, x**2, "b-")
70+
plt.fill_between([0., .4], [.4, 0.], hatch='//', facecolor="lightgray", edgecolor="red")
7071
plt.plot(x, 1-x**2, "g>")
7172
plt.plot([0.9], [0.5], "ro", markersize=3)
7273
plt.text(0.9, 0.5, u'unicode (ü, °, µ) and math ($\\mu_i = x_i^2$)', ha='right', fontsize=20)

0 commit comments

Comments
 (0)