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()

1 Answer 1

7

Specify using s keyword argument:

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

You can also specify individual marker size by passing a list:

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

See matplotlib.pyplot.scatter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.