Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Legend appears twice

I have some problem with the legend, if I use the function graphics_array the entries of the legend box of the second plot appear twice. For example:

f(x) = sin(x)
g(x) = sin(2*x)
p1 = plot(f,(-2*pi,2*pi), legend_label="f")
p2 = plot(g,(-2*pi,2*pi), legend_label="g")
graphics_array((p1,p2))

What I am doing wrong, or how can I fix it? Thanks in advance

Legend appears twice

I have some problem with the legend, if I use the function graphics_array the entries of the legend box of the second plot appear twice. For example:

f(x) = sin(x)
g(x) = sin(2*x)
p1 = plot(f,(-2*pi,2*pi), legend_label="f")
p2 = plot(g,(-2*pi,2*pi), legend_label="g")
graphics_array((p1,p2))

What I am doing wrong, or how can I fix it? Thanks in advance