Showing Available Graphics Methods

Question

How do you show what graphics methods are available?

Answer

The show command does the trick. As it is a method attached to a VCS canvas object, you have to first initialize a canvas:

>>> import vcs
>>> v = vcs.init()
>>> v.show('xvsy')
**************************XvsY Names List*************************
(   1):             default
**************************End XvsY Names List*********************

which tells us there is one xvsy graphics methods available, the default method.

The argument for show is the method type (e.g. isofill, scatter, continents, etc.) as a string scalar. Also show can be used to list all types of VCS objects, not just graphics methods.


Notes: This discussion applies to CDAT 3.3.

Return to the Tips and Examples index page.

Updated: December 3, 2003 by Johnny Lin <email address>. License.