Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: pgplotmanager.play - Function Up: pgplotmanager - Tool Previous: pgplotmanager.recording - Function


pgplotmanager.canplay - Function



Package display
Module plotter
Tool pgplotmanager


return whether a command can be executed


Synopsis
canplay()



Description
This function returns true if the given command is recognized as a supported plot command. To be recognized, the command parameter must be the name of a plotting function of this tool (either a ``raw'' plotting command supported by the Glish/PGPLOT agent or higher level command, like settings() or plotxy()) or a custom command that has been added via the addredrawfunction() function (usually as part of a plug-in).



Example
Consider this session in which no custom commands have been added:
- print pg.canplay('plotxy');
T
- print pg.canplay('gray');
T
- print pg.canplay('grayscale');
F





next up previous contents index
Next: pgplotmanager.play - Function Up: pgplotmanager - Tool Previous: pgplotmanager.recording - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15