1. Launch Octave in GUI mode
2. Go to Command Window
3. Type the following:
> x=linspace(-3,3)
> subplot(2,1,1) % This command fails immediately on Linux
> plot(x, sin(x))
Under all the Linux versions that I've tried (Ubuntu, Mint 19.02,
CentOS) and with both the Flatpak, Snap and normal installations by
the default package repos (Apt, RPM, etc), they all fail.
FWIW, this code works fine with self-compiled octave 5.2 on CentOS 8.
Most likely there is something wrong with you configurrations.
Do you share your home directory with all those systems?
Does it work in console (rather than gui)?
If you start octave as "octave -f" do you get this problem?
Dmitri.
--