On Sat, Jan 3, 2009 at 1:38 PM, gerhard <[email protected]> wrote: > > Trying to use R for plots, > > sage: import os > sage: filename = os.tempnam('./','aaa') + '.png' > sage: r.png(file='"%s"'%filename) > sage: a= r( [1.e-35, 2.e-35, 3.e-35, 6.e-35, 7.e-35, 8.1e-35 ]) > sage: b= r( [4, 5, 6, 12, 3, 6]) > sage: r.plot( a, b, col=2, xlab='x', ylab='y' ) > sage: r.dev_off() > > gets me a good set of axis tick labels, > but translates the strings 'x' and 'y' to numerical values.
Probably xlab='"x"', just like you did with the file= option a few lines above. I can't test this, since none of the Sage installs I have appear to be compiled with png support. :-( William > > How can I pass it strings? > > Thank you, > -gerhard > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ 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-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
