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


next up previous contents index
Next: pgplotwidget.recording - Function Up: pgplotwidget - Tool Previous: pgplotwidget.getcallbacks - Function


pgplotwidget.record - Function



Package display
Module plotter
Tool pgplotwidget


Save the drawing commands


Synopsis
record(newstate)


Description
This function gives you control of whether or not the plotting commands are saved in the internal display list or not. You might want to do this for efficiency concerns (e.g. the commands are coming frequently and contain a lot of pixels), or so that you can ``undraw'' some temporary plotting with a refresh.

The return value is the previous state of the function to make it easy to get back to the previous state.



Example
- pg.record(F); # Turn off saving plot commands
- ... temporary ``decoration''
- pg.refresh()  # Make the temporary stuff go away.
- pg.record(T)  # Start recording again



Arguments

newstate   Record or not?
    Allowed: boolean


Returns
boolean - the former recording state




next up previous contents index
Next: pgplotwidget.recording - Function Up: pgplotwidget - Tool Previous: pgplotwidget.getcallbacks - 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