CSV, TXT and JSON files
ESPlotter reads CSV, TXT, and unified JSON files directly, without external simulation software. Use CSV or TXT for time series exported from any tool or measurement system, and unified JSON when a file must carry eigenvalues or both data families.
What you need
| Input | Data | Requirements |
|---|---|---|
.txt, .csv | Time series | Numeric Y columns; X can be numeric or a supported date/time timestamp |
Unified .json | Time series, eigenvalues, or both | A schemaVersion: 1 file; no external simulation software |
Open the file
Click + at the top of the channel sidebar (Ctrl + O) and select one or more files, or drag them onto the chart area. See Open files.
TXT and CSV files
ESPlotter accepts ordinary header-plus-data files and can recover several common variations:
- comma-separated or whitespace-separated numeric values;
- one row containing all channel names;
- one leading row per channel name;
- missing headers or fewer names than data columns; and
- extra names that do not have a matching data column.
TXT and CSV files may also contain NUL padding bytes produced by some large simulation exports. ESPlotter ignores those padding bytes while reading and keeps valid records that follow them.
A warning explains any recovery that was applied. See Read import warnings.
Timestamps
The first column can contain date, time, or date-time timestamps, and any column can become the Time channel after import. See Work with the Time channel.
Unified JSON files
A schemaVersion: 1 JSON file can contain timeSeries, eigenvalues, or both. When both data families are present, ESPlotter opens separate time-series and eigenvalue entries so each can use the correct chart type, and a warning explains the split.
The timeSeries.x.values array can contain numeric values or supported timestamp strings. Timestamp X values use the same optional elapsed-seconds conversion as TXT and CSV files.
The generator-trip.json and small-signal-modes.json samples show a time-series and an eigenvalue file.
Export the data
| Data | Export formats |
|---|---|
| Time series | CSV, TXT, or JSON |
| Eigenvalues | JSON |
CSV and TXT data exports use the same comma-delimited escaping. Labels containing commas or quote characters are quoted on export, and ESPlotter restores the original label when the exported file is imported again.
Use JSON when an export must preserve eigenvalue data. CSV and TXT cannot represent the eigenvalue structure. See Export charts and data.
Automate with Python
Live and headless scripts open CSV and TXT files with workspace.open_file(...). Headless reads the same flexible file shapes as ESPlotter: comma-separated data, whitespace-separated data, no header row, one channel name per row, and header count mismatches. See Work with files and channels and Headless mode.
Troubleshooting
- The file looks wrong after import: read the warning. It can mean ESPlotter recovered the file successfully; check whether it detected missing headers, whitespace-separated values, one channel name per row, or a header/data count mismatch.
- A channel cannot be added to a chart: check whether the Time channel uses timestamps or the channel contains only
NaNvalues. See Work with the Time channel. - A CSV or TXT export lost eigenvalues: export the file as JSON instead.
If the problem remains, copy the complete warning or error and follow Ask for support.