Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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()
Specify using s keyword argument:
s
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.
matplotlib.pyplot.scatter
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.