line styles with hollow circles?

Hi,

I'd like to plot experimental data points with fitted data through it. This
time best would be to plot hollow circles for the experimental data. Pretty
much like literal 'o's (except, of course, that passing 'o' results in thick
circles).
Is this possible somehow?

TIA
Christian

I'm sure someone will soon provide you with an insightful answer. In
the meantime, you can fudge it by doing

plot(x,y,'o',markerfacecolor='w')
plot(x,y)

Regards
Stéfan

···

On Thu, Sep 28, 2006 at 08:24:44PM +0200, Christian Meesters wrote:

I'd like to plot experimental data points with fitted data through it. This
time best would be to plot hollow circles for the experimental data. Pretty
much like literal 'o's (except, of course, that passing 'o' results in thick
circles).
Is this possible somehow?

I'm sure someone will soon provide you with an insightful answer. In
the meantime, you can fudge it by doing

plot(x,y,'o',markerfacecolor='w')

And this is not an "insightful answer"? Anyway, thanks a lot!
Christian (who was to tired to look at the right place ...)

Hi Christian,

I've been using the Rectangle class in patches to plot unfilled
rectangles. Circle and Polygon classes are also available that you
may find useful.

You can control the filling, the colors of the faces and edges, and
the thickness of the edges.

Here's an example for an unfilled red rectangle.

from matplotlib.patches import Rectangle
...
...
fig=figure(figsize=(W,H))
ax = fig.add_axes([left,bottom,width,height])
p=Rectangle([x,y], 4.0, 0.6, fill=False, linewidth=1, edgecolor="red")
ax.add_patch(p)

-Cheers

···

On Thursday 28 September 2006 1:24 pm, Christian Meesters wrote:

Hi,

I'd like to plot experimental data points with fitted data through
it. This time best would be to plot hollow circles for the
experimental data. Pretty much like literal 'o's (except, of
course, that passing 'o' results in thick circles).
Is this possible somehow?