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

Skip to content

Commit a182a76

Browse files
author
James Pallister
committed
Whitespace fixes for PEP8 and the correct baseline image
1 parent 7fff74d commit a182a76

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Binary file not shown.

lib/matplotlib/tests/test_backend_pdf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,14 @@ def test_composite_image():
108108
fig.savefig(pdf, format="pdf")
109109
assert len(pdf._file.images.keys()) == 2
110110

111+
111112
@image_comparison(baseline_images=['hatching_legend'],
112113
extensions=['pdf'])
113114
def test_hatching_legend():
114115
"""Test for correct hatching on patches in legend"""
115-
fig = plt.figure(figsize=(1,2))
116+
fig = plt.figure(figsize=(1, 2))
116117

117-
a = plt.Rectangle([0,0], 0, 0, facecolor="green", hatch="XXXX")
118-
b = plt.Rectangle([0,0], 0, 0, facecolor="blue", hatch="XXXX")
118+
a = plt.Rectangle([0, 0], 0, 0, facecolor="green", hatch="XXXX")
119+
b = plt.Rectangle([0, 0], 0, 0, facecolor="blue", hatch="XXXX")
119120

120-
fig.legend([a,b,a,b], ["","","",""])
121+
fig.legend([a, b, a, b], ["", "", "", ""])

0 commit comments

Comments
 (0)