#10616: Make sure suboptions decorator really works with legend plot
------------------------+---------------------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: defect | Status: new
Priority: minor | Milestone:
Component: graphics | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Even after #10244 and #7871, the following still doesn't work:
{{{
sage: Q = plot(x,(x,0,1),legend_label='$xyz$')
sage: Q = plot(x,(x,0,1),legend_label='$xyz$',legend_back_color=(1,0,0))
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)
<snip>
/Users/.../sage-4.6.1.rc1/local/lib/python2.6/site-
packages/sage/plot/line.pyc in __init__(self, xdata, ydata, options)
46 for opt in options.iterkeys():
47 if opt not in valid_options:
---> 48 raise RuntimeError("Error in line(): option '%s'
not valid."%opt)
49 self.xdata = xdata
50 self.ydata = ydata
RuntimeError: Error in line(): option 'legend_back_color' not valid.
}}}
Note that using `set_legend_options()` does work, so the issue is in the
(as yet not doctested) claim that `legend_*` should work as an option,
which apparently isn't true, at least not all the time.
Actually, we should really make sure the suboptions decorator works in
general, but this is the only place I know of it not behaving as
advertised.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10616>
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 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.