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

Dharhas Pothina Dharhas.Pothina at twdb.state.tx.us
Mon Dec 22 14:43:50 EST 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 at 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://mail.scipy.org/pipermail/scipy-user/attachments/20081222/2cb33124/attachment.gif>


More information about the SciPy-User mailing list