.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
>
>
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
accordingly...
>
> Thomas
>
>
>
> **
> Thomas Lecocq
> Geologist
> Ph.D.Student (Seismology)
> Royal Observatory of Belgium
> **
>
>
>
> ----
> Dat
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
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)/