Re: [Matplotlib-users] plot a data stream with matplotlib

2009-01-23 Thread Simone Gabbriellini
that's nice!!! thank you...

anyway, I wanted to take advantage of the Traits implementation of my app...

simone

2009/1/23 eliben eli...@gmail.com:



 Simone Gabbriellini-3 wrote:

 Dear List,

 I have some variables I want to plot... the values of those variable
 change in time... I would like to plot the result with a traditional
 line plot

 those variables are traits of a class (don't know if this can make a
 difference...)

 is there any example of this with matplotlib?


 Hi Simone,

 I think you will find the following  examples useful:
 http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/

 Both feature dynamic plotting of variables that change (either by the user
 or in time)

 Eli


 --
 View this message in context: 
 http://www.nabble.com/plot-a-data-stream-with-matplotlib-tp21530559p21622559.html
 Sent from the matplotlib - users mailing list archive at Nabble.com.


 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-23 Thread mzs


Thank you.  I finally upgraded my Ubuntu system, pretty easy, and now pylab
is available.  Thank you to everyone on this thread for your input.

BTW, matplotlib is very nicely done, useful, and appreciated.

Marc


Sandro Tosi-4 wrote:
 
 On Wed, Jan 21, 2009 at 15:01, mzs m...@thebrookhavengroup.com wrote:

 Thank you for the information.  I figured out that using pylab works.  I
 would rather use a current version.  I tried to find the version you
 mentioned in a deb package for Ubuntu but it doesn't seem to exist.  Do
 you
 know why or where can I get it?
 
 Probably there are none for the version of Ubuntu you're using but
 there are newer packages in Ubuntu[1].
 
 I'm not a Ubuntu guru, but you seem to be rather old in version, I
 suggest, given the short release period, to keep your system
 up-to-date to the current version (not 8.10 I think) and there there
 are newer binary packages too[2].
 
 [1] https://launchpad.net/ubuntu/+source/matplotlib
 [2] http://packages.ubuntu.com/search?keywords=python-matplotlib
 
 Regards,
 -- 
 Sandro Tosi (aka morph, morpheus, matrixhasu)
 My website: http://matrixhasu.altervista.org/
 Me at Debian: http://wiki.debian.org/SandroTosi
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 

-- 
View this message in context: 
http://www.nabble.com/ImportError%3A-No-module-named-pyplot-tp21576482p21630876.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] plotting a circle in log space

2009-01-23 Thread Michael Hearne
I have discovered, from the mailing list, the easy way to draw a circle 
in linear space:

cx = 700
cy = 700
r = 1000

xmin = cx - r
xmax = cx + r
ymin = cy - r
ymax = cy + r

cir = Circle( (cx,cx), radius=r,facecolor='w',edgecolor='b')
a = gca()
a.add_patch(cir)

axis([xmin,xmax,ymin,ymax])
axis('equal')

However, when trying to overplot a circle on an existing log/log plot, I 
get a circle section:
e = 
[70,1,1,12,7,185,6,3,0,1015,6,222,500,0,661,105,0,8706,0,23,131,0,0,0,6,22,1,4,0]
o = 
[180,2,0,15,13,3,0,0,0,20,6,2000,9748,0,38,100,0,20023,0,2,0,0,0,0,1,0,0,0,1]
f1 = figure()
loglog(o,e,'b.')
hold('on')
cx = 700
cy = 700
r = 1000

xmin = cx - r
xmax = cx + r
ymin = cy - r
ymax = cy + r

cir = Circle( (cx,cx), radius=r,facecolor='w',edgecolor='b')
a = gca()
a.add_patch(cir)

axis([xmin,xmax,ymin,ymax])
axis('equal')

How can I plot a circle in log space?

As an additional aside, I've discovered that even if I define the points 
that make up a circle (in linear space), I cannot plot a smooth line 
through them using the plot() function:
def pol2cart(th,r):
x = r*cos(th)
y = r*sin(th)
return (x,y)
   
def drawCircle(cx,cy,radius,np,style):
theta = linspace(0,2*pi,np)
rho = ones((1,np))*radius
x,y = pol2cart(theta,rho)
x = x + cx
y = y + cy
plot(x,y,style)

cx = 700
cy = 700
r = 1000
drawCircle(cx,cy,r,1000,'b')

When I look at the resulting plot, I see empty axes.  If I change the 
plot style to 'b.', then I see the circle.  Is this a bug or an 
undocumented feature?

Thanks,

Mike Hearne

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Safe SVN version

2009-01-23 Thread jason-sage
Hello all,

I am at a Sage days workshop and one of my goals is to update matplotlib 
in Sage.  We want to pull from SVN since there are some (very *nice*) 
arrow-drawing features only in SVN.  Is there any recent commit points 
that we want to avoid because of stability?  If not, we'll probably 
update to the most recent svn version, which I'm pulling right now.

Thanks,

Jason


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users