Re: [Matplotlib-users] colorbar+log+latex

2010-04-20 Thread Yves Revaz
Ok, great, it works ! However, I do not understand why latex mode is disabled by default... Anyway, thanks a lot, yves Jae-Joon Lee wrote: I'm not sure if the default formatter needs to be changed. However, you may try import matplotlib.ticker as ticker

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-20 Thread Matthias Michler
On Monday 19 April 2010 20:36:15 Gökhan Sever wrote: On Mon, Apr 19, 2010 at 1:31 AM, Matthias Michler matthiasmich...@gmx.netwrote: On Sunday 18 April 2010 00:52:57 Gökhan Sever wrote: Hello, Let say we have a figure created by: plt.plot(range(100)) On WX backend

Re: [Matplotlib-users] skipping mpl-axes-interaction during key_press_event's

2010-04-20 Thread Matthias Michler
On Wednesday 17 March 2010 15:58:11 Matthias Michler wrote: On Wednesday 17 March 2010 15:05:32 John Hunter wrote: On Wed, Mar 17, 2010 at 4:10 AM, Matthias Michler matthiasmich...@gmx.net wrote: once more I'd like to ask for comments about my feature request and proposed patch.

[Matplotlib-users] about linux install

2010-04-20 Thread xhbhyq11
Hi: I install matplotlib under Red hat Linux .But I can't find Tkinter, can't use TkAgg.I install python is ActivePython6.5. please tell me how to do! Thank you! -- Download Intel#174; Parallel Studio Eval

[Matplotlib-users] How to show interactive plot window from program

2010-04-20 Thread Nikolaus Rath
Hello, When I'm calling the pyplot.plot function from ipython, I get a nice dialog in which I can zoom, pan save. How can I achieve the same thing from a non-interactive program? I tried fig = plt.figure() ax = fig.add_subplot(111) ax.contourf(stuff) fig.show() but this

Re: [Matplotlib-users] How to show interactive plot window from program

2010-04-20 Thread Ryan May
On Tue, Apr 20, 2010 at 8:56 AM, Nikolaus Rath nikol...@rath.org wrote: Hello, When I'm calling the pyplot.plot function from ipython, I get a nice dialog in which I can zoom, pan save. How can I achieve the same thing from a non-interactive program? I tried    fig = plt.figure()    ax

[Matplotlib-users] ticks at 0 and 2pi

2010-04-20 Thread Nikolaus Rath
Hello, I'm trying to plot something from 0 to 2pi: fig = plt.figure() ax = fig.add_subplot(111) ax.set_title('Radial Magnetic Field') ax.set_ylabel(r'Poloidal Angle $\theta$') ax.set_xlabel(r'Toroidal Angle $\phi$') ax.set_xticks([0, 2 * math.pi])

Re: [Matplotlib-users] ticks at 0 and 2pi

2010-04-20 Thread Ryan May
On Tue, Apr 20, 2010 at 8:58 AM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'm trying to plot something from 0 to 2pi:    fig = plt.figure()    ax = fig.add_subplot(111)    ax.set_title('Radial Magnetic Field')    ax.set_ylabel(r'Poloidal Angle $\theta$')    ax.set_xlabel(r'Toroidal

Re: [Matplotlib-users] Question about mathtext

2010-04-20 Thread Michael Droettboom
That's great news -- glad we got to the bottom of it, though I'm not sure how your system may have become wedged like that in the first place. I should have thought of this earlier, but if it happens again, can you send me your fontList.cache file so I can inspect it? There may be a bug in

Re: [Matplotlib-users] ticks at 0 and 2pi

2010-04-20 Thread Nikolaus Rath
On 04/20/2010 10:29 AM, Ryan May wrote: On Tue, Apr 20, 2010 at 8:58 AM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'm trying to plot something from 0 to 2pi: fig = plt.figure() ax = fig.add_subplot(111) ax.set_title('Radial Magnetic Field') ax.set_ylabel(r'Poloidal Angle

Re: [Matplotlib-users] Turning off minor grids on log scaled plot

2010-04-20 Thread Gökhan Sever
On Tue, Apr 20, 2010 at 2:42 AM, Matthias Michler matthiasmich...@gmx.netwrote: Hi Gökhan, thanks for testing this small patch. Maybe one of the developers could submit it or should I place it on the patch-tracker? Usually after some pinging someone picks up the code and commits in to the

