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

Skip to content

Commit ef773b4

Browse files
committed
some minor fixes
1 parent bb2a36a commit ef773b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/hatch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def vertical(self):
267267
return np.empty((0, 2)), np.empty(0, Path.code_type)
268268

269269
def north_east(self):
270-
num_lines = int(self.kwargs["scale"])
270+
num_lines = int(self.kwargs["scale"]) * 2
271271
if num_lines:
272272
num_vertices = (num_lines + 1) * 2
273273
else:
@@ -286,7 +286,7 @@ def north_east(self):
286286
return vertices, codes
287287

288288
def south_east(self):
289-
num_lines = int(self.kwargs["scale"])
289+
num_lines = int(self.kwargs["scale"]) * 2
290290
if num_lines:
291291
num_vertices = (num_lines + 1) * 2
292292
else:

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def get_hatch(self):
576576
def set_hatchstyles(self, hatchstyles):
577577
if hatchstyles is None:
578578
hatchstyles = []
579-
self._hatchstyles = hatchstyles
579+
self._hatchstyles = np.atleast_1d(hatchstyles)
580580
self.stale = True
581581

582582
def get_hatchstyles(self):

0 commit comments

Comments
 (0)