[SciPy-user] scikits.timeseries : bottom of year cut off plot when saving

Dharhas Pothina Dharhas.Pothina@twdb.state.tx...
Mon Dec 22 13:43:50 CST 2008


Hi,

This is probably a simple fix but I'm not sure how to do it. If you look at the attached figure, the bottom few pixels of '2003' are cut off when using savefig to save the figure as a png.

My code is below :

       fig = tpl.tsfigure()
       fsp = fig.add_tsplot(111)
       fsp.tsplot(baseAS[:,i,0,0].convert(freq=freq,func=np.mean), 'r',label='No Siphons')
       fsp.tsplot(SL_AS03_142[:,i,0,0].convert(freq=freq,func=np.mean), 'b',label='Star Lake Siphon')
       fsp.tsplot(WL_AS03_142[:,i,0,0].convert(freq=freq,func=np.mean), 'g',label='Willow Lake Siphon')
       fsp.tsplot(CS_AS03_142[:,i,0,0].convert(freq=freq,func=np.mean), 'c',label='Control Structure Siphon')
       fsp.set_ylim(0,35)
       fsp.grid()
       fsp.set_title(site + ': Siphon Flow = 1.42 m^3/s')
       fsp.set_ylabel('Salinity (ppt)')
       py.legend()
       plotname = 'plots/' + site + '_AS03_Salinity_Scenarios_Const142'
       py.savefig(plotname + '_freq-' + freq + '.png',dpi=300,format='png')

- dharhas 

Dharhas Pothina
Hydrologist, Bays & Estuaries Section
Surface Water Resources Division
Texas Water Development Board
1700 North Congress Ave.
P.O. Box 13231
Austin, TX 78711-3231

Tel: (512) 936-0818
Fax: (512) 936-0816

dharhas.pothina@twdb.state.tx.us 
www.twdb.state.tx.us 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.gif
Type: image/gif
Size: 22091 bytes
Desc: CompuServe GIF graphic
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20081222/2cb33124/attachment-0001.gif 


More information about the SciPy-user mailing list