On Fri, Apr 20, 2007 at 15:36 -0300, juan luna wrote: > Hi: > > I'm trying to put the angstrom symbol in the xlabel of > a plot instead of the word Angstrom, I used \A and > \gA, \AA, but none works, any hint?, Thanks! Either "\\A" or "\A"R should work. By default, slang interprets a single backslash as an escape for the following character. To prevent this, one can either use a double-backslash, "\\A" or, in slang-2, add an R suffix to the entire string: "Wavelength [\A]"R. > > Juan > > Ups, another question: > > I'm plotting a spectrum which consisted of the > combination of HEG and MEG \pm 1 orders, and grouping > by a factor 2. To plot, I'm using the script cplot.sl, > Gsmooth.sl and get_resid.sl. So, when I want to plot > the spectrum, model and residual, I created the alias: > > match_dataset_grids([1,2,3,4]); > variable g = combine_datasets([1:4]); > group_data([1:4],2); > alias("pdcc(g),opmcc(g),presid( -g, 0 )", "dibu"); The alias function is only intended to substitute one name for another and isn't general enough for this purpose. Instead, I think you want to define a new function, such as: define dibu(g) { pdcc(g); opmcc(g); presid(-g, 0); } The new function can then be used directly: g = combine_datasets ([1:4]); dibu (g); Thanks, -John ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Fri Apr 20 2007 - 15:24:56 EDT
This archive was generated by hypermail 2.2.0 : Fri Apr 20 2007 - 15:26:39 EDT