Tiago, I am 100% sure it has nothing to do with the graph tool but rather with Gtk backend. I should have probably mentioned that in my first email. The only reason I posted it on the mailing list was because I am sure I can't be the only one who wants to use pyplot from a Gtk-based app that uses the graph-tool. So I was kinda looking for some hints, if anybody has any. Vaggelis On Wed, Nov 11, 2015 at 11:42 PM, Tiago de Paula Peixoto <tiago@skewed.de> wrote:
On 12.11.2015 01:42, Evangelos Petsalis wrote:
I am trying to utilize some of the functionality that pyplot provides to display some data related to the graph, but on a separate window.
The problem I have is that the pyplot window that pops up is uncontrollable, in other words I can not utilize any of the default buttons, or even close it.
The code I use is very simple: plt.ion() fig = plt.figure() ax = self.fig.add_subplot(111) x = np.random.normal(0,1,1000) numBins = 50 ax.hist(x,numBins,color='green',alpha=0.8)
Any ideas what is going on? Can it be that Gtk and pyplot don't work well together?
I'm not sure what this hast to do with graph-tool. Do things work as expected when you do not import graph-tool?
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool