On Tue, Feb 8, 2011 at 7:50 AM, sanders wrote:
> 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)
> my_own_plot_function(ax, da
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
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)
my_own_plot_function(ax, data)# gives, for example, one column
legend by default
So
Bram,
fig = plt.figure()
ax = fig.add_subplot(111)
plot1 = plot.plot(X,Y,label='1')
plot2 = plot.plot(X,Y,label='2')
...
plotN = plot.plot(X,Y,label='N')
legend = plt.legend(ncol=2)
should work...
so, for your "own_plot_function", you have to return the legend and set it
accordingly...