Re: [Matplotlib-users] 3D curve and errors in axes3d

2007-04-11 Thread belinda thom
Thanks Eric! I'm kind of afraid to upgrade to the SVN version b/c I fear something else might break (I've yet to install matplotlib from source b/c of a few nagging Mac OS X issues). What would you recommend? There's also the issue of having to upgrade student machines for which I'm not ad

[Matplotlib-users] Fwd: 3d plotting question

2007-04-11 Thread belinda thom
Forwarding this to the list I'm curious if you run into another problem I recently reported. Can you do, e.g.: import copy import pylab as P import matplotlib.axes3d as P3 def test() : [X,Y] = P.meshgrid(P.linspace(-3,3,7),P.linspace(-3,3,7)) Z = copy.deepcopy(X) Z1 = copy.de

Re: [Matplotlib-users] 3d plotting question

2007-04-11 Thread belinda thom
> Hi Belinda, > > I've been playing with 3D plots and scatter plots in the past few days > and I've been able to get them working. You should be able to pass in > a c= parameter as you would for a normal 2d scatter plot. I've > been doing this and it's working for me. Interesting. I'm on Mac OS X

Re: [Matplotlib-users] 3d plotting question

2007-04-11 Thread belinda thom
Thanks for the input. Its easy for me to patch my own machine, but for students in my class who are using lab machines, its more difficult. Hopefully I can get someone to upgrade the machines in the lab I'm using. (Its difficult to get facilities people to agree to update coursework installs

Re: [Matplotlib-users] 3D curve and errors in axes3d

