[Matplotlib-users] Colorbar on each subplot

2012-01-07 Thread davcra
Hi, I need to add a colorbar to each plot in a subplot but cant seem to get it to work. My code is as follows, # Plot time series of slowness, baz, abs.power and rel.power labels = 'rel.power abs.power baz slow'.split() fig = plt.figure() for i, lab in enumerate(labels): ax =

Re: [Matplotlib-users] Colorbar on each subplot

2012-01-07 Thread Jae-Joon Lee
Please post a complete (but simple) example that we can easily test. Doing the *subplot_adjust* will mess up the location of colorbars, but I believe that colorbars should be still there. If you're using v1.1 and later, see if using the use_gridspec parameter works. For example,

Re: [Matplotlib-users] draw bbox around axes title

2012-01-07 Thread Jae-Joon Lee
On Fri, Jan 6, 2012 at 4:56 AM, Skipper Seabold jsseab...@gmail.com wrote: but when I call show, it seems the width of the box is reset. Yes. Because the location of the texts are backend-dependent, the location of the xbox surrounding the text are recalculated during the drawing time. I don't

Re: [Matplotlib-users] matplotlib 1.1 TypeError: a float is required problem

2012-01-07 Thread Benjamin Root
On Saturday, January 7, 2012, Mingkui Li ken.mk...@gmail.com wrote: Yes, I think this is the origin of the Error. Thank you all! BTW, why the email title of all other people posts begin with '[matplotlib-user]'? does this should be added by hand every time when I post a topic? No, don't do

Re: [Matplotlib-users] Colorbar on each subplot

2012-01-07 Thread Benjamin Root
On Saturday, January 7, 2012, Jae-Joon Lee lee.j.j...@gmail.com wrote: Please post a complete (but simple) example that we can easily test. Doing the *subplot_adjust* will mess up the location of colorbars, but I believe that colorbars should be still there. If you're using v1.1 and later, see

[Matplotlib-users] exact figure size frustration

2012-01-07 Thread Ethan Swint
Hi, list- This question has been asked before, but all of my search results don't address my problem: code fig = figure(1, figsize=(3.25, 3)) plot([0,1,5,2,9]) title('title') xlabel('xAxis') ylabel('yAxis') fig.savefig('test.png',dpi=600) /code The resulting figure is 2040x1890 pixels, or

Re: [Matplotlib-users] exact figure size frustration

2012-01-07 Thread Eric Firing
On 01/07/2012 07:01 PM, Ethan Swint wrote: Hi, list- This question has been asked before, but all of my search results don't address my problem: code fig = figure(1, figsize=(3.25, 3)) plot([0,1,5,2,9]) title('title') xlabel('xAxis') ylabel('yAxis') fig.savefig('test.png',dpi=600)