Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to plot to multiple windows in Gnuplot

📅 2015-Jun-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ gnuplot, qt, terminal, window ⬩ 📚 Archive

On my Ubuntu, Gnuplot plots into a Qt window (terminal type qt) by default. Every invocation of the plot command redraws the contents of this single Qt window.

Sometimes, I need to plot two different data sets in two different windows, so that I can compare them side-by-side. To do this specify a window number, an integer starting from 0.

For example:

set terminal qt 0

set terminal qt 1

Tried with: Gnuplot 5.0 and Ubuntu 14.04

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email