You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# -*- encoding: utf-8 -*-
|
|
|
|
|
import tkinter as tk
|
|
|
|
|
from tkinter import *
|
|
|
|
|
import random
|
|
|
|
|
import numpy as np
|
|
|
|
|
|
|
|
|
|
FITT_SAVE = {}
|
|
|
|
|
FITT_LIST = []
|
|
|
|
|
global Canvas2 # 用于显示函数的画布
|
|
|
|
|
Img1 = None # 绘制的dot.png图像
|
|
|
|
|
Img2 = None # 绘制的line.png图像
|
|
|
|
|
Xian_index = 0 # 当前选择的函数编号
|
|
|
|
|
Quadrant = 0 # 当前选择的象限信息0为四象限,1为一象限
|
|
|
|
|
MAXV = 1000 # 最大值
|
|
|
|
|
INDEX = 5 # 拟合函数索引
|
|
|
|
|
Out = '' # 拟合输出信息
|
|
|
|
|
LOW = -MAXV # 坐标轴显示上界
|
|
|
|
|
HIGH = MAXV # 坐标轴显示下界
|
|
|
|
|
MAGNIDICATION = 1.0 # 放大倍数
|
|
|
|
|
SampleData = None # 样本数据
|
|
|
|
|
CurveData = None # 拟合数据
|
|
|
|
|
|
|
|
|
|
set_img1 = None
|
|
|
|
|
set_img2 = None
|
|
|
|
|
|
|
|
|
|
global Q_root,F_root
|
|
|
|
|
global root_window
|
|
|
|
|
global label1,label2,label3
|