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

2007-04-12 Thread belinda thom
On Apr 12, 2007, at 11:02 AM, Eric Firing wrote: > belinda thom wrote: > >> Me neither :-). I will try and get permission to upgrade axis.py w/ >> my quick fix commenting out the kwargs in line 2131 of axes.py, as >> this is the quick option and I need something ASA

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

2007-04-12 Thread belinda thom
Eric, On Apr 12, 2007, at 12:16 AM, Eric Firing wrote: > belinda thom wrote: >> 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 naggin

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

2007-04-11 Thread belinda thom
iven script. (I think > there is some backend for which you can get away with using it more > than once, but this is not good practice.) > > Eric > > belinda thom wrote: >> On Apr 11, 2007, at 4:47 PM, belinda thom wrote: >>> Hi, >>> >>> I'

[Matplotlib-users] Fwd: 3d plotting question

2007-04-11 Thread belinda thom
viding more info. --b Begin forwarded message: > From: "Richard Brown" <[EMAIL PROTECTED]> > Date: April 11, 2007 8:41:37 PM PDT > To: "belinda thom" <[EMAIL PROTECTED]> > Subject: Re: [Matplotlib-users] 3d plotting question > > On 12/04/07, belin

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 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.m

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

[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] 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

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] passing mouse clicks back to a polling application

2007-04-08 Thread belinda thom
Thanks everyone for the advice. For anyone in my boat following this thread, here's what I ended up doing: Had a stroke of insight and coded the whole thing up (poorly) using maptlotlib w/no polling. In other words, the entire API sat in the mouse click callback function. Lame, yes---especi

Re: [Matplotlib-users] passing mouse clicks back to a polling application

2007-04-05 Thread belinda thom
On Apr 5, 2007, at 1:20 PM, Ken McIvor wrote: > On Apr 5, 2007, at 2:14 PM, belinda thom wrote: >> >> I do think its valuable to be able to write a blocking mouse >> function. After your pointer to Timer (which led me to the threading >> Python library) and idle h

Re: [Matplotlib-users] passing mouse clicks back to a polling application

2007-04-05 Thread belinda thom
On Apr 5, 2007, at 6:27 AM, John Hunter wrote: > On 4/5/07, belinda thom <[EMAIL PROTECTED]> wrote: > >> My app needs to look something like this: >> >> -- >> >> create a game and display it in a matplotlib figure >> >> while game not o

Re: [Matplotlib-users] passing mouse clicks back to a polling application

2007-04-05 Thread belinda thom
Hi Angus and the Matplotlib community, I'm finally getting around to trying your suggestions, which at first blush seem like they'd do what I want, so THANKS for that! But I'm still running into issues for which I'm uncertain how to proceed. I outline my stumbling blocks below, which have to

[Matplotlib-users] passing mouse clicks back to a polling application

2007-03-23 Thread belinda thom
Hi, I'm trying to write a very simple GUI using matplotlib and have gotten stuck. Hopefully someone out there has done something similar and can point me on my way. First, I should mention that the examples provided with matplotlib weren't immediately helpful to me, because when I try to ru

Re: [Matplotlib-users] reversing an axis

