This gui application allows to linear fit the two dimensional data(in csv, ods, xlsm or xlsx), showing the data and the fitting curve in the same window. The program can output the plotting and save it. It also can show the equation of the fitting curve. The central idea of this program is to utilize function optimize in Python module SciPy. For more information about the usage of optimize and SciPy, check link
The necessary Python modules are
- PyQt5
- numpy
- openpyxl
- pyexcel
- pyexcel-io
- pyexcel-ods
- pyexcel-xls
- pyexcel-xlsx
- pyqtgraph
- scipy
- tornado (for freezing the program)
- pyinstaller (for freezing the program)
To install the above Python modules(except PyQt5), one can run
$ pip install -r requirements.txtFor the installation of PyQt5 specifically, check link
In the upper text block, put the coefficients in first line. The coefficients should follow the naming convention in Python otherwise they would not be valid. Then put the model function next line. The argument of model function must be x. Operator and functions should also follow Python convention. All Mathematical functions in numpy are allowed to use.
One can export the image in window by right clicking the window.
One can use test_data to test the function of this program.
The Python source code is only tested in Linux Mint 18.3. But it should work in any OS installed required Python modules. The stand-alone executable is put in /dist, and it is only tested on Linux Mint 18.3
- freeze the program into stand-alone executables, also tested on Windows and MacOS.

