[SciPy-user] Re: plot_func

Matt Kubilus matttdl at hotmail.com
Thu Aug 5 15:15:10 CDT 2004

Looking at the gplt modules, it appears that the necessary function to send 
commands directly is a hidden function.

I ended up needing to use scipy.gplt with time series data that I was 
logging.  There doesn't appear to be a way to do this (Gnuplot can, 
scipy.gplt makes this not possible)  so anyways, I hacked into the pyPlot.py 
module and added a function that essentially just sends a command to the 
hidden function that actually calls the plotting routines.  This allowed me 
to use the full functionality of gnuplot which can to way more than just 
what scipy.gplt does.

If anyone is interested, I can post the actual code changes.

--Matt Kubilus

>From: Alan G Isaac <aisaac at american.edu>
>Reply-To: aisaac at american.edu,SciPy Users List <scipy-user at scipy.net>
>To: aisaac at american.edu, scipy-user at scipy.net
>CC: scipy-dev at scipy.net
>Subject: [SciPy-user] Re: plot_func
>Date: Tue, 3 Aug 2004 12:29:40 -0400 (Eastern Daylight Time)
>On Sun, 1 Aug 2004 Alan G Isaac apparently wrote:
> > I noticed that pyPlot.py has:
> >     def plot_func(self,func):
> >         self._init_plot()
> >         if(type(func) == StringType):
> >             self._send('plot '+ func)
> >         else:
> >             print 'error: requires a function as a string'
> > but gplt.plot_func is not available.
>OK, I've confirmed that if I make an instance of
>then the plot_func method works fine for this instance.
>I don't know enough about Python to guess why gplt is
>not giving us access to this.  Can anyone help?
>Thank you,
>Alan Isaac
>SciPy-user mailing list
>SciPy-user at scipy.net

Discover the best of the best at MSN Luxury Living. http://lexus.msn.com/

More information about the SciPy-user mailing list