[Matplotlib-users] set ncol for legend

2011-02-08 Thread sanders
Hi, I want to update the number of columns in my legend. How should I do that? I'm looking for something like: fig = plt.figure() ax = fig.add_subplot(111) my_own_plot_function(ax, data)# gives, for example, one column legend by default legend = ax.get_legend() /legend.set_ncol(2)/

Re: [Matplotlib-users] set ncol for legend

2011-02-08 Thread Thomas Lecocq
... Thomas ** Thomas Lecocq Geologist Ph.D.Student (Seismology) Royal Observatory of Belgium ** Date: Tue, 8 Feb 2011 11:25:58 +0100 From: sand...@knmi.nl To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] set ncol for legend Hi

Re: [Matplotlib-users] set ncol for legend

2011-02-08 Thread sanders
Observatory of Belgium ** Date: Tue, 8 Feb 2011 11:25:58 +0100 From: sand...@knmi.nl To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] set ncol for legend Hi, I want

Re: [Matplotlib-users] set ncol for legend

2011-02-08 Thread Thomas Lecocq
-users] set ncol for legend I realize that I have not been clear enough. I have already created a legend instance in my_own_plot_function, for example, a legend with one column by default: fig = plt.figure() ax = fig.add_subplot(111

Re: [Matplotlib-users] set ncol for legend

2011-02-08 Thread Benjamin Root
** Thomas Lecocq Geologist Ph.D.Student (Seismology) Royal Observatory of Belgium ** -- Date: Tue, 8 Feb 2011 11:25:58 +0100 From: sand...@knmi.nl To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] set ncol