QuickPlot 4.2 - Technical Documentation and Quick Guide

Static HTML compatible with QTextBrowser. It uses no JavaScript, external images or advanced CSS.

Included demo files:
quickplot_demo_physics.csv - 10 Hz time series with temperature, pressure, relative humidity and illuminance, including additive noise and slow drifts.
quickplot_demo_physics.qplt - guided script that loads the CSV, shows curves, applies zoom, exports PNG/CSV files, creates FFT/histogram tabs and writes an HTML report.

Contents

1. Purpose

QuickPlot is a Qt/Qwt-based numeric data viewer and analyzer. It imports CSV/TXT/TSV/DAT files and WAV/MP3/FLAC audio files, creates independent plot tabs and supports non-destructive operations: exports, copy/paste, DSP, statistical analysis and instrument plugins.

Processing operations create new tabs and keep the original data unchanged. This makes the application suitable for laboratory measurements, long-signal diagnostics and repeatable technical presentations.

2. Quick start with the CSV and script demo

  1. Copy quickplot_demo_physics.csv and quickplot_demo_physics.qplt into the same folder.
  2. For manual use, open QuickPlot and choose File → Open CSV. The CSV can also be dragged into the main window.
  3. For the guided demo, choose Script → Run .qplt... and select quickplot_demo_physics.qplt.
  4. The script loads the CSV, shows temperature/pressure/humidity, applies an X zoom, exports PNG/CSV files into demo_outputs, shows illuminance, creates an FFT, builds a temperature histogram and saves an HTML report.
  5. Each WAIT_KEY pauses the sequence and continues with OK/Enter/Space.

3. Menus and user functions

MenuMain commandsDescription
FileOpen CSV, Import audio, Recent files, New plot, Close tab, Export CSV/PNG/WAV, Print previewHandles import, tabs, export and printing.
EditCopy, PasteCopies X plus selected Y curves. If the plot is zoomed in X, only the visible segment is copied and X is rebased to zero.
DSPWindow, FFT, Normalize, Lock-In Analyzer, Detection Limit Test, Low-pass, Baseline, Signal synthesisNon-destructive numeric operations. Results are created in new tabs.
AnalysisCompare curves, Correlation matrix, HistogramCurve comparison, Pearson correlation matrix and multi-curve histograms with normalization and Gaussian fit.
ScriptOpen .qplt, Check .qplt, Run .qplt, Presentation .qplt, Script ConsoleQuickPlot batch scripts for repeatable demos and presentations. The console shows current line, log, exports and runtime errors.
PluginsPlugin Manager, Reload Plugins, Create Plugin ProjectLoads QP_*.dll instrument DLLs and can generate a sample plugin project.

4. QuickPlot .qplt script files

A .qplt file is a linear batch file for QuickPlot. The syntax is intentionally simple: one command per line, comments with #, // or ;, and quoted strings when text contains spaces.

Safety rule: QuickPlot parses and validates the whole file before execution. If an error is found, no command is executed.

Parser behavior

Supported commands

CommandExampleEffect
LOAD_CSVload_csv "demo.csv"Loads a CSV with non-interactive auto-detection.
PLOTplot "pressure_hPa"Adds a Y curve to the current plot.
PLOT_ONLYplot_only "temperature_C"Shows only the requested curve or curves.
PLOT_ALLplot_allShows all numeric columns except the X column.
TITLEtitle "Sensor demo"Sets the plot title.
X_LABEL, Y_LABELx_label "time_s"Sets axis labels.
ZOOM_Xzoom_x 20 80Sets the visible X range.
RESET_VIEWreset_viewRestores plot autoscale.
FFTfft "illumination_lux" nfft 2048Creates a new tab with the curve FFT.
HISTOGRAMhistogram "temperature_C" bins 40 gaussian_fit onCreates statistics and histogram tabs.
SELECT_TABselect_tab lastSelects a tab by index, first, last, data, current or title.
EXPORT_PNGexport_png "out/plot.png"Exports the current tab plot without interactive dialogs.
EXPORT_CSVexport_csv "out/all.csv"Exports X plus the current Y curves from the selected tab.
EXPORT_VISIBLE_CSVexport_visible_csv "out/zoom.csv"Exports only rows inside the visible X range.
EXPORT_REPORTexport_report "out/report.html"Writes a static QTextBrowser-compatible HTML report.
SHOW_CONSOLEshow_console onShows or hides the Script Console.
MESSAGEmessage "Sensor demo"Updates the status; in presentation mode it also shows a message box.
WAIT_KEYwait_key "Press to continue"Pauses the sequence until confirmation.
SLEEPsleep 1000Automatic delay in milliseconds.
ENDendTerminates the script.

