Graficos.py 785 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import numpy as np
import Tkinter as tk
import matplotlib.pyplot as plt

class Graficos:

   

    def __init__(self, Nmr):
        self.Nmr_serial= Nmr
        self.limupdtx=True
        self.limupdty=True
        self.limupdt=True
        self.limctrl=False
        self.x0=0
        self.y0=0
        self.x1=512
        self.y1=0
        self.pressx=0.
        self.pressy=0.
        self.limtrans=False
        self.dx=0.
        self.dy=0.
        self.Nmr_serial= None
        self.f= plt.figure()
        self.title=None # poderia tirar direto do grafico
        self.a= self.f.add_subplot(111, axisbg='#555555')
        self.temp=None
        self.dataPlot=None
        self.Frame=None
        
        self.Cursor=dict(x=256,line=self.a.axvline(x=256,color='red'))