A desktop applet (PyQt5 + Matplotlib) to interactively plot DSC and modulated DSC (mDSC) data exported from TA Instruments.
It loads Excel or CSV files, turns every Excel sheet into a selectable step, and lets you compare files/steps/columns with an adaptive color / linestyle / marker encoding. It mirrors the behaviour of the mDSC_plot.py and dsc_format-plot.py scripts, but with a graphical interface.
- Load Excel (
.xls,.xlsx,.xlsm,.xlsb) and CSV files — drag-and-drop or Add Files... - One dataset per Excel sheet (each sheet = a step), labelled
sample | sheet;Details/Analysis/Notessheets are skipped - Multi-file / multi-step comparison with automatic visual encoding (see below)
- Selectable X column
- Selectable Y columns, each with:
- a marker toggle
- a constant shift (offset applied only at plot time)
- an editable label with placeholders
- Axis scale:
lin-lin,log-log,lin-log,log-lin - Colormaps: any Matplotlib colormap
- Settings dialog: font size + legend position (including above plot)
- Mark Point tool: click the plot to drop vertical markers showing the X value
- Export TA CSV: splits the sheets of TA Excel files into individual CSV files
- Embedded Matplotlib canvas with the standard navigation toolbar (pan/zoom/save)
Channels are assigned only to the dimensions that actually vary, in order color → linestyle → marker. This keeps every selection unambiguous without wasting a channel on a constant dimension.
| Varying dimensions | Color | Linestyle | Marker |
|---|---|---|---|
| column only | column | – | – |
| file + column | file | column | – |
| step + column | step | column | – |
| file + step + column | file | step | column |
Linestyle cycle: -, --, -., :, then finer dash patterns.
| Row | Content |
|---|---|
| 1 | step / strategy comment |
| 2 | parameter names |
| 3 | measuring units |
| 4+ | data |
Columns are exposed as Name, Unit (e.g. Temperature, °C, Heat Flow (Normalized), W/g).
| Row | Content |
|---|---|
| 1 | parameter names |
| 2 | units |
| 3+ | data |
The first two rows are combined into Name, Unit column names.
Requires Python 3.9+.
git clone <this-repo>
cd app_dsc_plot
python -m venv venv
# activate: source venv/bin/activate (Linux/macOS)
# venv\Scripts\activate (Windows)
pip install -r requirements.txtopenpyxl is needed for .xlsx; xlrd for legacy .xls.
- Launch:
python main.py - Load data: drag files in or click Add Files... — every sheet appears as a selectable dataset.
- Select datasets (multi-select in the file list).
- X Column: pick the horizontal axis.
- Y Columns: tick the columns to plot and, per row, optionally:
- toggle the Marker
- type a Shift value
- edit the Label
- Axis scale and Colormap sit to the right of their labels.
- Click Plot.
Each Y row has a label cell. The default is the placeholder template:
{fname} | {step} : {col}
{fname}→ source file label{step}/{stepname}→ sheet / step name{col}→ Y column name
Type any text to use it verbatim as the legend label. Delete everything to fall back to the default template.
- Click Mark Point (below Plot) to arm the tool (crosshair cursor).
- Left click on the plot: drops a short vertical line at the clicked X, centred on the click, labelled with the X value (
%.1f). It does not need to land on a curve. - Right click: removes the nearest vertical mark.
- Re-plotting clears all marks.
Click Settings (below Plot) to adjust:
- Font size — applied to axis labels, tick labels and the legend.
- Legend position —
best, corners, center, or above plot. Above plot starts as a single line and only wraps to multiple rows/columns when the entries would exceed the figure width.
app_dsc_plot/
├── main.py # the applet
├── requirements.txt
├── screenshot.png
└── README.md
- Comparison of several samples: select one step from each file → files get colors, columns get linestyles.
- Overlaying many steps of one sample: select a single file with several steps → steps get linestyles, columns get markers.
- Very long default labels produce tall above-plot legends; shorten them via the label column for a compact single line.
MIT License