2007-03-23 Thread belinda thom
Eric, This is great; much thanks! --b On Mar 23, 2007, at 3:16 PM, Eric Firing wrote: > belinda thom wrote: >> Hi, >> I'm wondering if there's an easy way to reverse an axis in a plot. > > Using methods: > > bottom, top = ax.get_ylim() > ax.set_ylim(t

[Matplotlib-users] reversing an axis

2007-03-23 Thread belinda thom
Hi, I'm wondering if there's an easy way to reverse an axis in a plot. For instance, suppose I wanted to create a plot that had its "origin" in the upper left hand corner, so that x would range from, say 0 to 1 moving right, and y would range from, say 0 to 1, moving down. Thanks! --b ---

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread belinda thom
Hi, > With the exception of ipython -pylab, noone is forcing you to import > *. And on the subject, Fernando, perhaps we should support a pylab > mode in ipython which doesn't dump the pylab namespace (or maybe just > dumps the required figure, show, close, nx), but does the interactive > backend

Re: [Matplotlib-users] [Pythonmac-SIG] Compiling Scipy/available binaries for Universal Python 2.4?

2007-01-11 Thread belinda thom
FWIW On Jan 11, 2007, at 5:29 PM, Bob Ippolito wrote: > On 1/11/07, Nicholas Riley <[EMAIL PROTECTED]> wrote: >> On Thu, Jan 11, 2007 at 02:21:19PM -0800, Christopher Barker wrote: >>> Is it that hard to make a binary to put up (OK, two - one for >>> PPC, one >>> for Intel), once you've gotten

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-11 Thread belinda thom
> PPS: Belinda, now that you've done all this work, I do hope you can > go the extra mile and figure out how to make a binary package of it > all for others! I certainly would like to to do this, but its gonna have to wait until after TheCurrentCrisis alleviates. Hopefully before Feb (in the

Re: [Matplotlib-users] clearing a figure

2007-01-11 Thread belinda thom
so use pylab.gca() ? On Jan 11, 2007, at 3:31 PM, Christopher Barker wrote: > Jeff Whitaker wrote: > >> Chris: In the pylab interface, figure() returns a figure instance >> and >> plot(x,y) returns a list of Line2d instances. > > yes, but it's the axis instance that you are most likely to need

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread belinda thom
Hi, On Jan 10, 2007, at 5:56 PM, Robert Kern wrote: > belinda thom wrote: >> I went back and retried the plotting w/wx >> as a backend and discovered that wx FAILS with PYTHONW and PYTHON >> (appended). > > Okay, what version of wxPython did you install? What

Re: [Matplotlib-users] clearing a figure

2007-01-10 Thread belinda thom
On Jan 10, 2007, at 4:57 PM, Eric Firing wrote: > Christopher Barker wrote: >> Eric Firing wrote: >>> This is the big difference between most pylab functions and the >>> corresponding axes or figure methods that they wrap: the pylab >>> functions automatically take care of redrawing the figure if

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread belinda thom
brary/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/matplotlib/backends/backend_wx.py", line 1172, in draw_if_interactive figManager.canvas.draw() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/matplotlib/backends/backend_wx

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread belinda thom
Robert, > Try running with pythonw. Do you know how to fix this in IDLE (it must be using python as opposed to pythonw somehow). Thanks again for all your help, --b - Take Surveys. Earn Cash. Influence the Future of IT J

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread belinda thom
Thanks. And running w/pythonw does what it should :-). On Jan 10, 2007, at 12:16 PM, John Hunter wrote: >> "Robert" == Robert Kern <[EMAIL PROTECTED]> writes: > > Robert> Personally, I think the warnings are a bit overzealous and > Robert> should be silenced. It's not as if the use

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread belinda thom
I am posting this message to both numpy and matplotlib mailing lists because the thread relates to both. First, Robert Kern kindly provided step-by-step instructions for Macs (PPCs and Intels) regarding how to install FROM SOURCE the packages needed to allow Python to become a viable alterna

Re: [Matplotlib-users] idle and ipython and axis

2007-01-10 Thread belinda thom
Mark, > BTW, when you use pylab in interactive mode, the axis() command > should scale your figure interactively, also under IDLE. Have you > tried that? Yes, I tried using axis in both IDLE and IPython. IPython's redrew the axis automatically whereas IDLE's did not. I am not sure, but I t

[Matplotlib-users] idle and ipython and axis

2007-01-09 Thread belinda thom
Hi, I've been playing w/both IDLE and IPython, using TkAgg in both cases as the back end. Also, I've got the latest matplotlib and ipython versions and am using MacPython's 2.4.4 IDLE. It seems that if IDLE is not invoked w/the -n flag, the figures that are drawn can often get the "whirlin

Re: [Matplotlib-users] clearing a figure

2007-01-09 Thread belinda thom
keep adding to, which is great. Is passing a hold=False arg to a drawing command the preferred way to clear a figure, or is clear() not working properly? Many thanks, --b On Jan 9, 2007, at 7:50 PM, belinda thom wrote: > Hello, > > I'm a new matplotlib user, coming from

[Matplotlib-users] clearing a figure

2007-01-09 Thread belinda thom
Hello, I'm a new matplotlib user, coming from the Matlab end. Is there a standard way to create a figure (here I'd like the equivalent of matlab's hold on, so I can draw multiple things) and then clear the figure (so the drawing goes away) so I can repeat the process again? The commands to

Re: [Matplotlib-users] numpy and matplotlib usage

2007-01-04 Thread belinda thom
Fernando Perez wrote: > hopefully the responsibilities will be: > > - ipython -> interactive work > - numpy/scipy -> numerics > - matploblib -> plotting > On Jan 3, 2007, at 10:01 AM, Christopher Barker wrote: I sure hope so too. > Following these ideas, in my personal use I normally do: > > i

[Matplotlib-users] saving data to a file

