diff --git a/JFSphoto.py b/JFSphoto.py index d70757a..2a93835 100644 --- a/JFSphoto.py +++ b/JFSphoto.py @@ -13,7 +13,7 @@ import matplotlib.pyplot as plt #matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from matplotlib.figure import Figure -from numpy import arange, sin, pi +from numpy import arange, sin, pi,cos ####################################### object class Jfsphoto (object): @@ -325,4 +325,12 @@ class Jfsphoto (object): win.wait_window() def look(self): - print(self.ok.get()) \ No newline at end of file + #print(self.ok.get()) + self.ax1.clear() + if self.ok.get()==1: + self.df.plot(x = 'nmscale',y = 'p1', color='red',linewidth=0.6,ax=self.ax1) + else: + t = arange(0.0, 3.0, 0.01) + s = sin(2*pi*t) + self.ax1.plot(t, s, linewidth=0.6) + self.canvas.draw() \ No newline at end of file