Re: [Scilab-users] Overarching subplot title for graphic window

2021-04-09 Thread Samuel Gougeon

Le 10/03/2021 à 22:40, bty22 a écrit :

Hello,

I have been trying to figure out a way to add an overarching title on the
graphic window that goes above the subplots? I have titles over each of my
subplots, but I want one that is the title of the graphic window where the
subplots are shown. I want to have the title to give a summary of what the
subplots are of.

I know it can be done in matlab through suptitle, but I couldn't find a
respective equivalent for scilab.

Thank you for your response in advance.



The following simple code should work, but a subplot's bug prevents it. 
Let's fix it for the next scilab version:


clf,  title  "The  overall  title"  fontsize  4
subplot(1,2,1),  Matplot1,  title  "Plot  #1",  xlabel  ""
subplot(1,2,2),  param3d,  title  "Plot  #2"

The position of the main title can be tuned afterwards.

Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Overarching subplot title for graphic window

2021-03-12 Thread Dang Ngoc Chan, Christophe
Hello,

> De : bty22
> Envoyé : mercredi 10 mars 2021 22:40
>
> I have been trying to figure out a way to add an overarching title on the 
> graphic window that goes above the subplots?

I suggest to create an additional subplot and then use titlepage().
Something like :

--

X=1:10;

subplot(3, 1, 1);

titlepage("My big title");

subplot(3, 1, 2);

plot(X, X);

xtitle("First plot", "x", "y");

subplot(3, 1, 3);

plot(X, X.*X);

xtitle("Second plot", "x", "y");

--

Hope this helps

--
Christophe Dang Ngoc Chan
cd...@wanadoo.fr

General
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error), please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Overarching subplot title for graphic window

2021-03-11 Thread Jean-Yves Baudais
Hi,

> I have been trying to figure out a way to add an overarching title on the
> graphic window that goes above the subplots? I have titles over each of my
> subplots, but I want one that is the title of the graphic window where the
> subplots are shown. I want to have the title to give a summary of what the
> subplots are of.

Something like that?

scf(0);
xtitle("Title")
xsetech([0,0.1,0.5,0.45]),plot(1:10,1:10),xtitle("First")
xsetech([0.5,0.1,0.5,0.45]),plot(1:10,-(1:10)),xtitle("Second")
xsetech([0,0.55,1,0.45]),plot(0:10,sin(0:10)),xtitle("Last")

-- Jean-Yves
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users