Quantcast

interactive plot matplotlib

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

interactive plot matplotlib

asaf
This post has NOT been accepted by the mailing list yet.
hi,
I'm trying to display figures on demand by input command, however the figure isn't displayed and it becomes non_responding object. the code is given below :

plt.close()
            fig = plt.figure()
            plt.subplot(211)
            plt.plot(t/24,ys)
            plt.hold('True')
    #        plt.plot(t/24,dend_value[:K2,K1])
            plt.plot(t/24,raw)
            plt.hold('True')
            plt.plot(t[-24:]/24,raw[-24:],color='r',lw=2)
            plt.title([decision,dend_flat.mean()+3*x1])
            plt.subplot(212)
            plt.plot(t/24,STD_)
            plt.hold('True')
            plt.plot(t/24,FLAT_Sig)
            plt.hold('True')
            plt.plot(t/24,num_of_sigma*STD2_)
             
            input('press enter')

I don't want to use waitforbuttonpress() because I want to play with the figure before continuation.

Loading...