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

Skip to content

Commit 95fa27f

Browse files
committed
Don't specify dtype as str
1 parent 2da8562 commit 95fa27f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4000,7 +4000,7 @@ def dopatch(xs, ys, **kwargs):
40004000
# maybe draw the fliers
40014001
if showfliers:
40024002
# fliers coords
4003-
flier_x = np.full(len(stats['fliers']), pos, dtype='float64')
4003+
flier_x = np.full(len(stats['fliers']), pos, dtype=np.float64)
40044004
flier_y = stats['fliers']
40054005

40064006
fliers.extend(doplot(

lib/matplotlib/hatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def __init__(self, hatch, density):
170170
path = Path.unit_regular_star(5)
171171
self.shape_vertices = path.vertices
172172
self.shape_codes = np.full(len(self.shape_vertices), Path.LINETO,
173-
dtype='int32')
173+
dtype=np.int32)
174174
self.shape_codes[0] = Path.MOVETO
175175
Shapes.__init__(self, hatch, density)
176176

0 commit comments

Comments
 (0)