Is there any way to suppres the output of plot() command in Scilab

StackOverflow https://stackoverflow.com/questions/19446983

  •  01-07-2022
  •  | 
  •  

Вопрос

When we run a plot command in scilab Graphic window number 0 is opened

x=[1:2:10]
y=[1:2:10]
plot(x,y);

I dont want to open this window. How this can be done?

Can I change the name of scilab plot window?

Это было полезно?

Решение 2

If you want to want to export without opening the windows, it would be:

driver("PNG")
xinit(TMPDIR+"/foo.png")
plot3d()
xend()

Другие советы

Opening plot

The command plot is specifically for opening a plot window. So what are your further intentions if you don't want to open the plot window when giving a plot command.

Setting the title

To set the title of the plot, you can type, after you issued the plot command:

plot(x,y);
title('Plot title');

To set the title of the window, you have to get a figure handle and set the figure_name

f = gcf(); //Get current figure and store the handle in f
f.figure_name='My First Window Title'
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top