Ask Your Question

Legend appears twice

asked 2014-10-30 05:34:38 -0600

petres gravatar image

updated 2014-10-30 05:40:01 -0600

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")

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

edit retag flag offensive close merge delete


With more plots, there is only a problem with the last legend, which is duplicated.

FrédéricC gravatar imageFrédéricC ( 2014-10-30 06:27:05 -0600 )edit

I know, is there some possiblity to get rid of it. Should I write a bug report?

petres gravatar imagepetres ( 2014-10-30 06:42:02 -0600 )edit

Solved in that needs review.

FrédéricC gravatar imageFrédéricC ( 2014-11-04 07:30:58 -0600 )edit

1 answer

Sort by » oldest newest most voted

answered 2014-10-30 07:09:12 -0600

kcrisman gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-10-30 05:34:38 -0600

Seen: 109 times

Last updated: Oct 30 '14