Coyote Library Updates [message #81920] |
Fri, 09 November 2012 09:15 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
A couple of changes to the Coyote Library that you may
want to be aware of.
The Number_Formatter program has been retired and is
replaced by the cgNumber_Formatter program. This program
has been updated to handle NaN and Inf values properly,
and it now works MUCH better for numbers between 0.0001
and 1.0. In this case, the number of decimals specified
with the DECIMAL keyword is taken to mean the number of
significant digits that should be displayed:
IDL> a = [0.0123456, 0.000123456, !Values.F_NAN]
IDL> Print, cgNumber_Formatter(a, Decimals=3)
0.0123 0.000123 NaN
Also, the cgCheckForSymbols and the cgSymbol programs
have been updated to handle superscripts and subscripts.
The symbols \up and \down implement the !U and !D
format codes, and reduce the size of the superscript or
subscript by 0.62 percent. The symbols \exp and \sub
implement !E and !I format codes and reduce the size
of the superscript or subscript by 0.44 percent.
IDL> cgPlot, cgDemoData(1), $
XTitle='Distance ($\angstrom$$\up2$)', $
YTitle='H$\subSubscript$ and B$\expSuperscript$', $
Charsize=2.0
Naturally, these work in PostScript files as well. :-)
You can find these changes and others in the latest Coyote Library:
http://www.idlcoyote.com/programs/zip_files/coyoteprograms.z ip
Or, here:
http://idl-coyote.googlecode.com/
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|