ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 04 Nov 2014 07:30:58 -0600Legend appears twicehttp://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 05:34:38 -0500http://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>
http://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 07:30:58 -0600http://ask.sagemath.org/question/24699/legend-appears-twice/?comment=24779#post-id-24779Comment 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>
http://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 06:42:02 -0500http://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>
http://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 06:27:05 -0500http://ask.sagemath.org/question/24699/legend-appears-twice/?comment=24701#post-id-24701Answer 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>
http://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 07:09:12 -0500http://ask.sagemath.org/question/24699/legend-appears-twice/?answer=24703#post-id-24703