#13078: Make it easier to do custom tick formatting
-------------------------------+--------------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-5.3
Component: graphics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Comment (by kcrisman):
Yeah, that was probably a little sloppy, and in any case, this is new
functionality. If it doesn't break the old one... since these things have
to be strings, maybe one could check if the first item was a string, and
then let it go through... Just seems like
{{{
plot(sin(x),(x,-2*pi,2*pi),ticks=[1,2,3],tick_formatter=['a','b','c'])
}}}
should work, by analogy with the other things that already work.
My point is that there isn't an easy way to determine how many there will
be, but that once one ''does'' know (for instance, by plotting the picture
with `ticks=pi`), then they might as well be able to do the formatting I
suggest. Wouldn't matplotlib raise an error we could catch if the
formatter (at least, the `FixedFormatter`) had too many/too few entries?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13078#comment:9>
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.