[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with axes 'layer' property
From: |
Ben Abbott |
Subject: |
Re: Help with axes 'layer' property |
Date: |
Tue, 15 Apr 2014 20:48:53 -0400 |
On Apr 15, 2014, at 8:13 PM, Rik <address@hidden> wrote:
> 4/15/14
>
> I think Octave has the axes 'layer' property exactly reversed. The values,
> 'top' and 'bottom', seem to refer not to the axes object but to the
> children of the axes object. So, when you set the layer property to 'top'
> you are really putting the child objects in front of the axes object and
> placing the axes object at the bottom.
>
> If someone can run this example on Matlab and report back I would be grateful.
>
> plot (1:10, '-or', 'linewidth', 6);
> set (gca, 'xminorgrid', 'on', 'minorgridlinestyle', '-');
> get (gca, 'layer')
> ## What is the default? Should be bottom.
Yes, the default is "bottom"
> set (gca, 'layer', 'bottom')
> ## Is the red line in front of, or behind, the black minor grid lines?
The red line is in front of the grid
> set (gca, 'layer', 'top')
> ## Now, is the red line in front of, or behind, the black minor grid lines?
The red line is behind the grid.
Ben