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

Skip to content

Commit 4b4cdf6

Browse files
committed
Merge remote branch 'origin/v1.0.x'
Conflicts: CHANGELOG
2 parents e501826 + 0f8bebd commit 4b4cdf6

3 files changed

Lines changed: 26 additions & 18 deletions

File tree

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2011-03-06 Set edgecolor to 'face' for scatter asterisk-type
2+
symbols; this fixes a bug in which these symbols were
3+
not responding to the c kwarg. The symbols have no
4+
face area, so only the edgecolor is visible. - EF
5+
16
2011-02-27 Support libpng version 1.5.x; suggestion by Michael
27
Albert. Changed installation specification to a
38
minimum of libpng version 1.2. - EF
Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
import pylab
1+
import numpy as np
2+
import matplotlib.pyplot as plt
23

3-
x = pylab.rand(10)
4-
y = pylab.rand(10)
54

6-
pylab.subplot(321)
7-
pylab.scatter(x,y,s=80,marker=">")
5+
x = np.random.rand(10)
6+
y = np.random.rand(10)
7+
z = np.sqrt(x**2 + y**2)
88

9-
pylab.subplot(322)
10-
pylab.scatter(x,y,s=80,marker=(5,0))
9+
plt.subplot(321)
10+
plt.scatter(x,y,s=80, c=z, marker=">")
11+
12+
plt.subplot(322)
13+
plt.scatter(x,y,s=80, c=z, marker=(5,0))
1114

1215
verts = zip([-1.,1.,1.,-1.],[-1.,-1.,1.,-1.])
13-
pylab.subplot(323)
14-
pylab.scatter(x,y,s=80,marker=(verts,0))
16+
plt.subplot(323)
17+
plt.scatter(x,y,s=80, c=z, marker=(verts,0))
1518
# equivalent:
16-
#pylab.scatter(x,y,s=80,marker=None, verts=verts)
19+
#plt.scatter(x,y,s=80, c=z, marker=None, verts=verts)
1720

18-
pylab.subplot(324)
19-
pylab.scatter(x,y,s=80,marker=(5,1))
21+
plt.subplot(324)
22+
plt.scatter(x,y,s=80, c=z, marker=(5,1))
2023

21-
pylab.subplot(325)
22-
pylab.scatter(x,y,s=80,marker='+')
24+
plt.subplot(325)
25+
plt.scatter(x,y,s=80, c=z, marker='+')
2326

24-
pylab.subplot(326)
25-
pylab.scatter(x,y,s=80,marker=(5,2), edgecolor='g')
27+
plt.subplot(326)
28+
plt.scatter(x,y,s=80, c=z, marker=(5,2))
2629

27-
pylab.show()
30+
plt.show()

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5791,7 +5791,7 @@ def scatter(self, x, y, s=20, c='b', marker='o', cmap=None, norm=None,
57915791
collection = mcoll.AsteriskPolygonCollection(
57925792
numsides, rotation, scales,
57935793
facecolors = colors,
5794-
edgecolors = edgecolors,
5794+
edgecolors = 'face',
57955795
linewidths = linewidths,
57965796
offsets = zip(x,y),
57975797
transOffset = self.transData,

0 commit comments

Comments
 (0)