2009/4/15 William Stein <wst...@gmail.com>: > > > 2009/4/15 Jose Guzman <n...@neurohost.org>: >> >> Hi there >> >> I am trying to teach some simple principles of single compartment models >> with sage and I plotted a couple of exponential equations in my notebook. >> >> Although I got a nice x-axis () and other labels and similar things, I >> cannot find a way to plot the y-axis in the vertical axis. Is there >> anyway to do it? >> >> You can take a look to my notebook to see what I mean >> http://sagenb.org/home/pub/457 >> >> Another additional problem is that the LaTeX fonts are pretty small, and >> I cannot represent Greek letters (like alpha, tau, pi,etc..) in the >> labels (see the syntax bellow). >> >> xlabel = text('Time (Units of $\tau$)',(3,-.10), rgbcolor='black') >> >> This \tau does not show up in the graphic, but strange enough, this >> works out of the box (pretty small though) >> >> lnlabel = text('Unrecoverable fraction ($f_{U} = 1 - >> f_{S}$)',(4,FS+.05),rgbcolor='black') >> >> thank you very much in advance for your help and care! > > Just one remar. There is a fontsize option to text: > > > xlabel = text('Time (Units of $\tau$)',(3,-.10), rgbcolor='black', > fontsize=30) > > William
The second remark is that backslash is an escape character for strings in (almost) all programming languages. You have to do \\ to get a single backslash, so this works: xlabel = text('Time (Units of $\\tau$)',(3,-.10), rgbcolor='black', fontsize=30) Or you can do: xlabel = text(r'Time (Units of $\tau$)',(3,-.10), rgbcolor='black', fontsize=30) --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---