|
From: Jean-Baptiste M. <mar...@ia...> - 2012-03-02 11:16:17
|
Hi Ben, > You have several possible sources of problems here. I would first make sure that basic matplotlib scripts work using the Qt4Agg backend on your computer. Test out some regular scripts from the examples section of the documentation. If they work as expected, then it is probably more likely that there is a problem with one of the other libraries. Good point. Tests successful. > Another possible source of trouble may lie with the calls to "sleep". Because the display libraries are not on a separate process, the sleep could also prevent the figures from being completely rendered. > > Personally, I wouldn't even bother with the interactive mode. Keep it off, and just put the cleanup code after "plt.show()", which is a blocking call. There is no need to implement your own event loop. The challenge is to display hundreds of stellar light curves by sequently selecting rows in a table through the SAMP mechanism. Thus it would be fine not to have to kill the plot window after each display, but to have it automatically refreshed after each row selection (I'm a lazy guy…). I just commented the plt.ion() line, this yields a segmentation fault, here is the crash report. Cheers JB |