casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
clearplot.py
Go to the documentation of this file.
00001 #
00002 # This file was generated using xslt from its XML file
00003 #
00004 # Copyright 2009, Associated Universities Inc., Washington DC
00005 #
00006 import sys
00007 import os
00008 from  casac import *
00009 import string
00010 from taskinit import casalog
00011 #from taskmanager import tm
00012 import task_clearplot
00013 def clearplot():
00014 
00015         """Clear the matplotlib plotter and all layers
00016 
00017 Run the task clearplot when you want to clear completely the matplotlib, but keep
00018 it available for additional plotting.
00019 
00020 Typing 'go clearplot()'  will not change the current task being scrutinized
00021 Typing 'clearplot()      will change the current task assignment to clearplot
00022                          which is generally not what is desired.
00023 
00024 
00025   
00026         """
00027 
00028 #
00029 #    The following is work around to avoid a bug with current python translation
00030 #
00031         mytmp = {}
00032 
00033         pathname='file:///'+os.environ.get('CASAPATH').split()[0]+'/share/xml/'
00034         trec = casac.utils().torecord(pathname+'clearplot.xml')
00035 
00036         casalog.origin('clearplot')
00037         if trec.has_key('clearplot') and casac.utils().verify(mytmp, trec['clearplot']) :
00038             result = task_clearplot.clearplot()
00039 
00040         else :
00041           result = False
00042         return result