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

Skip to content

Commit 78b4f74

Browse files
committed
Corrected for PEP8
1 parent a9543ce commit 78b4f74

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/shapes_and_collections/hatches_styles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
==========
55
66
Hatching (pattern filled polygons) is supported currently in the PS,
7-
PDF, SVG and Agg backends only.
7+
PDF, SVG and Agg backends only.
88
"""
99
import matplotlib.pyplot as plt
1010
import numpy as np
@@ -21,8 +21,8 @@
2121
hashes = ['/', '\\', '|', '-', '+', 'x', 'o', 'O', '.', '*']
2222

2323
for h in range(len(hashes)):
24-
ax.add_patch(Rectangle(pos[h], 2, 2, fill=False, hatch=hashes[h]))
25-
ax.text(text_pos[h][0], text_pos[h][1], hashes[h], fontsize=15)
24+
ax.add_patch(Rectangle(pos[h], 2, 2, fill=False, hatch=hashes[h]))
25+
ax.text(text_pos[h][0], text_pos[h][1], hashes[h], fontsize=15)
2626

2727
plt.axis('equal')
2828
plt.axis('off')

0 commit comments

Comments
 (0)