Plot Generation
For a full step-by-step flow, see GUI Walkthrough — Generating and Formatting a Plot.
Requirements
To generate a standard plot, assign at least one X column and one Y column. Some specialized plotter modules also use optional roles such as X Error, Y Error, Group, or Label.
Generate plot flow
Choose a plotter and plot type in Simple Mode.
Optionally choose a saved Template.
Optionally enable LSQ fit and enter a fit function, parameter names, and initial guesses.
Click Generate Plot.
The plot opens in a PhysPlot plot window with zoom, pan and save. Click Advanced Styling… in its toolbar to open the same figure in the Figure Editor.
Least-squares fitted line
The Plotter Module panel can overlay a least-squares fitted line while the plot is generated. Enable LSQ fit and provide:
Fit Function: an expression in
x, for examplea*x + bora*np.exp(b*x) + c.Params: comma-separated parameter names, for example
a,b.Initial: comma-separated starting guesses matching the parameter list, for example
1,0.Fit Style: optional curve label, line style, line width, and legend display.
The fit uses the columns assigned as X and Y. The fitted line is stored
in the generated figure, and the fit configuration is saved in the
PlotModuleStep so exported sequences and bulk runs can replay it.
Built-in plotter modules
Basic Plotter: 84 plot types in the Matplotlib gallery’s categories (Lines, bars and markers; Statistics; Images, contours and fields; Pie and polar charts; 3D plotting; Specialty plots), from
scatterandlinetocontourf,plot_surfaceandradar. Choose a Category, then a Plot Type; the table’s role menus then offer only the roles it uses (X, Y, Y2, Z, U, V, W, errors, Group, Label) and picking it fills them in. See the Plotter Module UI reference for the full list.Histogram Plotter:
histogram,density_histogramScatter Plotter:
scatterLine Plotter:
lineError Bar Plotter:
x_y_errorbar,y_errorbarOverlay Plotter:
overlay_by_group,overlay_by_datasetSubplot Grid Plotter:
subplots_by_group,subplots_by_datasetNanoindentation Plotter:
load_depth,hardness_depth,modulus_depth,stiffness_depth,contact_depthOliver-Pharr Plotter:
load_depth_with_unloading_fit,unloading_fit,contact_stiffness_fit,area_function,hardness_summary,modulus_summary
When a plot is generated, the selected plotter, plot type, and configuration
are stored as a PlotModuleStep in the protocol sequence. Bulk runs replay
that recorded step instead of using a separate bulk plotting choice.
Figure Editor
Click Advanced Styling… in any plot window to open the Figure Editor with the generated Matplotlib figure and lets you inspect and edit the figure tree. It draws:
Main data series
Optional error bars (if X Error or Y Error columns are assigned)
Title and axis labels
Legend entries and titles
Optional fit overlays added through Figure Editor > Fitting > Add Fit Function
Use Figure Editor > PhysPlot > Save as Template to save the current appearance. Back in Simple Mode, click Reload next to Template and select the saved template before generating another plot.