#18711: fix elliptic curve plot legends
------------------------+----------------------------
   Reporter:  kcrisman  |            Owner:
       Type:  defect    |           Status:  new
   Priority:  minor     |        Milestone:  sage-6.8
  Component:  graphics  |         Keywords:
  Merged in:            |          Authors:
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+----------------------------
 {{{
 sage: Qx.<x>=PolynomialRing(QQ)
 sage: K.<a> = NumberField(x^2-2)
 sage: S = K.embeddings(RR)
 sage: E=EllipticCurve([a,0])
 sage: F = E.base_extend(S[0])
 sage: F.plot(legend_label='b')
 Launched png viewer for Graphics object consisting of 2 graphics
 primitives
 }}}
 The legend label appears twice, because
 {{{
 sage: F.plot??
 ...
         for j in range(len(I)):
             a,b,shape = I[j]
             v = generate_plot_points(f1, (a, b), plot_points,
 adaptive_tolerance, adaptive_recursion, randomize)
             w = generate_plot_points(f2, (a, b), plot_points,
 adaptive_tolerance, adaptive_recursion, randomize)
             if shape == 'o':
                 g += plot.line(v + list(reversed(w)) + [v[0]], **args)
             elif shape == '<':
                 g += plot.line(list(reversed(v)) + w, **args)
             elif shape == '>':
                 g += plot.line(v + list(reversed(w)), **args)
             else:
                 g += plot.line(v, **args)
                 g += plot.line(w, **args)
         return g
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18711>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to