Re: [SciPy-user] spreadsheet data visualisation app
![](https://secure.gravatar.com/avatar/359f28f6ec438ffd71208f2202d862f2.jpg?s=120&d=mm&r=g)
Unfortunately, the intrepid ibex ubuntu version of matplotlib seems to be too old, though pygtk and friends is easy using apt-get. I actually prefer to use matplotloib within Sage (as in, www.sagemath.org), but there pygtk is not easy for me to install. If your comment below says gtktools is not needed, then I don't understand how to use matplotlib to display a csv file. Is there a different command you had in mind? ---- Original message ----
Date: Sat, 8 Nov 2008 07:07:26 -0600 From: "John Hunter" <jdh2358@gmail.com> Subject: Re: [SciPy-user] spreadsheet data visualisation app To: "SciPy Users List" <scipy-user@scipy.org>
On Sat, Nov 8, 2008 at 6:53 AM, David Warde-Farley <dwf@cs.toronto.edu> wrote:
without error at the python prompt. Hopefully the matplotlib package for Ubuntu has the GTK backend built in and they just forgot to tag the dependency; if not, you may be stuck compiling from source (which admittedly is not hard).
Actually, you do not necessarily need to use a gtk* backend to use this feature. The gtktools are just things I use when embedding matplotlib in gtkapps, but the rec2gtk view is not dependent on any mpl backend as it simply creates a gtk treeeview in a gtk scroll window from a rec array. So yes, he will need to install pygtk, but shouldn't have any problems if he simply wants to use rec2gtk from the python shell or embedded in a gtk app.
There is one caveat to this -- if you want to use this feature interactively from the ipython shell and use pylab at the same time, then you will need a gtk backend. Eg in the example I posted, when I did rec2gtk from the ipython shell, that only works properly if ipython is in gthread mode, which it will be if you are running -pylab with a gtk* backend.
JDH _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
participants (1)
-
David Joyner