00001 #If ~/.matplotlib/matplotlibrc contains 'backend : TkAgg' 00002 #plotxy (tableplot) can do either interactive of non-interactive 00003 #If ~/.matplotlib/matplotlibrc contains 'backend : Agg' 00004 #plotxy (tableplot) can only do non-interactive 00005 import sys 00006 #sys.path.insert(2,'/home/casa-dev-09/hye/gnuactive/linux_64b/python/2.5') 00007 from casac import * 00008 import matplotlib 00009 mytp=casac.tableplot() 00010 #mytp.setgui(False) 00011 mytp.setgui(True) 00012 mytp.open(tabnames='ngc5921.ms') 00013 pop={'timeplot':'x', 'overplot':True, 'plotsymbol':'o','multicolour':True,'nrows':1} 00014 xystr=['(TIME/86400.0)+678576.0','UVW[1]']; 00015 mytp.plotdata(poption=pop,datastr=xystr) 00016 mytp.savefig(filename='lastSave.png') 00017