Re: [Matplotlib-users] Forcing full value on axis (Dave Simpson)

2007-04-25 Thread David Simpson
I also had some trouble with exponents in an axis, getting 0.0 to 3.0 on the axis, with +1.998e3. I wanted the years 1998 to 2001 instead. I solved this using the following code (with the solution bits commented out): #!/usr/bin/env python from pylab import * # from matplotlib.ticker import Format

Re: [Matplotlib-users] Forcing full value on axis

2007-04-25 Thread John T Whelan
On Tue, 24 Apr 2007, Tommy Grav wrote: > I have a plot where the x axis ticks are given as > 0.1 0.15 0.20 0.025 0.30 0.35 > with +3.732e2 given in the lower right of the axis. > How can I force the ticks to have > 373.3 373.35 If all else fails, you can set the tick labels by hand.

Re: [Matplotlib-users] question about autoscale_view()

2007-04-25 Thread John Hunter
On 4/23/07, Eric Firing <[EMAIL PROTECTED]> wrote: > The autoscaling mechanism does not keep track of plot elements, so it > has no way of knowing what to change when you delete a line. You will > have to keep track of the x and y extents of each element yourself, and > manually reset the xlim an

Re: [Matplotlib-users] confusion about what part of numpy pylab imports

2007-04-25 Thread Mark Bakker
Well, if I can cast a vote, it would make a lot of sense if pylab functions do the same thing as numpy functions. Right now it is exceedingly confusing when I teach, that zeros() could be integers or floats. An rc parameter where we would import straight from numpy would be most excellent. Can't w

Re: [Matplotlib-users] confusion about what part of nu mpy pylab imports

2007-04-25 Thread Alan G Isaac
On Wed, 25 Apr 2007, Mark Bakker apparently wrote: > it would make a lot of sense if pylab functions > do the same thing as numpy functions. Yes. This should be the default. Backward compatability can be provided via numpy's compatability module. A user's view, Alan Isaac

[Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Andrew Straw
The May/June issue of Computing in Science and Engineering http://computer.org/cise: is out and has a Python theme. Many folks we know and love from the community and mailing lists contribute to the issue. Read articles by Paul Dubois and Travis Oliphant for free online. ---

[Matplotlib-users] Fwd: Problem with Tk-Backend

2007-04-25 Thread Thorsten Kranz
Hi everyone, I'm new here and I have a question ( I guess as everybody who is new here ;-) ), I'm having some strange problem with Matplotlib, using it in a Tkinter application. I create a Canvas, a figure, subplot and then a toolbar. It works fine, but only without the toolbar! When I want to

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Fernando Perez
On 4/25/07, Andrew Straw <[EMAIL PROTECTED]> wrote: > The May/June issue of Computing in Science and Engineering > http://computer.org/cise: is out and has a Python theme. Many folks we > know and love from the community and mailing lists contribute to the > issue. Read articles by Paul Dubois and

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread John Hunter
On 4/25/07, Fernando Perez <[EMAIL PROTECTED]> wrote: > Since authors are allowed by their publication policy to keep a > publicly available copy of their papers on their personal website, > here's the ipython one: Didn't know that... here's a link to my matplotlib article http://nitace.bsd.uchi

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Fernando Perez
On 4/25/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 4/25/07, Fernando Perez <[EMAIL PROTECTED]> wrote: > > Since authors are allowed by their publication policy to keep a > > publicly available copy of their papers on their personal website, > > here's the ipython one: > > Didn't know that...

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Andrew Straw
(Off list...) (Another g-mailer, huh? Soon they'll know everything about everyone...) Thanks for that info re: online paper copies. I'm actually a week or two away from submitting a follow-up paper from my SciPy '06 talk to them... And submitting to a non-open-access journal was one issue. But

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Andrew Straw
Andrew Straw wrote: > (Off list...) > Eek, well, not off-list! :) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data.

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Christopher Barker
Fernando Perez wrote: > This explicitly mentions author website redistribution, as long as > the official IEEE version is used. > > Unless I'm misreading the above, I think it's OK for us to keep such > copies in our personal sites. We can link to them from the scipy > wiki, though I don't think

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Fernando Perez
On 4/25/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > Fernando Perez wrote: > > This explicitly mentions author website redistribution, as long as > > the official IEEE version is used. > > > > Unless I'm misreading the above, I think it's OK for us to keep such > > copies in our personal si

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Suresh Pillai
This is correct, and is standard for almost all publications I know. You are allowed to publish the article on your own personal website (provided you use the published version or explicitly list the copyrights), but nowhere else. Cheers, Suresh On Wed, 25 Apr 2007, Fernando Perez wrote: > We

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Ryan Krauss
My CiSE article can be downloaded from here: http://www.siue.edu/~rkrauss/python_stuff.html Ryan On 4/25/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 4/25/07, Fernando Perez <[EMAIL PROTECTED]> wrote: > > Since authors are allowed by their publication policy to keep a > > publicly available c

[Matplotlib-users] How to highlight part of a matrix (or wash out the rest of it)

2007-04-25 Thread Michael Lerner
Hi, I have a square matrix that I'm plotting with pcolormesh. I want to highlight certain parts of it. For instance, I might want to highlight rows and columns 4-20 and 67-80. I can get the opposite of what I want by doing something like pylab.axvspan(4,20,fc='white',lw=0.,alpha=0.15) pylab.ax

Re: [Matplotlib-users] Newbie. Memory useage question

2007-04-25 Thread brett . mcsweeney
Thanks John, that works perfectly. Best regards, Brett McSweeney On 4/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm producing series of plots (spectograms) in a program loop using imshow > and saving each plot to .png. Even though I close() each plot after each > savefig(...)