[scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears

Sylvestre Ledru sylvestre.ledru at scilab.org
Thu Apr 22 01:02:50 CEST 2010


I think this might be related to your driver of your graphic card.
Scilab needs up-to-date OpenGL driver.


Sylvestre

Le mercredi 21 avril 2010 à 15:56 -0700, jordan alexander a écrit :
> dear julio
> 
> attached is the screenshot of my result of runing your code...
> 
> 
> i looked at the your attached screenshot of your result
> 
> yes, that is what i expect!
> 
> instead, i get my attached screenshot!
>   
> ciao, jordan
> 
> 
> ______________________________________________________________________
> From: Julio Gonzalez-Saenz <julio.gonzalez at ymail.com>
> To: users at lists.scilab.org
> Sent: Thu, April 22, 2010 3:05:06 AM
> Subject: Re: [scilab-Users] unable to create multiple subplots, e.g.
> plot() produces 2nd subplot only, first disappears
> 
> 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
> 
> 
>       
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
-------------------------
Sylvestre Ledru
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France




More information about the users mailing list