Complete example

# quickplot_demo_physics.qplt
show_console on
message "QuickPlot demo: realistic physical quantities"
load_csv "quickplot_demo_physics.csv"
plot_only "temperature_C" "pressure_hPa" "relative_humidity_pct"
title "Temperature, pressure and humidity"
export_png "demo_outputs/01_overview.png"
export_csv "demo_outputs/01_overview_all.csv"
wait_key "Loaded CSV demo"
zoom_x 20 80
export_visible_csv "demo_outputs/02_zoom_visible.csv"
reset_view
plot_only "illumination_lux"
fft "illumination_lux" nfft 2048
select_tab last
export_png "demo_outputs/04_fft.png"
histogram "temperature_C" bins 40 gaussian_fit on
select_tab last
export_png "demo_outputs/05_temperature_histogram.png"
export_report "demo_outputs/quickplot_demo_report.html"
end

5. Command line use

QuickPlot can check and execute scripts from the command line.

CommandUse
QuickPlot.exe --check demo.qpltValidates the script and exits with code 0 if valid, 2 if errors are found.
QuickPlot.exe --run demo.qpltStarts QuickPlot, validates the script and executes it only if validation succeeds.
QuickPlot.exe --presentation demo.qpltRuns in presentation mode, maximizing the window and showing messages.
QuickPlot.exe --open-script demo.qpltOpens and validates the script without running it.
--log report.txtSaves the check/run report to a file. Useful for Windows GUI-subsystem builds.
QuickPlot.exe --check quickplot_demo_physics.qplt --log check_report.txt
QuickPlot.exe --presentation quickplot_demo_physics.qplt

6. Plot area, table and statistics

Each tab contains a Qwt plot, a data table and statistics panels. The X column can be the row index or a numeric column; Y columns can be one or more numeric series.

7. DSP and Analysis

DSP functions operate on selected Y curves and produce new tabs. FFT generates frequency, bin index, amplitude, power and phase. The Lock-In Analyzer demodulates a target frequency or performs a frequency scan. The Detection Limit Test injects known weak signals and evaluates the minimum recoverable amplitude.

The Analysis menu includes curve comparison, correlation matrix and multi-curve histograms. Histograms support automatic or manual bins, count/probability/density/percent normalization and Gaussian fit.

8. Audio import/export

QuickPlot imports WAV, MP3 and FLAC. Audio import can create a full CSV table or a compact audio document with a local table, which is more suitable for long files. Audio export saves the selected curve or segment when the tab contains compatible audio data.

9. Instrument plugins

The plugin system loads QP_*.dll files from the plugin folder. Plugins can create tabs, write tables, append streaming rows and read QuickPlot tab data through the SDK.

10. Code architecture

ModuleRole
QuickPlotWindowMain window, menus, tabs, import/export, .qplt scripts and plugin host.
PlotTabWidgetPlot+table widget, column selection, zoom, statistics, export and script hooks.
CsvDocumentFlexible CSV parser, auto-detection, column inference and numeric conversion.
QpltScriptParserParser and full validator for .qplt files before execution.
DspDialog, LockInDialog, DetectionLimitDialogConfiguration and data structures for DSP processing.
PluginHostPlugin loading, SDK compatibility and host API toward QuickPlot.

11. Recommended CSV format

For best auto-import and script compatibility:

time_s,temperature_C,pressure_hPa,relative_humidity_pct,illumination_lux
0.000,22.104,1013.22,45.10,520.2
0.100,22.098,1013.18,45.14,528.1

12. Build notes