hexrd uses the pylab interface, which is not intended for use in GUI applications. (plotwrap even uses the tk backend). For embedding in GUI applications, matplotlib provides an object-oriented interface. There are several examples provided for the various gui toolkits:
hexrd uses the pylab interface, which is not intended for use in GUI applications. (plotwrap even uses the tk backend). For embedding in GUI applications, matplotlib provides an object-oriented interface. There are several examples provided for the various gui toolkits:
http://matplotlib.org/examples/user_interfaces/embedding_in_wx2.html (also wx3-wx5.html) http://matplotlib.org/examples/user_interfaces/embedding_in_qt4_wtoolbar.html