Hi, If I understand your mail correct, you are reporting two problems here.
1) show() locks the progression of the script until it is closed again. This behaviour is kind of expected I believe. Although I am not a developer and I don't grasp the full complexity of this problem, I don't believe the cause lies with Spyder but with some inherent Python characteristics combined with how the plotting backend is functioning. A few days ago I tried to look into the problem a little further and my conclusions can be found in following thread on this list: http://groups.google.com/group/spyderlib/browse_thread/thread/4a47ca60ebf0ace2. In short mu conclusions: when generating lots of plots in a single script, don't use interactive plotting but save you pictures as they are generated and watch them in either .png, .jpg. eps or other formats (that's how I work).
If show() works and it results in a figure, I think the interactive mode is already active (see http://matplotlib.sourceforge.net/users/shell.html). Have you also tried additional draw() statements? That will force matplotlib to redraw the figure. It could be that some plotting commands did not trigger the draw() command so they haven't made it yet to the interactive figure. As far as I understand the interactive mode, the only difference is that is should automatically trigger some draw() statements after each update of the plot.
Since there is more to discover of how to deal with this interactive plotting issue correctly, you can't consider my answer as final. For instance, just found this: http://scipy.org/Cookbook/Matplotlib/Interactive_Plotting. I will need more time to dig in deeper and also raise this matter on the matplotlib develop/user lists.
Please correct me if I am wrong on this whole interactive plotting story! 2) "ValueError: API 'QString": sorry, I am not much of a help here. And now, back to my "real" work. To be continued... Regards, David On 05/03/12 15:16, Philipp Lies wrote:
Hi, I try to get interactive plotting working using spyder 2.1.8 and ipython 0.12 on ubuntu 11.10. Interactive plotting works if I use the normal python interpreter as well as in ipython outside of spyder. When I load matplotlib and plot something in ipython I have to call show() which locks the console until I close the window. If I enable interactive plotting manually plotting doesn't work anymore (window stays empty). Vanilla spyder configuration (deleted my .spyder2 folder). Further, when I try to start an ipython kernel or try to connect to an externally started kernel I get: "ValueError: API 'QString' has already been set to version 1" PySide 1.1.0 and PyQt4 4.7.4 are installed. I tried every possible combination of API version and library selection in the preferences. Didn't change anything. Any ideas how I could get a working spyder+ipython configuration running? Preferably the ipython kernel with pylab inline but since there is an open bug regarding the QString problem I'd be happy if I could get the normal ipython interpreter would work properly. Cheers Philipp
-- You received this message because you are subscribed to the Google Groups "spyder" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
