5

Is not it possible to change marker size in matplotlib?

from pylab import *    
x = [5,7,5,9,11,14]
y = [4,5,3,11,15,14]
scatter(x, y,color='green',marker='h')
show()
4

1 回答 1

7

使用s关键字参数指定:

scatter(x, y, s=500, color='green', marker='h')
#             ^^^^^

您还可以通过传递列表来指定单个标记大小:

scatter(x, y, s=[5, 50, 500, 1000, 1500, 2000], color='green', marker='h')

matplotlib.pyplot.scatter

于 2013-11-13T08:30:00.067 回答