.\
cgoplot.pro
top cgOPlot
Graphics
cgOPlot, x [, y] [, /ADDCMD] [, CHARSIZE=float] [, COLOR=string/integer] [, PSYM=integer] [, SYMCOLOR=string/integer] [, SYMSIZE=float] [, _REF_EXTRA=any]
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.
The program requires the Coyote Library to be installed on your machine.
Parameters
- 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 information
- 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
- Copyright:
Copyright (c) 2012, Fanning Software Consulting, Inc.
- 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.
File attributes
Modification date: | Fri Mar 27 11:07:37 2015 |
Lines: | 140 |
Docformat: | rst rst |