Sunday, March 17, 2013

GUI Wrapper for graphing library

One problem we have with our currently python plotting (besides buffer overflow) is the lack of interactivity with the plotting window itself. Whenever we click the plotting window, it freezes up. The buttons for modifying the plot in matplotlib on work after the graph has finished plotting, which is useless for us since it will never be done. Therefore we need a GUI wrapper to contain our graphing module, that has buttons and other modes to interact with the plot. Daniel found a matplotlib example that uses the wxPython wrapper: http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/ , and Anand found a graphing module built from scratch using Tkinter, the "default" GUI library for Python: (insert link here).

The wxPython example requires wxPython to be installed, along with the following two lines to be placed before import wx:

import wxversion
wxversion.select('2.8')

SimPlot is another plotting tool, but it's just like Stamplot, so we don't think there's much use for it now.

Happy St. Patrick's Day!

No comments:

Post a Comment