Prev: traslation
Next: problem of index with system of ode
From: dpb on 26 Jul 2010 17:00 Kaisen deng wrote: > dpb <none(a)non.net> wrote in message > <i2kinn$98s$1(a)news.eternal-september.org>... >> dpb wrote: >> ... >> >> > >> text(5,0,'1x10^-4','horizontal','center','vertical','top') >> > > writes the 10-4 on the right axis tick location. .... >> >> OBTW, note I forgot and omitted the curly brackets to surround the >> '-4' to apply superscript to both. >> >> text(5,0,'1x10^{-4}','horizontal','center','vertical','top') >> >> will look better. >> > Thanks! > I know char(215) will show the 'times' symbol, but I don't know how to > add in '1x10^{-4}' to replace x. Well, you could build the string as ['1' char(215) '10^{-4}'] but if really want the extreme of actually doing so I'd recommend you use the \times Tex character sequence. As noted earlier, read the documentation on text() and the subsequent examples on annotation of graphs and about TeX if you're going to be doing this kind of thing; you can find out all there is to be done faster that way than waiting around for somebody at cs-sm to bail you out... --
From: Kaisen deng on 27 Jul 2010 10:39 dpb <none(a)non.net> wrote in message <i2kt6n$org$1(a)news.eternal-september.org>... > Kaisen deng wrote: > > dpb <none(a)non.net> wrote in message > > <i2kinn$98s$1(a)news.eternal-september.org>... > >> dpb wrote: > >> ... > >> > >> > >> text(5,0,'1x10^-4','horizontal','center','vertical','top') > >> > > writes the 10-4 on the right axis tick location. .... > >> > >> OBTW, note I forgot and omitted the curly brackets to surround the > >> '-4' to apply superscript to both. > >> > >> text(5,0,'1x10^{-4}','horizontal','center','vertical','top') > >> > >> will look better. > >> > > Thanks! > > I know char(215) will show the 'times' symbol, but I don't know how to > > add in '1x10^{-4}' to replace x. > > Well, you could build the string as ['1' char(215) '10^{-4}'] but if > really want the extreme of actually doing so I'd recommend you use the > \times Tex character sequence. > > As noted earlier, read the documentation on text() and the subsequent > examples on annotation of graphs and about TeX if you're going to be > doing this kind of thing; you can find out all there is to be done > faster that way than waiting around for somebody at cs-sm to bail you out... > well,that's a good idea. Thanks
From: dpb on 27 Jul 2010 14:16
Kaisen deng wrote: > dpb <none(a)non.net> wrote in message > <i2kt6n$org$1(a)news.eternal-september.org>... >> Kaisen deng wrote: .... >> > I know char(215) will show the 'times' symbol, but I don't know how >> to > add in '1x10^{-4}' to replace x. >> >> Well, you could build the string as ['1' char(215) '10^{-4}'] but if >> really want the extreme of actually doing so I'd recommend you use the >> \times Tex character sequence. >> >> As noted earlier, read the documentation on text() and the subsequent >> examples on annotation of graphs and about TeX if you're going to be >> doing this kind of thing; you can find out all there is to be done >> faster that way than waiting around for somebody at cs-sm to bail you >> out... >> > well,that's a good idea. Thanks And, of course, as another corollary lesson, try strrep('1x10^{-4}', char(215)) or strrep('1x10^{-4}', '\times') at the command line followed by help strfun for the more generic "how do I ..." re: string manipulations and help iofun for the universe that includes the earlier-noted sprintf() and friends... -- |