[Matplotlib-users] Heat maps

2011-03-18 Thread Yuri D';Elia
Hi everyone. I was trying to produce an irregular heat map broken down by day/weeks, as excellently shown here: http://revolution-computing.typepad.com/.a/6a010534b1db25970b0120a63e9936970b-500wi (source: http://stackoverflow.com/questions/2076370/most-underused-data-visualization) How would y

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-11 Thread Yuri D';Elia
On Sun, 6 Mar 2011 21:47:04 +0900 Jae-Joon Lee wrote: > > Ok, I can understand that, but shouldn't all artists used to construct the > > picture, as suptitle, be considered? > > I think considering all the artists is not very practical (as some of > them could have spline paths), but what we

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-08 Thread Yuri D';Elia
On Mon, 7 Mar 2011 13:41:49 -0600 Benjamin Root wrote: > > I've > > been using matplotlib a lot the last few months and was totally > > unaware that pyplot was "required". Good thing I read this message! :-) I'm glad I'm not the only one :) > > > The interface should create the figure objects

Re: [Matplotlib-users] Legend outside the plot

2011-03-08 Thread Yuri D';Elia
On Tue, 8 Mar 2011 02:35:52 +0900 Jae-Joon Lee wrote: > On Mon, Mar 7, 2011 at 8:22 PM, Yuri D'Elia wrote: > > With matplotlib, I have to do the following: > > > > legend(bbox_to_anchor=(1, 1 + ?), loc=2) > > > > but how do I calculate the vertical location

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-07 Thread Yuri D';Elia
On Tue, 8 Mar 2011 02:03:54 +0900 Jae-Joon Lee wrote: > On Mon, Mar 7, 2011 at 7:36 PM, Yuri D'Elia wrote: > In fact, supporting the "bbox_inches" is a real hack. > As I mentioned in my previous email, matplotlib artists can have > spline paths. And artists can also

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-07 Thread Yuri D';Elia
On Mon, 7 Mar 2011 09:25:23 -0600 Benjamin Root wrote: > The problem is that you are creating your figure wrong. Try this: > > import matplotlib as mpl > mpl.use("Agg") > import matplotlib.pyplot as plt > > fig = plt.figure(figsize=(20, 20)) > ax = fig.add_subplot(111) > ax.set_title("Subtitle

Re: [Matplotlib-users] Legend outside the plot

2011-03-07 Thread Yuri D';Elia
On Mon, 7 Mar 2011 09:08:29 -0600 Benjamin Root wrote: > Matplotlib is designed to give you maximum control over the figure elements > while still maintaining sensible defaults. This is helpful in some cases, > and not so helpful in others. In your case of placing a legend outside an > axes, ca

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-07 Thread Yuri D';Elia
On Mon, 7 Mar 2011 11:36:45 +0100 Yuri D'Elia wrote: > On Fri, 4 Mar 2011 14:57:34 -0600 > Benjamin Root wrote: > > > Which version of matplotlib are you using? This example works for me using > > the latest matplotlib from source. Also, why the awkward usage and

[Matplotlib-users] Legend outside the plot

2011-03-07 Thread Yuri D';Elia
Hi everyone. I'm a newbye to matplotlib, so excuse my naive questions. I have a large experience with gnuplot and asymptote, and I only recently started to experiment with matplotlib. Some background: I'm trying to use matplotlib mostly for complex plots with a lot of data. Gnuplot is usually f

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-07 Thread Yuri D';Elia
On Fri, 4 Mar 2011 14:57:34 -0600 Benjamin Root wrote: > Which version of matplotlib are you using? This example works for me using > the latest matplotlib from source. Also, why the awkward usage and Yes, with matplotlib 1.0 bbox_extra_artists now works. I consider bbox_extra_artists some ki

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-04 Thread Yuri D';Elia
On Wed, 2 Mar 2011 22:01:02 +0900 Jae-Joon Lee wrote: > >> > Is this a bug? > >> > >> Unfortunately, bbox_inches option is never meant to be complete in > >> figuring out the exact  size of the figure area. > > > > Why not? What's the purpose of bbox_inches='tight' otherwise? > > Figuring out

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-02 Thread Yuri D';Elia
On Tue, 1 Mar 2011 12:44:20 +0900 Jae-Joon Lee wrote: > > Is this a bug? > > Unfortunately, bbox_inches option is never meant to be complete in > figuring out the exact size of the figure area. Why not? What's the purpose of bbox_inches='tight' otherwise? > However, you can use "bbox_extra_a

[Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-02-25 Thread Yuri D';Elia
In the following: <<< import matplotlib as mpl import matplotlib.figure import matplotlib.backends.backend_agg fig = mpl.figure.Figure() cvs = mpl.backends.backend_agg.FigureCanvasAgg(fig) fig.set_size_inches((20,20)) fig.suptitle("Horray!", fontsize=20) plot = fig.add_subplot(111) plot.s