Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

legend overlaps plot

The legend_label overlaps my plot (ie the plotted lines). How do I prevent this? It would be nice to move the legend beside or under the plot (outside of the plot axis area).

legend overlaps plot

The legend_label overlaps my plot (ie the plotted lines). How do I prevent this? It would be nice to move the legend beside or under the plot (outside of the plot axis area).

for example: plot(cos(x), (x,-2pi, 2pi), legend_label='cos(x)')+plot(cos(3x), (x,-2pi, 2*pi), color='green', legend_label='cos(3x)')

Is it possible to get the legend to appear in a subaxes beside the plot?