From: Lawson H. <L.H...@bo...> - 2008-12-16 02:21:25
|
We are using CDAT 5.0beta1 (from about September 2008), and currently trying to upgrade to the latest SVN trunk, but having trouble with that (reported separately) However, this report relates to a problem when generating hard-copy output (i.e., writing to a file) from "vcs"; the simple script: #!/bm/gshare/cdat/bin/python import cdms2, vcs # Open the data file: filepath = '/flurry/home/lih/ts_A1_2000_2099.nc' cdmsfile = cdms2.open(filepath) data = cdmsfile('ts') # Initialize VCS: v = vcs.init() # Plot data using the default boxfill graphics method: v.plot(data[0], yrev=0) # Generate output files: v.postscript('tst-v5.ps') v.eps('tst-v5.eps', orientation='l') produces the PostScript and Encapsulated PostScript files, but the images provided in those files appear to be truncated. In the plain PostScript file, the image is truncated at the right-hand side (approx. 5% to 10%); and the image in the Encapsulated PostScript file is truncated at the lower right edge ... the last two or three labels of the color scale Legend just go missing I tried generating output for other file types ('png', 'svg', and 'gif') and the 'png' and 'svg' files were similarly truncated compared to the on-screen plot image of the data Have there been many fixes and modifications to "vcs" in the latest version of the SVN trunk of CDAT 5.0beta1 ? Best regards, Lawson Hanson ------ Climate Change Group, Centre for Australian Weather and Climate Research, Australian Bureau of Meteorology, GPO Box 1289, Melbourne, Victoria 3001 AUSTRALIA |