There are a couple of ways. See below:
# untested, might have typos ~~~~
import numpy as np
import matplotlib.pyplot as pl
x = np.random.randn(20)
fig = pl.figure()
ax = pl.add_subplot(1,1,1)
# you can specify the marker size two ways directly:
ax.plot(x, 'ko', markersize=4) # size in points
ax.plot(x, 'bs', ms=4) % ms is just an alias for markersize
# or you can specify it after the plotting:
X = ax.plot(x, 'ko') # X is a *list* of line2d objects...
X.set_markersize(4) # set_ms works too
pl.setp(Y, markersize=4) # again, ms works.
For a list of all the properties you can tweak, type:
From: mikey [mailto:abc.mikey@…982…]
Sent: Friday, February 26, 2010 4:29 PM
Subject: [Matplotlib-users] Change the size of the plotted 'o's ?
I've just made script for displaying discrete data clustered in boxes
on my graph. The plots are plotted with plt.plot(x,y,'o') and the 'o's
seem a reasonable size on screen but when I render it to file they
look huge so I'd like to reduce their size. Does anyone know how this