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)/
...
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
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
-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
**
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