help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fltk toolkit, grid is shown *beneath* pcolor (2D density plot)


From: Pantxo
Subject: Re: Fltk toolkit, grid is shown *beneath* pcolor (2D density plot)
Date: Fri, 9 Feb 2018 00:34:33 -0700 (MST)

Rose Merry wrote
> Hello!
> 
> Octave version 4.0.3 (Debian Stretch; sorry, didn't check latest version).
> 
> x=linspace(-1.1,1.1,100);
> y=linspace(-1.1,1.1,100);
> [xx,yy]=meshgrid(x,y);
> zz=sinc(sqrt(xx.^2+yy.^2));
> pcolor(xx,yy,zz);
> shading('interp')
> grid on
> 
> Result -- grid is shown *beneath* pcolor, so pretty useless:
> http://img12.lostpic.net/2018/02/08/c16462508e969acf488fc0d463c87aaa.png
> 
> I tried to put grid immediately after pcolor -- not working either. With
> gnuplot works fine.
> 
> Thanks.
> 
> -----------------------------------------
> Join us March 12-15 at CERN near Geneva
> Switzerland for OctConf 2018.  More info:
> https://wiki.octave.org/OctConf_2018
> -----------------------------------------

It is the "layer" property of the axes that controls wether the gris and
axes lines are shown above or bellow children primitives
(https://www.gnu.org/software/octave/doc/interpreter/Axes-Properties.html):

set (gca, "layer", "top")

Pantxo



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]