2007-01-02 Thread belinda thom
Hi, Is there a way for me to keep adding the next row of a 2d array to a file via load? (matlab's save had a very useful -append option). I managed to get 2d laod/save working, e.g. import numpy as N import pylab as P import bthom.utils as U # a numpy 2d array a = N.arange(12,dt

[Matplotlib-users] load_demo.py

2007-01-02 Thread belinda thom
Hi, The documentation for pylab.load mentions the load_demo.py example. I can't find this on my distribution. I believe all Pylab examples live in site-packages/doc/matplotlib, for in there are files like log_demo.py (the only file that begins with load is load_converter.py, which is demons

[Matplotlib-users] archives

2006-12-29 Thread belinda thom
Hi, The source forge archive for this mailing list: http://sourceforge.net/mailarchive/forum.php? forum_id=33405&max_rows=25&style=ultimate&viewmonth=200612 has no posts listed as of 12/24/06. I've posted several things today and would like to be able to view their progress. Has this archi

[Matplotlib-users] numpy and matplotlib usage

2006-12-29 Thread belinda thom
Hi, I'm using matplotlib w/numerix set to numpy (as described in my prior post). What I am wondering is in what situations one would want to: import pylab import numpy together, because there is matlab-style stuff (e.g. matrices, arrays, cumprod, fft, arange etc.) by importing the pylab pac

[Matplotlib-users] matplotlibrc numerix Numeric problem

2006-12-29 Thread belinda thom
Hi, I'm unable to use matplotlib when I have the following line in my matlabplotrc file: numerix Numeric. There is no problem when I use: numerix numpy Here's my setup: Mac G5 w/OS X 10.4.8, using MacPython 2.4, numpy.__version__ is 1.0, matplotlib.__version__ 0.87.7 and Numeric.__version_

Re: [Matplotlib-users] Usability with matplotlib

2006-12-17 Thread belinda thom
On Dec 16, 2006, at 8:10 PM, John Hunter wrote: > Simson> 3. If I was going to make a major change to the API at > Simson> this point, it would be to make it so that you don't have > Simson> a class/function/ identifier called "axes" and another one > Simson> called "axis." I freq

Re: [Matplotlib-users] two y axes via twinx and legends

2006-12-09 Thread belinda thom
Looks like I've been able to help myself on this one. I'll post this here b/c others had asked about this in prior emails and I never saw an answer given. You can make your own custom legend by keeping the return values from each plot command: e.g. l1 = plot() twinx() l2 = plot() legend([

Re: [Matplotlib-users] more outdated/unhelpful documentation and installation issues on Mac OS X 10.4

2006-12-09 Thread belinda thom
Note: there is a type-o in the above email. "W/MacPorts, I've been able to get the TkAgg backend to work" should be "W/MacPython, I've been able to get the TkAgg backend to work" - Take Surveys. Earn Cash. Influence

[Matplotlib-users] two y axes via twinx and legends

2006-12-09 Thread belinda thom
Hi, This mailing list is great---I've gotten a couple very useful replies from others in a very short time period. Thanks! And now, onto my next question. I need to construct a two-y-axis plot. I've found some hints on how to do this on the mailing archive (Subject: secondary y-axis, Date:

[Matplotlib-users] putting "persistent" lines on figures

2006-12-08 Thread belinda thom
Hi, I could've sworn I recently read about how to draw a line on a plot in such a way that you see it regardless of what the axis ranges are. Now that I need it, I can't find it anywhere. I'm not even sure what to search for. I suspect this is really trivial and hope some more advanced users

[Matplotlib-users] out-dated documentation

2006-12-08 Thread belinda thom
suite and much more; see >MacEnthon." should be removed. Whoever maintains this page should make the appropriate change. On Dec 6, 2006, at 11:38 PM, Robert Kern wrote: > belinda thom wrote: >> I do not want to compile code myself unless absolutely necessary. I >> was wo

[Matplotlib-users] obtaining version info

2006-12-08 Thread belinda thom
Hi, Perhaps I'm missing something really basic, but I can't figure out how to query pylab as to what version it is (the usual import , .__version doesn't work). Advice appreciated. --b - Take Surveys. Earn Cash. Influen

[Matplotlib-users] more outdated/unhelpful documentation and installation issues on Mac OS X 10.4

2006-12-08 Thread belinda thom
Hi again, At http://matplotlib.sourceforge.net/installing.html under topic OS X: "All of the backends run on OS X. Chris Barker has built a binary package (fink users see below) for matplotlib which is hosted on pythonmac, and works with Agg, Wx and Tk; see the step-by-step instructions

[Matplotlib-users] open figures list

2006-12-06 Thread belinda thom
Hello, Is there a way to return a list of all the open figure numbers? For instance, if I had: close('all') figure(1) [some plotting] figure(5) [some plotting] I'd like to be able to have access to a command that returns the list [1, 5]. Thanks, --b ---