CGOPLOT
The purpose of cgOPlot is to create a drop-in replacement for the traditional
IDL command, OPlot. It simply calls cgPlot with the OVERPLOT keyword set.
Categories
Graphics
Params
x: in, required, type=any
If X is provided without Y, a vector representing the dependent values to be
plotted If both X and Y are provided, X is the independent parameter and
Y is the dependent parameter to be plotted.
y: in, optional, type=any
A vector representing the dependent values to be plotted.
Keywords
addcmd: in, optional, type=boolean, default=0
Set this keyword to add the command to the resizeable graphics window cgWindow.
charsize: in, optional, type=float, default=cgDefCharSize()
The character size for axes annotations. Uses cgDefCharSize to select default
character size, unless !P.Charsize is set, in which case !P.Charsize is always used.
color: in, optional, type=string/integer, default='black'
If this keyword is a string, the name of the data color. By default, 'black'.
Color names are those used with cgColor. Otherwise, the keyword is assumed
to be a color index into the current color table.
psym: in, optional, type=integer
Any normal IDL PSYM values, plus any value supported by the Coyote Library
routine cgSYMCAT. An integer between 0 and 46.
symcolor: in, optional, type=string/integer, default='black'
If this keyword is a string, the name of the symbol color. By default, 'black'.
Otherwise, the keyword is assumed to be a color index into the current color table.
symsize: in, optional, type=float, default=1.0
The symbol size.
_ref_extra: in, optional, type=any
Any keyword appropriate for the IDL OPlot command is allowed in the program.
Examples
Use as you would use the IDL OPLOT command::
cgPlot, cgDemoData(17), Color='olive'
cgPlot, cgDemoData(17), Color='blue', SymColor='red', PSym=-16, /Overplot
Author
FANNING SOFTWARE CONSULTING::
David W. Fanning
1645 Sheely Drive
Fort Collins, CO 80526 USA
Phone: 970-221-0438
E-mail: david@idlcoyote.com
Coyote's Guide to IDL Programming: http://www.idlcoyote.com
History
Change History::
Written, 28 February 2012.
Modified to make sure both input arguments are defined before call to cgPlot. 25 May 2012. DWF.
Typo in the keyword inheritance code cause keywords to be ignorned. Fixed. 5 June 2012. DWF.
Copyright
Copyright (c) 2012, Fanning Software Consulting, Inc.