#1431: basic plotting: add support for setting the location and labels of all
tick
marks on the x and y axes
------------------------------------------------+---------------------------
Reporter: was | Owner: kcrisman
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.4.2
Component: graphics | Keywords:
Author: Jason Grout, Karl-Dieter Crisman | Upstream: N/A
Reviewer: Karl-Dieter Crisman | Merged:
Work_issues: |
------------------------------------------------+---------------------------
Comment(by jason):
Replying to [comment:29 was]:
> Regarding using "straight matplotlib", that would be a bit annoying,
since all my plot commands are in Sage, so I have to get at the secret
underlying matplotlib fig/canvas, right?
Well, it's not so secret, though, as it is exposed in a public function:
p=plot(x^2,(x,-3,4))
figure=p.matplotlib()
from matplotlib.backends.backend_agg import FigureCanvasAgg
figure.set_canvas(FigureCanvasAgg(figure))
figure.savefig('test.png')
(the last three lines are a bit esoteric, but they are fairly
straightforward matplotlib...)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/1431#comment:30>
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.