ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 10 Nov 2013 19:19:13 +0100How can I determine or control a plot's display scale?https://ask.sagemath.org/question/10722/how-can-i-determine-or-control-a-plots-display-scale/Suppose I do something like
p = plot(sin(x), (x,0,2*pi))
p.save("/tmp/plot.png")
Is there some way of knowing (or even better, controlling) *exactly* the scale of the saved image in pixels per axis unit (in each direction)?
For example, if I wish to write a second graph to a different png file at exactly the same scale, is there some way to do this?
Or, to put it differently, instead of specifying the size of the output png file in inches using `figsize`, I wish to specify the size in inches (or pixels) *per graph unit*.
[This matplotlib tutorial](http://matplotlib.org/users/transforms_tutorial.html) seems to be about what interests me, but I don't understand how Sage relates to matplotlib, and how I can access the `transData` field, let alone control its value.Gro-TsenSun, 10 Nov 2013 19:19:13 +0100https://ask.sagemath.org/question/10722/