From: Paul Brossier Date: Wed, 2 Aug 2006 14:48:20 +0000 (+0000) Subject: remove obsolete gnuplot_init X-Git-Tag: bzr2git~573 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ed91337e8f09722099cefcc84e8a4e2679ac83e;p=aubio.git remove obsolete gnuplot_init remove obsolete gnuplot_init --- diff --git a/python/aubio/gnuplot.py b/python/aubio/gnuplot.py index 817a82bc..29f2edd9 100644 --- a/python/aubio/gnuplot.py +++ b/python/aubio/gnuplot.py @@ -167,20 +167,6 @@ def make_audio_plot(time,data,maxpoints=10000): y = numarray.array(data).resize(length)[0:-1:downsample] return Gnuplot.Data(x,y,with='lines') -def gnuplot_init(outplot,debug=0,persist=1): - # prepare the plot - import Gnuplot - g = Gnuplot.Gnuplot(debug=debug, persist=persist) - if outplot == 'stdout': - g("set terminal png fontfile 'p052023l.pfb'") - #g('set output \'%s\'' % outplot) - elif outplot: - extension = outplot.split('.')[-1] - if extension == 'ps': extension = 'postscript' - g('set terminal %s' % extension) - g('set output \'%s\'' % outplot) - return g - def gnuplot_create(outplot='',extension='',debug=0,persist=1, xsize=1., ysize=1.): import Gnuplot g = Gnuplot.Gnuplot(debug=debug, persist=persist)