Skip to content

🐛 Plotting: Restore gnuplot via apt and force Qt xcb platform#254

Merged
mbercx merged 1 commit intomainfrom
fix/gnuplot
Apr 21, 2026
Merged

🐛 Plotting: Restore gnuplot via apt and force Qt xcb platform#254
mbercx merged 1 commit intomainfrom
fix/gnuplot

Conversation

@mbercx
Copy link
Copy Markdown
Collaborator

@mbercx mbercx commented Apr 21, 2026

Fixes #247

Gnuplot was broken: two unrelated failures stacked on top of each other:

  • the conda-forge gnuplot 5.4 in the visualise env could not locate its own gnuplot_qt driver and asked for GNUPLOT_DRIVER_DIR.

  • the apt gnuplot 6.0 available on Ubuntu 24.04 cannot open its qt terminal under VirtualBox either — it fails with EGL / Mesa / Zink errors, apparently because no usable GL context can be created for the virtual GPU.

Install gnuplot via apt instead of conda and drop it from the visualise conda env, which sidesteps the driver-lookup failure. Then write QT_QPA_PLATFORM=xcb to /etc/environment via plotting-tools.yml so Qt applications use the X11 platform plugin, which — experimentally — restores gnuplot's qt terminal under VirtualBox.

@mbercx
Copy link
Copy Markdown
Collaborator Author

mbercx commented Apr 21, 2026

Worth following up if conda is still the better approach for all plotting tools later on. Now we just get it working again via apt + QT_QPA_PLATFORM=xcb. Hopefully the later won't affect other tools.

Gnuplot was broken: two unrelated failures stacked on top of each other:

- the conda-forge `gnuplot` 5.4 in the `visualise` env could not locate its own
  `gnuplot_qt` driver and asked for `GNUPLOT_DRIVER_DIR`.

- the apt `gnuplot` 6.0 available on Ubuntu 24.04 cannot open its qt terminal
  under VirtualBox either — it fails with EGL / Mesa / Zink errors, apparently
  because no usable GL context can be created for the virtual GPU.

Install `gnuplot` via apt instead of conda and drop it from the `visualise`
conda env, which sidesteps the driver-lookup failure. Then write
`QT_QPA_PLATFORM=xcb` to `/etc/environment` via `plotting-tools.yml` so Qt
applications use the X11 platform plugin, which — experimentally — restores
gnuplot's qt terminal under VirtualBox.
@mbercx mbercx merged commit 71d749b into main Apr 21, 2026
4 checks passed
@mbercx mbercx deleted the fix/gnuplot branch April 21, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gnuplot failure latest version of QM (26.03)

1 participant