[Matplotlib-users] Custom toolbar.Is it possible?

2009-07-27 Thread Alexander Bruy
Hello, matplotlib have nice and helpfull feature - navigation toolbar. But in some cases some default buttons are not needed. Is it possible to customize NavigationToolbar (e.g. disable or hide some buttons)? I'm use matplotlib with PyQt 4.4.3 and Python 2.5.4 under Windows XP. Thanks, Al

Re: [Matplotlib-users] Equal area projection

2009-07-27 Thread Jeff Whitaker
Angus McMorland wrote: > Hi all, > > I've recently implemented a simple equal area (Lambert) projection in > mpl, using two polar Axes (to draw each hemisphere), and this > currently works fine to draw lines and points, since I'm transforming > the points in my own code, from 3d-polar to 2d-project

[Matplotlib-users] Equal area projection

2009-07-27 Thread Angus McMorland
Hi all, I've recently implemented a simple equal area (Lambert) projection in mpl, using two polar Axes (to draw each hemisphere), and this currently works fine to draw lines and points, since I'm transforming the points in my own code, from 3d-polar to 2d-projected-polar co-ordinates, and then pl

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Jae-Joon Lee
On Mon, Jul 27, 2009 at 4:06 PM, Gewton Jhames wrote: > How to "trim the canvas" of the image generated? It's transparent, but still > have a "padding", if it would be cropped, I can safe almost 200px!. I have > attached a file to this email to show it, the background of the graph was > set to red

Re: [Matplotlib-users] Design questions

2009-07-27 Thread John Hunter
On Mon, Jul 27, 2009 at 3:06 PM, Gewton Jhames wrote: > Thanks everyone. Everything works perfectly. > Only a few things left: > > How to "trim the canvas" of the image generated? It's transparent, but still > have a "padding", if it would be cropped, I can safe almost 200px!. I have > attached a f

Re: [Matplotlib-users] Design questions

2009-07-27 Thread John Hunter
On Mon, Jul 27, 2009 at 10:55 AM, Tony S Yu wrote: > Below is some code to do 1, 2, and 4. > The 3rd issue is a bit more difficult. One approach is to use > Jae-Joon's AxesGrid toolkit; you > may need to be using the latest development version of matplotlib to use the toolkit. > BTW, does anyone kn

Re: [Matplotlib-users] Radar / Spider Chars

2009-07-27 Thread Josh Hemann
Tony, I know this is a year later but your code was hugely helpful to me last week, so thank you. I needed to make a few modifications to get exactly what I needed, so I thought I'd add to the post for posterity... First, here is the graphic that the sample code generates (>> execfile('radarPlot

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
That's right Gökhan, I should have thought on it before ask. Thanks. Only the first one remains... this one I could not find a way. I know there is one class called FigureCanvasAgg, but I didn't find anything on it. On Mon, Jul 27, 2009 at 5:16 PM, Gökhan SEVER wrote: > For the 2nd one; > > To r

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gökhan SEVER
For the 2nd one; To re-position the figure content you might use axis(xmin= , xmax= ) On Mon, Jul 27, 2009 at 3:06 PM, Gewton Jhames wrote: > Thanks everyone. Everything works perfectly. > Only a few things left: > >1. How to "trim the canvas" of the image generated? It's transparent, >

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
Thanks everyone. Everything works perfectly. Only a few things left: 1. How to "trim the canvas" of the image generated? It's transparent, but still have a "padding", if it would be cropped, I can safe almost 200px!. I have attached a file to this email to show it, the background of the g

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-27 Thread Ryan May
On Mon, Jul 27, 2009 at 2:40 PM, Christopher Barker wrote: > Ryan May wrote: > >> > Put this in your ~/.ipython/ipythonrc: >> > >> > pylab_import_all 0 >> > > I finally got around to doing this, and found: > > # === > # Deprecatio

Re: [Matplotlib-users] problems with contourf plots

