A Dash app for interactive curve drawing and polynomial fitting.
-
Install Python and pip (if not already installed):
sudo apt update sudo apt install python3 python3-pip
-
Clone the repository:
git clone [email protected]:brammmieee/dash_interactive_polynomial_fitter.git cd dash_interactive_polynomial_fitter
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install the required packages:
pip install -r requirements.txt
Start the app with:
python app.pyThe screenshot below displays the dashboard with the interactive polynomial fitting tool. The tool for drawing the polynomial is annotated in the image. All zooming and drawing tools are fully functional.
The app includes a downscaling feature to address issues with polynomial fitting on small numbers. When dealing with very small values, fitting can become inaccurate. By scaling down the polynomial fit by a specified factor, you can improve accuracy and visualization.
-
Enter Scaling Factor: Use the input box to specify a scaling factor. This factor will scale down both the x and y values of the polynomial fit.
-
Impact: The polynomial fitting results and the displayed polynomial equation will reflect this scaling, helping to achieve more accurate results when working with small datasets.
This feature helps ensure better fitting accuracy and visualization across different scales.
