Curve Fitting
For a full step-by-step flow, see GUI Walkthrough — Adding Fit Functions in the Figure Editor.
Modern Figure Editor fitting
Click Generate Plot, then Advanced Styling… in the plot window to open the Figure Editor. Select an axes, line, or scatter series (click it on the figure) and choose Figure Editor > Fitting > Add Fit Function.
The fit dialog accepts a Python-style expression and parameter guesses. Examples:
a*x + ba*x**2 + b*x + ca*np.exp(b*x) + c
The fitted curve is added to the figure as a normal Matplotlib line, so it can be styled in the Property Inspector and saved into a reusable template with Figure Editor > PhysPlot > Save as Template.
Legacy fit models
PhysPlot supports 11 optional fit models:
Linear
Quadratic
Cubic
4th degree
5th degree
6th degree
7th degree
8th degree
9th degree
10th degree
Ae^(-bx)(implemented as exponentiala*exp(bx)fit)
Enable and label legacy fits
For each fit, you can:
Enable/disable with checkbox
Choose label mode: - Off - Equation - Custom Label