who's in front

Earlier the subject of how to draw ticks and grids for image data was
brought up. The problem was that images obscure the ticks. This can
be fixed by drawing the ticks after the rest of the axes. The
question I am considering now is whether the grids should also be
drawn last. This applies to image and non image axes. If, on a line
plot or bar plot, should the grids be in front of or behind your data?

Another possibility would be to put the grids in front with a semi
transparent alpha, so you could see your data through them. Of
course, on backends like postscript which don't have an alpha channel,
this wouldn't work.

Any preferences?

JDH

John Hunter wrote:

Earlier the subject of how to draw ticks and grids for image data was
brought up. The problem was that images obscure the ticks. This can
be fixed by drawing the ticks after the rest of the axes. The
question I am considering now is whether the grids should also be
drawn last. This applies to image and non image axes. If, on a line
plot or bar plot, should the grids be in front of or behind your data?

Another possibility would be to put the grids in front with a semi
transparent alpha, so you could see your data through them. Of
course, on backends like postscript which don't have an alpha channel,
this wouldn't work.

Any preferences?

For images the grid should definitely be drawn after the image
is displayed (I'm having trouble thinking of anything that
shouldn't be done over an image). For line plots, grids
should go behind the data imho.

Perry

Perry Greenfield wrote:

John Hunter wrote:

Earlier the subject of how to draw ticks and grids for image data was
brought up. The problem was that images obscure the ticks. This can
be fixed by drawing the ticks after the rest of the axes. The
question I am considering now is whether the grids should also be
drawn last. This applies to image and non image axes. If, on a line
plot or bar plot, should the grids be in front of or behind your data?

Another possibility would be to put the grids in front with a semi
transparent alpha, so you could see your data through them. Of
course, on backends like postscript which don't have an alpha channel,
this wouldn't work.

Any preferences?

For images the grid should definitely be drawn after the image
is displayed (I'm having trouble thinking of anything that
shouldn't be done over an image). For line plots, grids
should go behind the data imho.

I agree.

I have little preference about tics for lines, but perhaps like the grid - behind might be better.

Peter