Inspirated

 
 

January 6, 2010

(GUI, Mathematical Equations, Scientific Plotting) = (GTK+, LaTeX, Matplotlib)

Filed under: Blog — krkhan @ 10:16 am

GTK+ needs no introduction. LaTeX is the first thing that pops in anyone’s mind if mathematical equations’ typesetting is under consideration. Matplotlib — while not as well-known as the former two — is the super easy and elegant solution for scientific plotting on *nix platforms.

For an application demo, I required all three. Past experience has taught me that the most straightforward way of “gluing” things together is Python. GTK+ therefore = PyGTK. Next up was LaTeX, and a previous solution of mine for embedding LaTeX in PyGTK came to the rescue. The final requirement of Matplotlib was fulfilled without any hassle since the library was already written in Python.

The collective result was pretty:

radareq-0.1.tar.gz

Screenshot of GTK+ with LaTeX and Matplotlib
(Click on the image for larger version.)

The linked tarball contains the Python scripts for the application. For everything to run smoothly, LaTeX and Matplotlib packages need to be installed on your system. If you encounter any issues running the code, feel free to flame your distribution for the apparent lack of sanity regarding package management.

Tags: , , , , , , , , , , ,

3 Comments

  1. impressive, that was really a good idea.

    Comment by Mustafa Yılmaz — April 14, 2010 @ 5:12 am

  2. Nice one!

    Comment by chou — March 26, 2011 @ 5:10 am

  3. Just wanted to add my thanks for this. I had previously gotten matplotlib and TeX to work with tkinter, but was stymied after switching to pyGTK as matplotlib’s backend. I was able to use your approach to resolve all my issues.

    Comment by Istlota — May 29, 2013 @ 7:11 am

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.