Skip to content

A gui application to fit the data with a customized function

License

Notifications You must be signed in to change notification settings

noctildon/curve_fitting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content

Description

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

Prerequisites(for development)

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.txt

For the installation of PyQt5 specifically, check link

Demonstration

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.

Compatibility

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

To do list

  • freeze the program into stand-alone executables, also tested on Windows and MacOS.

About

A gui application to fit the data with a customized function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages