If you want the full description of a command, then you’ve made it to the
right place.
Note, in the “Arguments” column, any item(s) surrounded by “[]” are optional to
the function.
Command
Description
Arguments
Examples
Initializing
init
Initialize, Construct a VCS Canvas Object
Construct the VCS Canas object. There can only be at most 8 VCS Canvases open
at any given time.
Example of Use:
Help Commands
help
On-Line HELP!!!
Gives insight to other VCS functions by providing a description and at least
one example.
Example of Use:
objecthelp
Print out the object's doc string
Print out information on VCS objects. See example on its use.
Example of Use:
Canvas
mode
Update the VCS Canvas.
Updating of the graphical displays on the VCS Canvas can be deferred until a
later time. This is helpful when generating templates or displaying numerous
plots. If a series of commands are given to VCS and the Canvas Mode is set to
manual (i.e., 0), then no updating of the VCS Canvas occurs until the 'update'
function is executed.
Note, by default the VCS Canvas Mode is set to 'Automatic', which means VCS
will update the VCS Canvas as necessary without prompting from the user.
mode
Options:
1 = automatic
0 = manual
Example of Use:
update
If a series of commands are given to VCS and the Canvas Mode is set to manual,
then use this function to update the VCS Canvas manually.
Example of Use:
open
Open VCS Canvas object. This routine really just manages the VCS canvas. It
will popup the VCS Canvas for viewing. It can be used to display the VCS
Canvas.
Example of Use:
close
Close the VCS Canvas. It will remove the VCS Canvas object from the screen,
but not deallocate it.
Example of Use:
portrait
Change the VCS Canvas orientation to Portrait.
Example of Use:
landscape
Change the VCS Canvas orientation to Landscape.
Example of Use:
page
Change the VCS Canvas orientation to either 'portrait' or 'landscape'.
The orientation of the VCS Canvas and of cgm and raster images is controlled
by the PAGE command. Only portrait (y > x) or landscape (x > y)
orientations are permitted.
Example of Use:
geometry
The geometry command is used to set the size and position of the VCS
canvas.
width
height
x position
y position
Example of Use:
Printing and Saving Graphics
printer
Send plots to the printer
This function creates a temporary cgm file and then sends it to the specified
printer. Once the printer received the information, then the temporary cgm file
is deleted. The temporary cgm file is created in the user's PCMDI_GRAPHICS
directory.
The PRINTER command is used to send the VCS Canvas plot(s) directly to the
printer.
Note: VCS graphical displays can be printed only if the user customizes a
HARD_COPY file (included with the VCS software) for the home system. The path to
the HARD_COPY file must be
In some cases, the user may want to save the plot out as a gif image. This
routine allows the user to save the VCS canvas output as a gif file.
This file can be converted to other gif formats with the aid of xv and other
such imaging tools found freely on the web.
If no path/file name is given and no previously created gif file has been
designated, then file
/$HOME/PCMDI_GRAPHICS/default.gif
will be used for storing gif images. However, if a previously created gif file
is designated, that file will be used for gif output.
By default, the page orientation is in Landscape mode (l). To translate the
page orientation to portrait mode (p), enter 'p' as the second parameter.
The GIF command is used to create or append to a gif file. There are two modes
for saving a gif file: 'Append' mode (a) appends gif output to an existing gif
file(i.e., making it an animated gif); 'Replace' (r) mode overwrites an existing
gif file with new gif output.
Filename to save
[merge]
Options:
a = append (or merge) image to an existing file
r = replace file with new image
[orientation (l|p)]
l = landscape
p = portrait
[geometry (widthxheight)]
Example of Use:
postscript
Save plot(s) to a postscript file
Postscript output is another form of vector graphics. It is larger than its
CGM output counter part, because it is stored out in ASCII format.
There are two modes for saving a postscript file: 'Append' (a) mode appends
postscript output to an existing postscript file; and 'Replace' (r) mode
overwrites an existing postscript file with new postscript output. The default
mode is to overwrite an existing postscript file (i.e. mode (r)).
filename
[mode]
Options:
a = append (or merge) image to an existing file
r = replace file with new image
[width of image]
[height of image]
[units of width/height]
Options:
'in' or 'inches' — default
'cm'
'mm'
'dot' or 'dots'
[left_margin]
[right_margin]
[top_margin]
[bottom_margin]
Example of Use:
cgm
To save a graphics plot in VCS the user can call CGM along with the name of
the output. This routine will save the displayed image on the VCS canvas as a
binary vector graphics that can be imported into MSWord or Framemaker. CGM files
are in ISO standards output format.
The CGM command is used to create or append to a cgm file.
cgm file name
Example of Use:
raster
In some cases, the user may want to save the plot out as an raster image. This
routine allows the user to save the VCS canvas output as a SUN raster file.
This file can be converted to other raster formats with the aid of xv and
other such imaging tools found freely on the web.
If no path/file name is given and no previously created raster file has been
designated, then file
/$HOME/PCMDI_GRAPHICS/default.ras
will be used for storing raster images. However, if a previously created
raster file is designated, that file will be used for raster output.
raster file name
[mode]
'a'=will append raster image to an existing raster file
'r'=will replace a raster file with a new raster file
Example of Use:
pstogif
This function allows the user to convert a postscript file to a gif file.
postscript file name
['l'=landscape 'p'=portrait]
Example of Use:
Plot and
Clear Commands
plot
Plot an array(s) of data given a template and graphics method. The VCS
template is used to define where the data and variable attributes will be
displayed on the VCS Canvas. The VCS graphics method is used to define how the
array(s) will be shown on the VCS Canvas.
See section 4.5 for a detailed listing of possible plot options.
Example of Use:
boxfill
Generate a boxfill plot
Generate a boxfill plot given the data, boxfill graphics method, and template.
If no boxfill class object is given, then the 'default' boxfill graphics method
is used. Similarly, if no template class object is given, then the 'default'
template is used.
See plot command for options.
Example of Use:
continents
Generate a continents plot
Generate a continents plot given the continents graphics method, and template.
If no continents class object is given, then the 'default' continents graphics
method is used. Similarly, if no template class object is given, then the
'default' template is used.
See plot command for options.
Example of Use:
isofill
Generate an isofill plot
Generate a isofill plot given the data, isofill graphics method, and template.
If no isofill class object is given, then the 'default' isofill graphics method
is used. Similarly, if no template class object is given, then the 'default'
template is used.
See plot command for options.
Example of Use:
isoline
Generate an isoline plot
Generate a isoline plot given the data, isoline graphics method, and template.
If no isoline class object is given, then the 'default' isoline graphics method
is used. Similarly, if no template class object is given, then the 'default'
template is used.
See plot command for options.
Example of Use:
outfill
Generate an outfill plot
Generate a outfill plot given the data, outfill graphics method, and template.
If no outfill class object is given, then the 'default' outfill graphics method
is used. Similarly, if no template class object is given, then the 'default'
template is used.
See plot command for options.
Example of Use:
outline
Generate an outline plot
Generate a outline plot given the data, outline graphics method, and template.
If no outline class object is given, then the 'default' outline graphics method
is used. Similarly, if no template class object is given, then the 'default'
template is used.
See plot command for options.
Example of Use:
scatter
Generate a scatter plot
Generate a scatter plot given the data, scatter graphics method, and template.
If no scatter class object is given, then the 'default' scatter graphics method
is used. Similarly, if no template class object is given, then the 'default'
template is used.
See plot command for options.
Example of Use:
vector
Generate a vector plot
Generate a vector plot given the data, vector graphics method, andtemplate. If
no vector class object is given, then the 'default' vectorgraphics method is
used. Similarly, if no template class object is given,then the 'default' template
is used.
See plot command for options.
Example of Use:
xvsy
Generate a Xvsy plot
Generate a XvsY plot given the data, XvsY graphics method, and template. If no
XvsY class object is given, then the 'default' XvsY graphics method is used.
Similarly, if no template class object is given, then the 'default' template is
used.
See plot command for options.
Example of Use:
xyvsy
Generate a Xyvsy plot
Generate a Xyvsy plot given the data, Xyvsy graphics method, and template. If
no Xyvsy class object is given, then the 'default' Xyvsy graphics method is used.
Simerly, if no template class object is given, then the 'default' template is
used.
See plot command for options.
Example of Use:
yxvsx
Generate a Yxvsx plot
Generate a Yxvsx plot given the data, Yxvsx graphics method, and template. If
no Yxvsx class object is given, then the 'default' Yxvsx graphics method is used.
Simerly, if no template class object is given, then the 'default' template is
used.
See plot command for options.
Example of Use:
clear
At some point it will become necessary to clear all the plots from the VCS
Canvas. This routine will remove all plots on the VCS Canvas.
Example of Use:
Query Functions
graphicsmethodname
Returns the grapics method's type string: boxfill, isofill, isoline, outfill,
outline, continents, scatter, vector, xvsy, xyvsy, yxvsx, 3d_scalar, or 3d_vector.
Object to Query
Example of Use:
getcontinentstype
Return continents type from VCS. Remember the value can only be between 0 and
11.
Example of Use:
isgraphicsmethod
Indicates if the entered argument is one of the following graphics methods:
boxfill, isofill, isoline, outfill, outline, continents, scatter, vector, xvsy,
xyvsy, yxvsx.
Returns a 1, which indicates true, if the argment is one of the above.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isboxfill
Check to see if an object is a VCS primary boxfill graphics method object.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
iscontinents
Check to see if an object is a VCS primary continents graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isisofill
Check to see if an object is a VCS primary isofill graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isisoline
Check to see if an object is a VCS primary isoline graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isoutfill
Check to see if this object is a VCS primary outfill graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isoutline
Check to see if an object is a VCS primary outline graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isvector
Check to see if an object is a VCS primary vector graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isxvsy
Check to see if an object is a VCS primary xvsy graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isxyvsy
Check to see if an object is a VCS primary Xyvsy graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
isyxvsx
Check to see if an object is a VCS primary yxvsx graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
is3d_scalar
Check to see if an object is a VCS primary 3d_scalar graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Check
Example of Use:
is3d_vector
Check to see if an object is a VCS primary 3d_vector graphics method.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Check
Example of Use:
istemplate
Indicates if the entered argument a template.
Returns a 1 if the argment true.
Otherwise, it will return a 0, indicating false.
Object to Query
Example of Use:
issecondaryobject
In addition, detailed specification of the primary elements' (or primary class
elements'), attributes is provided by eight secondary elements or (secondary
class elements):
1.) colormap: specification of combinations of 256 available colors
2.) fill area: style, style index, and color index
3.) format: specifications for converting numbers to display strings
4.) line: line type, width, and color index
5.) list: a sequence of pairs of numerical and character values
6.) marker: marker type, size, and color index
7.) text table: text font type, character spacing, expansion, and color
index
8.) text orientation: character height, angle, path, and horizontal/vertical
alignment
Object to Query
Example of Use:
isfillarea
Check to see if an object is a VCS secondary fillarea.
Example of Use:
isline
Check to see if this object is a VCS secondary line.
Object to Query
Example of Use:
ismarker
Check to see if an object is a VCS secondary marker.
Object to Query
Example of Use:
istextcombined
Check to see if an object is a VCS secondary text combined.
Object to Query
Example of Use:
istextorientation
Check to see if an object is a VCS secondary text orientation.
Object to Query
Example of Use:
istexttable
Check to see if an object is a VCS secondary text table.
Object to Query
Example of Use:
List Available Templates,
Graphics Methods and Secondary Objects
listelements
Returns a Python list of all the VCS class objects.
Example of Use:
show
Show the list of VCS primary and secondary class objects.
Type of objects to list
Example of Use:
Graphics
Method Objects
Boxfill
createboxfill
Create a new boxfill graphics method given the name and the existingboxfill
graphics method to copy the attributes from. If no existing boxfill graphics
method name is given, then the default boxfill graphics method will be used as
the graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique.
new boxfill name
[name of boxfill to copy attributes from]
</td>
Example of Use:
</tr>
getboxfill
VCS contains a list of graphics methods. This function will create a boxfill
class object from an existing VCS boxfill graphics method. If no boxfill name is
given, then boxfill 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createboxfill function.)
[boxfill name]
Example of Use:
Object: boxfillobject
The boxfill graphics method (Gfb) displays a two-dimensional data array by
surrounding each data value by a colored grid box.
This class is used to define a boxfill table entry used in VCS, or it can be
used to change some or all of the attributes in an existing boxfill table entry.
Other Useful Functions:
a=vcs.init() # Constructor
# Show predefined boxfill graphics methods
a.show('boxfill')
# Change the VCS color map
a.setcolormap("AMIP")
# Plot data 's' with boxfill 'b' and 'default' template
a.boxfill(s, b, 'default')
# Updates the VCS Canvas at user's request
a.update()
# If 1, then automatic update, else if 0, then use the update function to update the VCS Canvas.
a.mode=1, or 0
Create a new continents graphics method given the name and the existing
continents graphics method to copy the attributes from. If no existing continents
graphics method name is given, then the default continents graphics method will
be used as the graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique.
new continents name
[name of continents to copy from]
Example of Use:
getcontinents
VCS contains a list of graphics methods. This function will create a
continents class object from an existing VCS continents graphics method. If no
continents name is given, then continents 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createcontinents function.)
[continents name]
</td>
Example of Use:
</tr>
Object: continentsobject
The Continents graphics method draws a predefined, generic set of continental
outlines in a longitude by latitude space. (To draw continental outlines, no
external data set is required.)
This class is used to define an continents table entry used in VCS, or it can
be used to change some or all of the continents attributes in an existing
continents table entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('continents') Show predefined boxfill graphics methods
a.show('line') Show predefined line class objects
a.setcolormap("AMIP") Change the VCS color map
a.continents(c,'default') Plot continents, where 'c' is the defined continents
object
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use update function to update the VCS
Canvas.
Create a new isofill graphics method given the name and the existing isofill
graphics method to copy the attributes from. If no existing isofill graphics
method name is given, then the default isofill graphics method will be used as
the graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique.
new isofill name
[name of isofill to copy attributes from]
Example of Use:
getisofill
VCS contains a list of graphics methods. This function will create a isofill
class object from an existing VCS isofill graphics method. If no isofill name is
given, then isofill 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createisofill function.)
[isofill name]
Example of Use:
Object: isofillobject
The Isofill graphics method fills the area between selected isolevels (levels
of constant value) of a two-dimensional array with a user-specified color. The
example below shows how to display an isofill plot on the VCS Canvas and how to
create and remove isofill isolevels.
This class is used to define an isofill table entry used in VCS, or it can be
used to change some or all of the isofill attributes in anexisting isofill table
entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('isofill') Show predefined isofill graphics methods
a.show('fillarea') Show predefined fillarea objects
a.show('template') Show predefined fillarea objects
a.setcolormap("AMIP") Change the VCS color map
a.createtemplate('test') Create a template
a.createfillarea('fill') Create a fillarea
a.gettemplate('AMIP') Get an existing template
a.getfillarea('def37') Get an existing fillarea
a.isofill(s,i,t) Plot array 's' with isofill 'i' and template 't'
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use update function to update the VCS Canvas.
Create a new isoline graphics method given the name and the existing isoline
graphics method to copy the attributes from. If no existing isoline graphics
method name is given, then the default isoline graphics method will be used as
the graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned.
Graphicsmethod names must be unique.
new isoline name
[name of isoline to copy attributes from]
Example of Use:
getisoline
VCS contains a list of graphics methods. This function will create a isoline
class object from an existing VCS isoline graphics method. If no isoline name is
given, then isoline 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createisoline function.)
[isoline name]
Example of Use:
Object: isolineobject
The Isoline graphics method draws lines of constant value at specified levels
in order to graphically represent a two-dimensional array. It also labels the
values of these isolines on the VCS Canvas. The example below shows how to plot
isolines of different types at specified levels and how to create isoline labels
having user-specified text and line type and color.
This class is used to define an isoline table entry used in VCS, or it can be
used to change some or all of the isoline attributes in an existing isoline table
entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('isoline') Show predefined isoline graphics methods
a.show('line') Show predefined VCS line objects
a.update() Updates the VCS Canvas at user's request
a.mode=1, or 0 If 1, then automatic update, else if 0, then use update
function.
a.setcolormap("AMIP") Change the VCS color map
a.isoline(s,a,'default') Plot data 's' with isoline 'i' and 'default'
template
tion to update the VCS Canvas.
See Chapter 6 for additional information.
Attributes:
name
projection
xticlabels1
xticlabels2
xmtics1
xmtics2
yticlabels1
yticlabels2
ymtics1
ymtics2
datawc_x1
datawc_y1
datawc_x2
datawc_y2
xaxisconvert
yaxisconvert
label
line
linecolors
text
textcolors
level
Example of Use:
Outfill
createoutfill
Create a new outfill graphics method given the name and the existing outfill
graphics method to copy the attributes from. If no existing outfill graphics
method name is given, then the default outfill graphics method will be used as
the graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique.
new outfill name
[name of outfill to copy attributes from]
Example of Use:
getoutfill
VCS contains a list of graphics methods. This function will create a outfill
class object from an existing VCS outfill graphics method. If no outfill name is
given, then outfill 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createoutfill function.)
[outfill name]
Example of Use:
Object: outfillobject
The outfill graphics method fills a set of integer values in any data
array.
Its primary purpose is to display continents by filling their area as defined
by a surface type array that indicates land, ocean, and sea-ice points. The
example below shows how to apply the outfill graphics method and how to
modify
Fillarea and outfill attributes. Other Useful Functions:
a=vcs.init() Constructor
a.show('outfill') Show predefined outfill graphics methods
a.show('line') Show predefined VCS line objects
a.setcolormap("AMIP") Change the VCS color map
a.outfill(s,o,'default') Plot data 's' with outfill 'o' and 'default'
template
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0 . If 1,
then automatic update, else if 0, then use update function to update the VCS
Canvas.
See Chapter 6 for additional information.
Attributes:
name
projection
xticlabels1
xticlabels2
xmtics1
xmtics2
yticlabels1
yticlabels2
ymtics1
ymtics2
datawc_x1
datawc_y1
datawc_x2
datawc_y2
xaxisconvert
yaxisconvert
fillareastyle
fillareaindex
fillareacolor
outfill
Example of Use:
Outline
createoutline
Create a new outline graphics method given the name and the existing outline
graphics method to copy the attributes from. If no existing outline graphics
method name is given, then the default outline graphics method will be used as
the graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique.
new outline name
[name of outline to copy attributes from]
</td>
Example of Use:
</tr>
getoutline
VCS contains a list of graphics methods. This function will create a outline
class object from an existing VCS outline graphics method. If no outline name is
given, then outline 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createoutline function.)
[outline name]
Example of Use:
Object: outlineobject
The Outline graphics method outlines a set of integer values in any data
array.
Its primary purpose is to display continental outlines as defined by a
surface
type array that indicates land, ocean, and sea-ice points. The example
below
shows how to change such an outline by modifying its attributes.
Other Useful Functions:
a=vcs.init() Constructor
a.show('outline') Show predefined outline graphics methods
a.show('line') Show predefined VCS line objects
a.setcolormap("AMIP") Change the VCS color map
a.outline(s,o,'default') Plot data 's' with outline 'o' and 'default'
template
a.update()
Updates the VCS Canvas at user's request a.mode=1, or 0 # If 1, then automatic
update, else if 0, then use u pdate function to update the VCS Canvas.
See Chapter 6 for additional information.
Attributes:
name
projection
xticlabels1
xticlabels2
xmtics1
xmtics2
yticlabels1
yticlabels2
ymtics1
ymtics2
datawc_x1
datawc_y1
datawc_x2
datawc_y2
xaxisconvert
yaxisconvert
line
linecolor
outline
Example of Use:
Scatter
createscatter
Create a new scatter graphics method given the name and the existing mscatter
graphics method to copy the attributes from. If no existing scatter graphics
method name is given, then the default scatter graphics method will be used as
the graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique
new scatter name
[name of scatter to copy attributes from]
Example of Use:
getscatter
VCS contains a list of graphics methods. This function will create a scatter
class object from an existing VCS scatter graphics method. If no scatter name is
given, then scatter 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createscatter function.)
[scatter name]
Example of Use:
Object: scatterobject
The Scatter graphics method displays a scatter plot of two 4-dimensional data
arrays, e.g. A(x,y,z,t) and B(x,y,z,t). The example below shows how to change the
marker attributes of a scatter plot.
This class is used to define an scatter table entry used in VCS, or it can be
used to change some or all of the scatter attributes in an existing scatter table
entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('scatter') Show predefined scatter graphics methods
a.show('marker') Show predefined marker objects
a.setcolormap("AMIP") Change the VCS color map
a.scatter(s1, s2, s,'default') Plot data 's1' and 's2' with scatter 's' and
'default' template
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use update function to update the VCS
Canvas.
See Chapter 6 for additional information.
Attributes:
name
projection
xticlabels1
xticlabels2
xmtics1
xmtics2
yticlabels1
yticlabels2
ymtics1
ymtics2
datawc_x1
datawc_y1
datawc_x2
datawc_y2
xaxisconvert
yaxisconvert
marker
markercolor
markersize
Example of Use:
Vector
createvector
Create a new vector graphics method given the name and the existing vector
graphics method to copy the attributes from. If no existing vector graphics
method name is given, then the default vector graphics method will be used as the
graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique.
new vector name
[name of vector to copy attributes from]
Example of Use:
getvector
VCS contains a list of graphics methods. This function will create a vector
class object from an existing VCS vector graphics method. If no vector name is
given, then vector 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createvector function.)
[vector name]
Example of Use:
Object: vectorobject
The vector graphics method displays a vector plot of a 2D vector field.
Vectors
are located at the coordinate locations and point in the direction of the data
vector field. Vector magnitudes are the product of data vector field lengths and
a scaling factor. The example below shows how to modify the vector's line, scale,
alignment, type, and reference.
This class is used to define an vector table entry used in VCS, or it can be
used to change some or all of the vector attributes in an existing vector table
entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('vector') Show predefined vector graphics methods
a.show('line') Show predefined VCS line objects
a.setcolormap("AMIP") Change the VCS color Map
a.vector(s1, s2, v,'default') Plot data 's1', and 's2' with vector 'v' and
'default' template
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use update function to update the VCS
Canvas.
See Chapter 6 for additional information.
Attributes:
name
projection
xticlabels1
xticlabels2
xmtics1
xmtics2
yticlabels1
yticlabels2
ymtics1
ymtics2
datawc_x1
datawc_y1
datawc_x2
datawc_y2
xaxisconvert
yaxisconvert
line
linecolor
scale
alignment
type
reference
Example of Use:
XvsY
createxvsy
Create a new XvsY graphics method given the name and the existing XvsY
graphics method to copy the attributes from. If no existing XvsY graphics method
name is given, then the default XvsY graphics method will be used as the graphics
method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique.
new xvsy name
[name of xvsy to copy attributes from]
</ul>
</td>
Example of Use:
</tr>
getxvsy
VCS contains a list of graphics methods. This function will create a XvsY
class object from an existing VCS XvsY graphics method. If no XvsY name is given,
then XvsY 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createxvsy function.)
[xvsy name]
Example of Use:
Object: xvsyobject
The XvsY graphics method displays a line plot from two 1D data arrays, that is
X(t) and Y(t), where t represents the 1D coordinate values. The example below
shows how to change line and marker attributes for the XvsY graphics method.
This class is used to define an XvsY table entry used in VCS, or it can be
used to change some or all of the XvsY attributes in an existing XvsY table
entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('xvsy') Show predefined XvsY graphics methonds
a.show('line') Show predefined VCS line objects
a.show('marker') Show predefined VCS marker objects
a.setcolormap("AMIP") Change the VCS color map
a.xvsy(s1, s2, ,x,'default') Plot data 's1' and 's2' with XvsY 'x' and
'default' template
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use update function to Update the VCS
Canvas.
See Chapter 6 for additional information.
Attributes:
name
projection
xticlabels1
xticlabels2
xmtics1
xmtics2
yticlabels1
yticlabels2
ymtics1
ymtics2
datawc_x1
datawc_y1
datawc_x2
datawc_y2
xaxisconvert
yaxisconvert
line
linecolor
marker
markercolor
markersize
Example of Use:
There are four possibilities for setting the marker color index
(Example):
To set the XvsY Marker sizie:
Xyvsy
createxyvsy
Create a new Xyvsy graphics method given the name and the existing Xyvsy
graphics method to copy the attributes from. If no existing Xyvsy graphics method
name is given, then the default Xyvsy graphics method will be used as the
graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique.
new xyvsy name
[name of xyvsy to copy attributes from]
Example of Use:
getxyvsy
VCS contains a list of graphics methods. This function will create a Xyvsy
class object from an existing VCS Xyvsy graphics method. If no Xyvsy name is
given, then Xyvsy 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createxyvsy function.)
[xyvsy name]
Example of Use:
Object: xyvsyobject
The Xyvsy graphics method displays a line plot from a 1D data array (i.e. a
plot of X(y), where y represents the 1D coordinate values). The example below
ributes for the Xyvsy graphics method.
This class is used to define an Xyvsy table entry used in VCS, or it can be
used to change some or all of the Xyvsy attributes in an existing Xyvsy table
entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('xyvsy') Show predefined Xyvsy graphics methonds
a.show('line') Show predefined VCS line objects
a.show('marker') Show predefined VCS marker objects
a.setcolormap("AMIP") Change the VCS color map
a.xyvsy(s, x, 'default') Plot data 's' with Xyvsy 'x' and 'default'
template
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0 . If 1,
then automatic update, else if 0, then use update function.
See Chapter 6 for additional information.
Attributes:
name
projection
xticlabels1
xticlabels2
xmtics1
xmtics2
yticlabels1
yticlabels2
ymtics1
ymtics2
datawc_x1
datawc_y1
datawc_x2
datawc_y2
xaxisconvert
line
linecolor
marker
markercolor
markersize
Example of Use:
There are four possibilities for setting the marker color index (Ex):
To set the Xyvsy Marker sizie:
Yxvsx
createyxvsx
Create a new Yxvsx graphics method given the name and the existing Yxvsx
graphics method to copy the attributes from. If no existing Yxvsx graphics method
name is given, then the default Yxvsx graphics method will be used as the
graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique
new yxvsx name
[name of yxvsx to copy attributes from]
Example of Use:
getyxvsx
VCS contains a list of graphics methods. This function will create a Yxvsx
class object from an existing VCS Yxvsx graphics method. If no Yxvsx name is
given, then Yxvsx 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createyxvsx function.)
[yxvsx name]
Example of Use:
Object: yxvsxobject
The Yxvsx graphics method displays a line plot from a 1D data array (i.e.
aplot of Y(x), where y represents the 1D coordinate values). The example
belowshows how to change line and marker attributes for the Yxvsx graphics
method.
This class is used to define an Yxvsx table entry used in VCS, or it can
beused to change some or all of the Yxvsx attributes in an existing Yxvsx table
entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('yxvsx') Show predefined Yxvsx graphics methonds
a.show('line') Show predefined VCS line objects
a.show('marker') Show predefined VCS marker objects
a.setcolormap("AMIP") Change the VCS color map
a.yxvsx(s, x, 'default') Plot data 's' with Yxvsx 'x' and 'default'
template
a.update() Updates the VCS Canvas at user's request
a.mode=1, or 0 If 1, then automatic update, else if 0, then use update
function.
See Chapter 6 for additional information.
Attributes:
name
projection
xticlabels1
xticlabels2
xmtics1
xmtics2
yticlabels1
yticlabels2
ymtics1
ymtics2
datawc_x1
datawc_y1
datawc_x2
datawc_y2
yaxisconvert
line
linecolor
marker
markercolor
markersize
Example of Use:
3D Scalar
create3d_scalar
Create a new Yxvsx graphics method given the name and the existing Yxvsx
graphics method to copy the attributes from. If no existing Yxvsx graphics method
name is given, then the default Yxvsx graphics method will be used as the
graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique
new 3d_scalar name
[existing 3d_vector to copy attributes from]
Example of Use:
get3d_scalar
VCS contains a list of graphics methods. This function will create a boxfill
class object from an existing VCS boxfill graphics method. If no boxfill name is
given, then boxfill 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createboxfill function.)
[3d_scalar name]
Example of Use:
3D Vector
create3d_vector
Create a new 3d_vector graphics method given the name and the existing
3d_vector graphics method to copy the attributes from. If no existing 3d_vector
graphics method name is given, then the default 3d_vector graphics method will be
used as the graphics method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Graphics
method names must be unique
new 3d_vector name
[existing 3d_vector to copy attributes from]
Example of Use:
get3d_vector
VCS contains a list of graphics methods. This function will create a 3d_vector
class object from an existing VCS 3d_vector graphics method. If no 3d_vector name
is given, then 3d_vector 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the create3d_vector function.)
[3d_vector name]
Example of Use:
Picture Template
createtemplate
Create a new template given the name and the existing template to copy the
attributes from. If no existing template name is given, then the default template
will be used as the template to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Template
names must be unique.
new template name
[name of template to copy attributes from]
Example of Use:
gettemplate
VCS contains a list of predefined templates. This function will create a
template class object from an existing VCS template. If no template name is
given, then template 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createtemplate function.)
[template name]
Example of Use:
Object: templateobject
The template primary method (P) determines the location of each picture
segment, the space to be allocated to it, and related properties relevant to its
display.
Other Useful Functions:
a.show('template') Show predefined templates
a.show('texttable') Show predefined text table methods
a.show('textorientation') Show predefined text orientation methods
a.show('line') Show predefined line methods
a.listelements('template') Show templates as a Python list
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use the update function toupdate the VCS
Canvas.
It is necessary to change the colormap. This routine will change the VCS color
map.
If the visual display is 16-bit, 24-bit, or 32-bit TrueColor, then a redrawing
of the VCS Canvas is made every time the colormap is changed.
colormap
Example of Use:
setcolorcell
Set a individual color cell in the active colormap. If default is the active
colormap, then return an error string.
If the visul display is 16-bit, 24-bit, or 32-bit TrueColor, then a redrawing
of the VCS Canvas is made evertime the color cell is changed.
Note, the user can only change color cells 0 through 239 and R,G,Bvalue must
range from 0 to 100. Where 0 represents no color intensity and 100 is the
greatest color intensity.
colormap layout: default to 239
R - Red intensity value: 0 to 100
G - Green intensity value: 0 to 100
B - Blue intensity value: 0 to 100
Example of Use:
Fill Area
createfillarea
Create a new fillarea secondary method given the name and the existing
fillarea secondary method to copy the attributes from. If no existing fillarea
secondary method name is given, then the default fillarea secondary method will
be used as the secondary method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Secondary
method names must be unique.
new fillarea name
[name of fillarea to copy attributes from]
Example of Use:
getfillarea
VCS contains a list of secondary methods. This function will create a fillarea
class object from an existing VCS fillarea secondary method. If no fillarea name
is given, then fillarea 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createfillarea function.)
[fillarea name]
Example of Use:
Object: fillareaobject
The Fillarea class object allows the user to edit fillarea attributes,
including
fillarea interior style, style index, and color index.
This class is used to define an fillarea table entry used in VCS, or itcan be
used to change some or all of the fillarea attributes in an existing fillarea
table entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('fillarea') Show predefined fillarea objects
a.update() # Updates the VCS Canvas at user's request a.mode=1, or 0 If 1,
then automatic update, else if 0, then use update function to update the VCS
Canvas.
name
style
index
color
Example of Use:
Line
createline
Create a new line secondary method given the name and the existing line
secondary method to copy the attributes from. If no existing line secondary
method name is given, then the default line secondary method will be used as the
secondary method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned. Secondary
method names must be unique
new line name
[name of line to copy attributes from]
Example of Use:
getline
VCS contains a list of secondary methods. This function will create a line
class object from an existing VCS line secondary method. If no line name is
given, then line 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createline function.)
[line name]
Example of Use:
Object: lineobject
The Line object allows the manipulation of line type, width, and color
index.
This class is used to define an line table entry used in VCS, or itcan be used
to change some or all of the line attributes in an existing line table entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('line') Show predefined line objects
a.update() # Updates the VCS Canvas at user's request a.mode=1, or 0 If 1,
then automatic update, else if 0, then use update function to update the VCS
Canvas.
name
type
width
color
Example of Use:
Marker
createmarker
Create a new marker secondary method given the name and the existing marker
secondary method to copy the attributes from. If no existing marker secondary
method name is given, then the default marker secondary method will be used as
the secondary method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned.
Secondary method names must be unique.
new marker name
[name of marker to copy attributes from]
Example of Use:
getmarker
VCS contains a list of secondary methods. This function will create a marker
class object from an existing VCS marker secondary method. If no marker name is
given, then marker 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createmarker function.)
[marker name]
Example of Use:
Object: markerobject
The Marker object allows the manipulation of marker type, size, and color
index.
This class is used to define an marker table entry used in VCS, or it can be
used to change some or all of the marker attributes in an existing marker table
entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('marker') Show predefined marker objects
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use update function to update the VCS
Canvas.
name
type
size
color
Example of Use:
Text-Combined
createtextcombined
Create a new textcombined secondary method given the names and the existing
texttable and textorientation secondary methods to copy the attributes from. If
no existing texttable and textorientation secondary method names are given, then
the default texttable and textorientation secondary methods will be used as the
secondary method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned.
Secondary method names must be unique.
new textcombined name
[name of textcombined to copy attributes from]
Example of Use:
gettextcombined
VCS contains a list of secondary methods. This function will create a
textcombined class object from an existing VCS texttable secondary method and an
existing VCS textorientation secondary method. If no texttable or textorientation
names are given, then the 'default' names will be used in both cases.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createtextcombined function.)
[textcombined name]
Example of Use:
Object: textcombinedobject
The (Tc) Text Combined class will combine a text table class and a text
orientation class together. From combining the two classess, the user will be
able to set attributes for both classes (i.e., define the font, spacing,
expansion, color index, height, angle, path, vertical alignment, and horizontal
alignment).
This class is used to define and list a combined text table and text
orientation
entry used in VCS.
name
font
spacing
expansion
color
name
height
angel
path
halign
valign
Example of Use:
Text-Orientation
createtextorientation
Create a new textorientation secondary method given the name and he existing
textorientation secondary method to copy the attributes from. If no existing
textorientation secondary method name is given, then the default textorientation
secondary method will be used as the secondary method to which the attributes
will be copied from.
If the name provided already exists, then a error will be returned.
Secondary method names must be unique.
new textorientation name
[name of textorientation to copy attributes from]
Example of Use:
gettextorientation
VCS contains a list of secondary methods. This function will create a
textorientation class object from an existing VCS textorientation secondary
method. If no textorientation name is given, then textorientation 'default' will
be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createtextorientation function.)
[textorientation name]
Example of Use:
Object: textorientationobject
The (To) Text Orientation lists text attribute set names that define the font,
spacing, expansion, and color index.
This class is used to define an text orientation table entry used in VCS, or
it can be used to change some or all of the text orientation attributes in an
existing text orientation table entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('textorientation') Show predefined text orientation objects
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use update function to update the VCS
Canvas.
name
height
angel
path
halign
valign
Example of Use:
Text-Table
createtexttable
Create a new texttable secondary method given the name and the existing
texttable secondary method to copy the attributes from. If no existing texttable
secondary method name is given, then the default texttable secondary method will
be used as the secondary method to which the attributes will be copied from.
If the name provided already exists, then a error will be returned.
Secondary method names must be unique.
new texttable name
[name of texttable to copy attributes from]
Example of Use:
gettexttable
VCS contains a list of secondary methods. This function will create a
texttable class object from an existing VCS texttable secondary method. If no
texttable name is given, then texttable 'default' will be used.
Note, VCS does not allow the modification of 'default' attribute sets.
However, a 'default' attribute set that has been copied under a different name
can be modified. (See the createtexttable function.)
[texttable name]
Example of Use:
Object: texttableobject
The (Tt) Text Table lists text attribute set names that define the font,
spacing, expansion, and color index.
This class is used to define an text table table entry used in VCS, or it can
be used to change some or all of the text table attributes in an existing text
table table entry.
Other Useful Functions:
a=vcs.init() Constructor
a.show('texttable') Show predefined text table objects
a.update() Updates the VCS Canvas at user's request a.mode=1, or 0. If 1, then
automatic update, else if 0, then use update function to update the VCS
Canvas.
name
font
spacing
expansion
color
Example of Use:
Remove Objects
removeobject
The user has the ability to create primary and secondary class objects. This
function allows the user to remove these objects from the appropriate class
list.
Note, To remove the object completely from Python, remember to use the "del"
function.
Also note, The user is not allowed to remove a "default" class object.
object
Example of Use:
Set Continents
Type
setcontinentstype
One has the option of using continental maps that are predefined or that are
user-defined. Predefined continental maps are either internal to VCS or are
specified by external files. User-defined continental maps are specified by
additional external files that must be read as input.
The continents-type values are integers ranging from 0 to 11, where:
Values 6 through 11 signify the line type defined by the files
data_continent_other7 through data_continent_other12.
continents type number, ranging from 0 to 11
Example of Use:
Set Default Picture Template and Graphics Methods
set
Set the default VCS primary class objects: template and graphics methods.
Keep in mind the template, determines the appearance of each graphics segment;
the graphic method specifies the display technique; and the data defines what is
to be displayed. Note, the data cannot be set with this function.
template or graphics methods type,
[template name or graphics method name]
Example of Use:
Animation
animate
Animate the contents of the VCS Canvas. Currently, only one display can be
shown in the VCS Canvas for the animation to work.
Example of Use:
Flush
flush
The flush command executes all buffered X events in the que.
Example of Use:
Grid
grid
Set the default plotting region for variables that have more dimension values
than the graphics method. This will also be used for animating plots over the
third and fourth dimensions.
([first dim's 1st value, first dim's last value] ,..., [last dim's 1st value, last dim's last value]
Example of Use:
resetgrid
Set the plotting region to default values. That is, let the variable's
dimension values determine the grid