von hier kannst weitergehen
This commit is contained in:
parent
c2e407cd41
commit
5aa8304a2d
12
JFSphoto.py
12
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())
|
||||
#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()
|
||||
Loading…
Reference in New Issue
Block a user