SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Christian M. <mee...@un...> - 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
From: Stefan v. d. W. <st...@su...> - 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
From: Christian M. <mee...@un...> - 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 ...)
From: <dd...@ja...> - 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
From: Jouni K S. <jk...@ik...> - 2006年09月29日 05:51:25
Stefan van der Walt <st...@su...> 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
From: Christian M. <mee...@un...> - 2006年09月29日 07:56:08
On Friday 29 September 2006 07:50, Jouni K Seppanen wrote:
> Stefan van der Walt <st...@su...> 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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /