ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 04 Nov 2014 14:30:58 +0100Legend appears twicehttps://ask.sagemath.org/question/24699/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 Thu, 30 Oct 2014 11:34:38 +0100https://ask.sagemath.org/question/24699/legend-appears-twice/Comment by FrédéricC for <p>I have some problem with the legend, if I use the function <strong>graphics_array</strong> the entries of the legend box of the second plot appear twice. For example:</p>
<pre><code>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))
</code></pre>
<p>What I am doing wrong, or how can I fix it? Thanks in advance </p>
https://ask.sagemath.org/question/24699/legend-appears-twice/?comment=24701#post-id-24701With more plots, there is only a problem with the last legend, which is duplicated.Thu, 30 Oct 2014 12:27:05 +0100https://ask.sagemath.org/question/24699/legend-appears-twice/?comment=24701#post-id-24701Comment by petres for <p>I have some problem with the legend, if I use the function <strong>graphics_array</strong> the entries of the legend box of the second plot appear twice. For example:</p>
<pre><code>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))
</code></pre>
<p>What I am doing wrong, or how can I fix it? Thanks in advance </p>
https://ask.sagemath.org/question/24699/legend-appears-twice/?comment=24702#post-id-24702I know, is there some possiblity to get rid of it. Should I write a bug report?Thu, 30 Oct 2014 12:42:02 +0100https://ask.sagemath.org/question/24699/legend-appears-twice/?comment=24702#post-id-24702Comment by FrédéricC for <p>I have some problem with the legend, if I use the function <strong>graphics_array</strong> the entries of the legend box of the second plot appear twice. For example:</p>
<pre><code>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))
</code></pre>
<p>What I am doing wrong, or how can I fix it? Thanks in advance </p>
https://ask.sagemath.org/question/24699/legend-appears-twice/?comment=24779#post-id-24779Solved in http://trac.sagemath.org/ticket/12591 that needs review.Tue, 04 Nov 2014 14:30:58 +0100https://ask.sagemath.org/question/24699/legend-appears-twice/?comment=24779#post-id-24779Answer by kcrisman for <p>I have some problem with the legend, if I use the function <strong>graphics_array</strong> the entries of the legend box of the second plot appear twice. For example:</p>
<pre><code>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))
</code></pre>
<p>What I am doing wrong, or how can I fix it? Thanks in advance </p>
https://ask.sagemath.org/question/24699/legend-appears-twice/?answer=24703#post-id-24703This is probably http://trac.sagemath.org/ticket/10657 Thu, 30 Oct 2014 13:09:12 +0100https://ask.sagemath.org/question/24699/legend-appears-twice/?answer=24703#post-id-24703