#15776: Fix formatting for tick marks that are latexed
------------------------+----------------------------
   Reporter:  kcrisman  |            Owner:
       Type:  defect    |           Status:  new
   Priority:  minor     |        Milestone:  sage-6.1
  Component:  graphics  |         Keywords:
  Merged in:            |          Authors:
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+----------------------------
 See [http://ask.sagemath.org/question/3479/ this ask.sagemath question].

 {{{
 plot(1-4*x^2,.49999,.50001,tick_formatter=.00001.n(digits=7))
 }}}
 triggers the "if getting something in SR for a formatter then make sure
 both LaTeX" branch of the `Graphics.matplotlib` code and somehow that
 breaks with errors like
 {{{

 ValueError:
 \text{\texttt{{-}8e{-}05}}
 ^
 Unknown symbol: \ttext (at char 0), (line:1, col:1)
 }}}
 so that mpl, in trying to typeset `-8e^-5` somehow decides to prepend yet
 another text thing on it.

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

Reply via email to