2009-07-27 Thread Eric Firing
Paul Anton Letnes wrote: > Hi, > > > I'm having strange problems with contourf plots. The plotting routine is > rather elaborate, so I don't have an easy way to reproduce the problem > (unfortunately). The problem should be evident from the attachments. As > you can see, the contourf routine d

[Matplotlib-users] question about legend

2009-07-27 Thread per freem
Hi all i am making a scatter plot and want to label one of the points in the legend. i run scatter([x], [y], ..., label="mylabel") and then run legend as follows plt.legend(loc='lower right', numpoints=1, pad=0.01, labelsep=.01, handlelen=.05) i set numpoints=1 because i want it to show just o

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-27 Thread Christopher Barker
Ryan May wrote: > > Put this in your ~/.ipython/ipythonrc: > > > > pylab_import_all 0 I finally got around to doing this, and found: # === # Deprecation note: you should look into modifying ipy_user_conf.py (located # in ~/.i

Re: [Matplotlib-users] square plots with linear equal axes -- help

2009-07-27 Thread Jae-Joon Lee
Well, I think the meaning of the axis("equal") is a bit misleading (at least to me), but if you look at the documentation, it says that it changes the xlimit and ylimit (limits in data coordinate), so this is NOT what you want. What you need is axis("scaled") or axis("image"). http://matplotlib.so

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Jae-Joon Lee
On Mon, Jul 27, 2009 at 11:55 AM, Tony S Yu wrote: > The 3rd issue is a bit more difficult. One approach is to use > Jae-Joon's AxesGrid toolkit; you > may need to be using the latest development version of matplotlib to use the toolkit. I think it would be easier to use the recently added spine s

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Tony S Yu
Below is some code to do 1, 2, and 4. The 3rd issue is a bit more difficult. One approach is to use Jae- Joon's AxesGrid toolkit; you may need to be using the latest development version of matplotlib to use the toolkit. BTW, does anyone know why it's ``ax.set_axis_bgcolor`` instead of ``ax

Re: [Matplotlib-users] imshow with side plots whitespace problem

2009-07-27 Thread Jeff Thomas
Jae-Joon Lee, The data file I worked with is: The file 'unl-1mm-3d_MagMultiField_25.h5' (370.0 MB) is available for download at < http://dropbox.unl.edu/uploads/20090803/b42af1d24f319f10/unl-1mm-3d_MagMultiField_25.h5 > for the next 7 days. It will be removed after Monday, August 3, 2009. It co

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
thanks!! only 4 left. On Mon, Jul 27, 2009 at 11:31 AM, Gökhan SEVER wrote: > For the 5th one ;) > > figure(frameon=False) > > On Mon, Jul 27, 2009 at 8:26 AM, Gewton Jhames wrote: > >> Hello, would you help me in some design issues that I wish to put in my >> matplotlib graph? >> I want my grap

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Gökhan SEVER
For the 5th one ;) figure(frameon=False) On Mon, Jul 27, 2009 at 8:26 AM, Gewton Jhames wrote: > Hello, would you help me in some design issues that I wish to put in my > matplotlib graph? > I want my graph look like the one that I'm attaching on this email: > > >- Change the Background-col

[Matplotlib-users] Design questions

2009-07-27 Thread Gewton Jhames
Hello, would you help me in some design issues that I wish to put in my matplotlib graph? I want my graph look like the one that I'm attaching on this email: - Change the Background-color of the axis to gray; - Display only horizontal lines on the axis, in white color; - Display only the

Re: [Matplotlib-users] speeding-up griddata()

2009-07-27 Thread Denis-B
in interpolate_one might be the time hog; I see claims that plain is faster. StackVector in http://stackoverflow.com/questions/354442/looking-for-c-stl-like-vector-class-but-using-stack-storage looks nice, but I haven't timed it myself. cheers -- denis -- View this message in context: http