#5438: Incorrect documentation and/or functionality in plot filling
----------------------+-----------------------------------------------------
 Reporter:  kcrisman  |       Owner:  was       
     Type:  defect    |      Status:  new       
 Priority:  minor     |   Milestone:  sage-3.4.1
Component:  graphics  |    Keywords:  plot fill 
----------------------+-----------------------------------------------------
 The following example from documentation seems to work:

 {{{
 def b(n): return lambda x: bessel_J(n, x) + 0.5*(n-1)
 plot([b(c) for c in [1..5]], 0, 40, fill = dict([(i, i+1) for i in
 [0..3]]))
 }}}
 but the behavior is the same as
 {{{
 def b(n): return lambda x: bessel_J(n, x) + 0.5*(n-1)
 plot([b(c) for c in [1..5]], 0, 40, fill = dict([(i, 5) for i in [0..3]]))
 }}}
 or anything else that evaluates to True as the second element of the dict.
 The proper behavior is
 {{{
 def b(n): return lambda x: bessel_J(n, x) + 0.5*(n-1)
 plot([b(c) for c in [1..5]], 0, 40, fill = dict([(i, [i+1]) for i in
 [0..3]]))
 }}}
 which is incidentally quite beautiful.

 There are a few other such misleading/wrong example, and the documentation
 for how to use a dictionary which is a little confusing for people not
 familiar with Python yet

 However, this is really related to a bug, namely that for some reason the
 option of plotting between a function and a line isn't parsing properly.
 These should hopefully be easy to fix and are closely related enough that
 one ticket seemed appropriate.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5438>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to