#13625: matrix_plot and title don't mix well (yet)
------------------------------------------------------------------+---------
Reporter: kcrisman |
Owner: jason, was
Type: defect |
Status: needs_review
Priority: major |
Milestone: sage-5.5
Component: graphics |
Resolution:
Keywords: | Work
issues:
Report Upstream: Reported upstream. Developers acknowledge bug. |
Reviewers: Karl-Dieter Crisman
Authors: Punarbasu Purkayastha | Merged
in:
Dependencies: |
Stopgaps:
------------------------------------------------------------------+---------
Comment (by kcrisman):
Okay, looks good overall, I can do all kinds of goofy things! I like
these patches, sorry for the delay.
I do think we need a little better error catching.
{{{
sage: plot(sin, -4, 4, title='Plot sin(x)', title_pos=.05)
<snip>
2482 if title is not None:
2483 if title_pos is not None:
-> 2484 if len(title_pos) != 2:
2485 raise ValueError("`title_pos` must be a list
or tuple "
2486 "of two real numbers.")
TypeError: object of type 'sage.rings.real_mpfr.RealLiteral' has no len()
}}}
A subtle difference, but this should also tell the user that `title_pos`
must be the right format.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13625#comment:21>
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.