The plotting window remains always blank

Hello
I begin with SciLab 6.1 because I am no longer able to use Matlab, being retired.
I am working with OS Ubuntu 22.04 :
->[version, options] = getversion()
version =

“scilab-branch-6.1”
options =

“GCC” “x64” “tk” “modelicac” “release” “Apr 14 2022” “22:30:04”

Please help me about graphics : I want to plot some function but the plot window remains blank after these commands :

pi=3.14159
x=0:0.02:4
clf();
plot(x,sin(2*pi*x),'r-.x')

and all the demos involving plots do not show any plot, the plot window remaining blank.
Is GNUplot necessary ? Perhaps I installed it after Scilab. Must I re-install ?
Please give me some hint. Thank in advance.

Hi Pierre

You don’t have to define pi explicitly, but also shouldn’t be a problem…
This code works for me:

x=0:0.02:4
plot(x,sin(2*%pi*x),‘r-.x’)

With kind regards,
Claus

Hello
As written in the first message, no plot appears when the function ‘plot’ is invoked, whatever the function to be plotted. Only an empty window appears. There is probably a bug but what it is ? At installation or else ?
Kind regards

Hi Pierre

This is a difficult one to crack. I have no idea why your plotting doesn’t work.
Scilab doesn’t use GNUplot, so installing GNUplot should not affect Scilab.
I’m not well versed in Linux setup, but could it be the Linux installation didn’t go as planned?
Is the plotting just happening to ‘another’ screen?
Does Scilab have all the user rights?
My best advice is to remove your installation of Scilab and reinstall.

With kind regards,
Claus

Please continue the discussion in the other topic : Graphic problem with ubuntu 22.04