xgrid and plot2d, Sci4.0

Jean-Yves Baudais jean-yves.baudais at insa-rennes.fr
Wed Jul 9 11:42:10 CEST 2008


Hi,

 From Edmanuel Torres:
> It works fine for me too in Scilab 4.1.2, I can see a black plotted
> curve on a pink square grid. Try changing the order of the
> instructions:

   Grrrrr!! Is it a Scilab 4.0 behavior?

> plot2d(0,0,rect=[0,0,10,10])
> plot2d(1:10,matrix([1:5;1:5],1,-1),frameflag=0)
> xgrid(31)

   It is the same, xgrid() is over the curve

> Check whether you can see the the grid cause is pretty faded, or
> trying changing the colour of the grid:
> xgrid(11)

   Color 1 and 11 are very similar so the difference is not visible! I try

a)
sci> xdel()
sci> plot2d(1:10,matrix([1:5;1:5],1,-1),style=4)
sci> xgrid()

b)
sci> xdel()
sci> plot2d(1:10,matrix([1:5;1:5],1,-1),style=1)
sci> xgrid(4)

and it is the same: the grid is over the curve. I try also

c)
sci> xdel()
sci> plot2d(1:10,matrix([1:5;1:5],1,-1),style=4)
sci> xgrid()
sci> plot2d(1:10,matrix([1:5;1:5],1,-1),style=4,frameflag=0)

d)
sci> xdel()
sci> plot2d(1:10,matrix([1:5;1:5],1,-1),style=1)
sci> xgrid(4)
sci> plot2d(1:10,matrix([1:5;1:5],1,-1),style=1,frameflag=0)

but without success (the curve is dashed by the grid and I don't want 
that). Is the only solution to change Scilab version?

-- Jyb



More information about the users mailing list