2007-04-11 Thread Eric Firing
Belinda, John has checked in some fixes for axes3d recently, and your test code now runs with the version in svn--except for the problem that you should use P.show() only once in a given script. (I think there is some backend for which you can get away with using it more than once, but this i

Re: [Matplotlib-users] Bug in 0.9?

2007-04-11 Thread Joshua J. Kugler
On Wednesday 11 April 2007 15:49, Eric Firing wrote: > It is a bug that is fixed in svn. The "this" part of the names is > incorrect. The revised function is: > > > def xaxis_date(self, tz=None): > """Sets up x-axis ticks and labels that treat the x data as dates. > > tz is

Re: [Matplotlib-users] 3D curve and errors in axes3d

2007-04-11 Thread belinda thom
On Apr 11, 2007, at 4:47 PM, belinda thom wrote: > Hi, > > I'm replying to this older thread > > http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/ > msg02100.html > > because it relates very much to my recent problem, posted at http:// > www.mail-archive.com/matplotlib-users@l

Re: [Matplotlib-users] 3D plotting lines / markers / colors question

2007-04-11 Thread belinda thom
On Apr 11, 2007, at 4:54 PM, belinda thom wrote: > Hi, > > What kwargs are available for plot3D and scatter3D? And what is the difference between plot3d and plot3D? The former seems most "matlab" like, and was what I was looking for: a way to plot individual points and/or curves in 3d using ma

[Matplotlib-users] 3D plotting lines / markers / colors question

2007-04-11 Thread belinda thom
Hi, What kwargs are available for plot3D and scatter3D? Thanks, --b - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & busines

Re: [Matplotlib-users] Bug in 0.9?

2007-04-11 Thread Eric Firing
It is a bug that is fixed in svn. The "this" part of the names is incorrect. The revised function is: def xaxis_date(self, tz=None): """Sets up x-axis ticks and labels that treat the x data as dates. tz is the time zone to use in labeling dates. Defaults to rc value.

Re: [Matplotlib-users] 3D curve and errors in axes3d

2007-04-11 Thread belinda thom
Hi, I'm replying to this older thread http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/ msg02100.html because it relates very much to my recent problem, posted at http:// www.mail-archive.com/matplotlib-users@lists.sourceforge.net/ msg03037.html. This problem seems more gene

[Matplotlib-users] Matplotlib 0.90.0 on OS-X with wxPython2.8.3

2007-04-11 Thread Christopher Barker
Hi all, I've got the MPL 0.90.0 installer on pythonmac working OK with: Python2.5 wxPython2.8.3 I accomplished this by removing: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_wxagg.so Which disables the accelerator that doesn't work with wxP

[Matplotlib-users] Bug in 0.9?

2007-04-11 Thread Joshua J. Kugler
We had some working code were were using with 0.87, but when we try to use it with 0.90, we get the following error: File "/usr/local/lib/python2.4/site-packages/EEIGraph/BaseGraph.py", line 250, in plotDate line = self.main_axes.plot_date( g[:,0], g[:,1] ) File "/usr/lib/python2.4/site-

Re: [Matplotlib-users] 3d plotting question

2007-04-11 Thread belinda thom
I also seem to have some other 3D plotting problems. Again, following some of the demo/test advice in the cookbook, I tried things like import pylab as p import matplotlib.axes3d as P3 P3.test_surface() and get errors (seems Axes3D needs a figure, no?). I'm using matplotlib version 0.

[Matplotlib-users] 3d plotting question

2007-04-11 Thread belinda thom
Hi, I'm having problems plotting two different kind of graphs on the same 3D figure. Was hoping for some pointers. Here's some basic test code, to demonstrate what I'd like to be able to do. import copy import pylab as P import matplotlib.axes3d as P3 def test() : [X,Y] = P.

Re: [Matplotlib-users] Matplotlib conflicts with python-dateutils?

2007-04-11 Thread Joshua J. Kugler
On Thursday 05 April 2007 17:04, Andrew Straw wrote: > Joshua J. Kugler wrote: > > Installing an egg today, I got this message from easy_install: > > > > /usr/bin/easy_install:5: UserWarning: Module dateutil was already > > imported from > > /usr/lib/python2.4/site-packages/matplotlib-0.87.7-py2.4-

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-11 Thread Archana Ganesan
Hi Werner, I tried what you suggested, using the setup file you had provided for simple_plot.py. But I get the following error, what should I do abt this? Traceback (most recent call last): File "simple_plot.py", line 1, in ? File "pylab.pyo", line 1, in ? File "matplotlib\pylab.pyo", line 203

Re: [Matplotlib-users] legend for a plot with markers every 20th data point?

2007-04-11 Thread Maddox Flower
Jouni K. Seppänen wrote: > Make the legend first with only the line, then modify the line within > the legend: > > from numpy import arange, sin > x = arange( 0., 1., 0.001 ) > y = sin( 50*x ) > line = plot(x, y, '-r') > markers = plot(x[::20], y[::20], 'ro') > lgd = legend([line], ['data'], numpo

Re: [Matplotlib-users] . Newbie. Interactive and saving plots to file

2007-04-11 Thread Christopher Barker
[EMAIL PROTECTED] wrote: > I edited the matplotlibrc to interactive: False and backend: Agg, and it > works great. (produces .png) no need. as the name implies, TKagg is already using agg internally, so you can just use pylab.savefig (or better yet, figure.savefig), and get the same high qualit

Re: [Matplotlib-users] legend for a plot with markers every 20th data point?

2007-04-11 Thread John Hunter
On 4/11/07, Maddox Flower <[EMAIL PROTECTED]> wrote: > Hi there, > > say, I have x and y data like this (the real data I am working with is > from numerical simulations, though): > > from numpy import arange, sin > x = arange( 0., 1., 0.001 ) > y = sin( 50*x ) > > Now, a line plot would not look ve

Re: [Matplotlib-users] legend for a plot with markers every 20th data point?

2007-04-11 Thread Jouni K . Seppänen
Maddox Flower <[EMAIL PROTECTED]> writes: > What fails me is how to make a legend with the appropriate 'combined' > line style '-ro'? Make the legend first with only the line, then modify the line within the legend: from numpy import arange, sin x = arange( 0., 1., 0.001 ) y = sin( 50*x ) line =

[Matplotlib-users] legend for a plot with markers every 20th data point?

2007-04-11 Thread Maddox Flower
Hi there, say, I have x and y data like this (the real data I am working with is from numerical simulations, though): from numpy import arange, sin x = arange( 0., 1., 0.001 ) y = sin( 50*x ) Now, a line plot would not look very decent because of the 1000 overlapping markers: plot(x, y, '-ro')

Re: [Matplotlib-users] index out of bounds if X not equals to y

2007-04-11 Thread Pierre GM
On Wednesday 11 April 2007 03:28:09 elekis wrote: Hi, Just some quick comments: 1. learn list comprehensions, they're far faster than regular loops. data = [(i,j,int(numpy.random.random()*10)) for i in range(XI) for j in range(JI)] 2. if you don't really need the triplets, but j

Re: [Matplotlib-users] . Newbie. Interactive and saving plots to file

2007-04-11 Thread massimo sandal
[EMAIL PROTECTED] ha scritto: The question is, do people wanting to do this have to edit the matplotlibrc and restart Python each time, or is there some other way? Try to look for savefig() m. -- Massimo Sandal University of Bologna Department of Biochemistry "G.Moruzzi" snail mail: Via Irn

[Matplotlib-users] index out of bounds if X not equals to y

2007-04-11 Thread elekis
hi all I have a little script who just plot some tripet (random triplet) but I have a index out of bound What I don't understand is if Xl is diff of Yl , I have that error Traceback (most recent call last): File "test_plot3D.py", line 26, in ax.plot_wireframe(X, Y, Z) File "/usr/lib/python2