Re: [Matplotlib-users] set ncol for legend

2011-02-08 Thread Benjamin Root
.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 > >

Re: [Matplotlib-users] set ncol for legend

2011-02-08 Thread Thomas Lecocq
otlib-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_subplo

Re: [Matplotlib-users] set ncol for legend

2011-02-08 Thread sanders
accordingly... > > Thomas > > > > ** > Thomas Lecocq > Geologist > Ph.D.Student (Seismology) > Royal Observatory of Belgium > ** > > > > ---- > Dat

Re: [Matplotlib-users] set ncol for legend

2011-02-08 Thread Thomas Lecocq
eturn the legend and set it accordingly... 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: [Ma

[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)/