#19087: incredibly non-useful warning in plot replaces helpful warning message
------------------------+----------------------------
   Reporter:  kcrisman  |            Owner:
       Type:  defect    |           Status:  new
   Priority:  major     |        Milestone:  sage-6.9
  Component:  graphics  |         Keywords:
  Merged in:            |          Authors:
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+----------------------------
 Sage 6.5
 {{{
 sage:
 polar_plot(sec(x),(x,-pi/8,pi/8),ticks=[.1,None],aspect_ratio='auto')
 /Users/.../sage-6.5/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:239: FormatterWarning: Exception in
 text/plain formatter: Expand the range of the independent variable to
 allow two multiples of your tick locator (option `ticks`).
 <snip>
 KeyError: 'text/plain'
 }}}
 Current beta:
 {{{
 sage: sage:
 polar_plot(sec(x),(x,-pi/8,pi/8),ticks=[.1,None],aspect_ratio='auto')
 /Users/.../sage/local/lib/python2.7/site-
 packages/sage/repl/rich_output/display_manager.py:570: RichReprWarning:
 Exception in _rich_repr_ while displaying object: unsupported operand
 type(s) for /: 'float' and 'str'
   RichReprWarning,
 Graphics object consisting of 1 graphics primitive
 }}}
 But no graphic shows up.   This warning is obviously ''much'' less
 helpful.  It is true that the warning in both cases only appears once.
 Still this seems to be a fairly major regression.

--
Ticket URL: <http://trac.sagemath.org/ticket/19087>
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