## [Matplotlib-users] line styles with hollow circles?

 [Matplotlib-users] line styles with hollow circles? From: Christian Meesters - 2006-09-28 18:23:28 ```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 ```

 [Matplotlib-users] line styles with hollow circles? From: Christian Meesters - 2006-09-28 18:23:28 ```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 ```
 Re: [Matplotlib-users] line styles with hollow circles? From: Stefan van der Walt - 2006-09-28 21:17:43 ```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=20 > time best would be to plot hollow circles for the experimental data. Pr= etty=20 > much like literal 'o's (except, of course, that passing 'o' results in = thick=20 > 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=3D'w') plot(x,y) Regards St=E9fan ```
 Re: [Matplotlib-users] line styles with hollow circles? From: Christian Meesters - 2006-09-28 21:24:01 ```> > 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 ...) ```
 Re: [Matplotlib-users] line styles with hollow circles? From: - 2006-09-29 01:40:42 ```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? 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 ```
 Re: [Matplotlib-users] line styles with hollow circles? From: Jouni K Seppanen - 2006-09-29 05:51:25 ```Stefan van der Walt writes: > plot(x,y,'o',markerfacecolor='w') This makes circles filled with white. If you want circles that don't obscure whatever is behind them, use markerfacecolor=None. -- Jouni ```
 Re: [Matplotlib-users] line styles with hollow circles? From: Christian Meesters - 2006-09-29 07:56:08 ```On Friday 29 September 2006 07:50, Jouni K Seppanen wrote: > Stefan van der Walt writes: > > plot(x,y,'o',markerfacecolor='w') > > This makes circles filled with white. If you want circles that don't > obscure whatever is behind them, use markerfacecolor=None. Jouni, Bill, thank you both for the warning / reminder. I guess Stefan's snippet was merely meant as an example to stimulate my memory :-).Everybody seeing such an example will start to tinker around and try several things - as I did. Cheers Christian ```