[Matplotlib-users] How to make colormaps

2010-04-20 Thread Nikolaus Rath
Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer, or a basic example how to create a simple map that e.g. maps -1 to Red, 0 to White, and 1 to Blue? Thanks, -Nikolaus -- »Time flies

[Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Antony Lee
Hello, I'm currently writing a specialized image processing package using Matplotlib. The goal would be to let users use it interactively from an ipython console. So I have some functions for selecting points on plots (via button_press_event), and others for data plotting (and also for data

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Jim Vickroy
Nikolaus Rath wrote: Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer, or a basic example how to create a simple map that e.g. maps -1 to Red, 0 to White, and 1 to Blue? Thanks,

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Ryan May
On Tue, Apr 20, 2010 at 11:38 AM, Antony Lee antony@ensmp.fr wrote: Hello, I'm currently writing a specialized image processing package using Matplotlib. The goal would be to let users use it interactively from an ipython console. So I have some functions for selecting points on plots

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Ryan May
On Tue, Apr 20, 2010 at 11:40 AM, Jim Vickroy jim.vick...@noaa.gov wrote: Nikolaus Rath wrote: Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer, or a basic example how to create a simple

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Jim Vickroy
Ryan May wrote: On Tue, Apr 20, 2010 at 11:40 AM, Jim Vickroy jim.vick...@noaa.gov wrote: Nikolaus Rath wrote: Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer, or a basic example how

[Matplotlib-users] plotting in a loop

2010-04-20 Thread tomislav_ma...@gmx.com
Hello everyone, if I read a column file like this (simplified to integers): 0 1 2 3 1 2 3 4 2 3 4 5 3 4 5 6 with: data = np.loadtxt(fileName), why can't I use a for loop inside ipython (started with -pylab option) to plot each of the Line2D objects and then draw them on the plot? I am using

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Nikolaus Rath
On 04/20/2010 01:06 PM, Ryan May wrote: On Tue, Apr 20, 2010 at 11:40 AM, Jim Vickroy jim.vick...@noaa.gov wrote: Nikolaus Rath wrote: Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer,

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Ryan May
I don't know what your Google search results page presented, but the the second entry on the first search results page, for me, was the following: Cookbook/Matplotlib - Feb 12, 2010 ... Show colormaps - Small script to display all of the Matplotlib colormaps, and an exampleshowing how to

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Antony Lee
That would be a solution, indeed. However, is there really no way of coming back to a pre-plt.show() state once all windows are closed? What kind of irreversible things does plt.show() do? Thanks, Antony 2010/4/20 Ryan May rma...@gmail.com On Tue, Apr 20, 2010 at 11:38 AM, Antony Lee

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Antony Lee
2010/4/20 Ryan May rma...@gmail.com On Tue, Apr 20, 2010 at 4:44 PM, Antony Lee antony@ensmp.fr wrote: That would be a solution, indeed. However, is there really no way of coming back to a pre-plt.show() state once all windows are closed? What kind of irreversible things does

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Christopher Barker
Antony Lee wrote: Well, the problem isn't there (I believe). The workflow I'd like to implement is that, for example the user does some data processing (in ipython), plots some data (I need a show() here), closes the plot window, does some other data processing (in ipython), I'm bit

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Michiel de Hoon
--- On Tue, 4/20/10, Ryan May rma...@gmail.com wrote: Antony Lee antony@ensmp.fr wrote: That would be a solution, indeed.  However, is there really no way of coming back to a pre-plt.show() state once all windows are closed?  What kind of irreversible things does plt.show() do? It

Re: [Matplotlib-users] plotting in a loop

2010-04-20 Thread Stephen George
Hi, Sorry haven't used ipython, so not sure if there is another/better ipython way. Attached is how I solved it in normal python. I added a next line button to the graph, and set the ydata for the line each time the button is pushed. There is a couple of set_ylim lines commented out,

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Alan G Isaac
http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show hth, Alan Isaac -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Michiel de Hoon
Well, the example with the comment WARNING : illustrating how NOT to use show: for i in range(10): # make figure i show() works perfectly fine with the Mac OS X backend, and I doubt that there is some fundamental reason why this can work with the Mac OS X backend but not with other