From 5aa8304a2d09542c2e79641e72e3b6e358145d27 Mon Sep 17 00:00:00 2001 From: jens Date: Sat, 5 Dec 2020 23:38:27 +0100 Subject: [PATCH] von hier kannst weitergehen --- JFSphoto.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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