[scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears
Julio Gonzalez-Saenz
julio.gonzalez at ymail.com
Wed Apr 21 17:05:06 CEST 2010
Dear Jordan,
Can you please run this simple subplot program:
clf()
omega0=1;
k=[0.2 1 3];
n=0;
for kappa=k
n=n+1;
omega=sqrt(omega0^2-kappa^2);
t=0:0.01:8*%pi;
if (omega==0)
y=exp(-kappa.*t).*t;
else
y=exp(-kappa.*t).*sin(omega*t)/omega;
end
if n==1
subplot(2,1,1) // It will spawn over two columns
else
subplot(2,2,n+1)
end
plot(t,y);
legend(['kappa = '+ string(kappa)]); // I could not figutre out
// how to write greek characteres. num2str does not exist in SCILAB
end
________________________________
From: jordan alexander <alexanjo at yahoo.com>
To: users at lists.scilab.org
Sent: Wed, 21 April, 2010 12:29:40
Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears
dear julio
code is:
subplot(2,1,1)
plot(1:10)
subplot(2,1,2)
plot(1:10)
attached is a screen-shot of the result
after issuing subplot(2,1,2) and plot(1:10) commands, the first subplot--subplot(2,1,1)--disappears!
any hints how to further troubleshoot this odd and persistent behaviour i am having with scilab 5.x?
ciao, jordan
p.s. i do not experience this behaviour with scilab 4.1.2
________________________________
From: Julio Gonzalez-Saenz <julio.gonzalez at ymail.com>
To: users at lists.scilab.org
Sent: Wed, April 21, 2010 4:12:11 AM
Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears
Dear Jordan,
I can see the graphics but not the code...
Regards,
Julio
________________________________
From: jordan alexander <alexanjo at yahoo.com>
To: users at lists.scilab.org
Sent: Tue, 20 April, 2010 1:54:04
Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears
dear julio
attached is a screen-shot of the console--showing code--and resulting graphic window
ciao, jordan
________________________________
From: Julio Gonzalez-Saenz <julio.gonzalez at ymail.com>
To: users at lists.scilab.org
Sent: Tue, April 20, 2010 11:08:11 AM
Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears
Hi Jordan,
Can you please post your code??
________________________________
From: jordan alexander <alexanjo at yahoo.com>
To: users at lists.scilab.org
Sent: Tue, 20 April, 2010 1:02:25
Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears
hello
>To change the adressed area, just do
>subplot(nL,nC, nB)
after issuing the command plot(), the first subplot, i.e. subplot(1,2,1), has disappeared and i am unable to make it re-appear. issuing subplot(1,2,1) after plot() does not make the first one re-appear
issuing gca indicates there are two Axes children, yet only the second is visible
issuing xs2eps(0,'test.eps') after plot() creates file with both plots visible
any other hints here to get the first subplot visible?
jordan
----- Original Message ----
From: Samuel Gougeon <Samuel.Gougeon at univ-lemans.fr>
To: users at lists.scilab.org
Sent: Mon, April 19, 2010 11:02:29 PM
Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears
Hello,
----- Message d'origine -----
De : jordan alexander
Date : 19/04/2010 12:52:
> dear lists.scilab.org
>
> creating subplots is not working for me
>
> using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset'
subplot(nL,nC, nA) virtually shares the current graphic windows in
nL lines and nC columns of rectangular sub-area, and adresses the
nA'th one for the forthcoming plotting commands.
To change the adressed area, just do
subplot(nL,nC, nB)
Then the nB'th one becomes the current one.
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100421/0ae4a11f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot_4_Jordan.png
Type: image/png
Size: 11171 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20100421/0ae4a11f/attachment.png>
More information about the users
mailing list