From: John H. <jdh...@ac...> - 2004-05-12 16:19:37
|
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 |
From: Perry G. <pe...@st...> - 2004-05-12 17:29:23
|
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 |
From: John H. <jdh...@ac...> - 2004-05-12 17:35:57
|
>>>>> "Perry" == Perry Greenfield <pe...@st...> writes: Perry> For images the grid should definitely be drawn after the Perry> image is displayed (I'm having trouble thinking of anything Perry> that shouldn't be done over an image). For line plots, Perry> grids should go behind the data imho. And what's your opinion about ticks for lines and polys: front or back? JDH |
From: Perry G. <pe...@st...> - 2004-05-12 17:47:53
|
John Hunter wrote: > > And what's your opinion about ticks for lines and polys: front or > back? > I guess I would say this is a, ahem, borderline issue [sorry]. But I probably would prefer ticks on top since they are on the border and usually small (unlike grid lines). I'd be interested to hear if people think otherwise. (The principle I'm applying ist that I would be able to see grids around data since they span everything, but that isn't necessarily true for ticks, and obscuring a tick (especially possible with a lot of noisy data points) would be more annoying). Perry |
From: Paul B. <ba...@st...> - 2004-05-12 18:32:33
|
Perry Greenfield wrote: > John Hunter wrote: > >>And what's your opinion about ticks for lines and polys: front or >>back? >> > > I guess I would say this is a, ahem, borderline issue [sorry]. > But I probably would prefer ticks on top since they are on the > border and usually small (unlike grid lines). I'd be interested > to hear if people think otherwise. (The principle I'm applying ist > that I would be able to see grids around data since they span > everything, but that isn't necessarily true for ticks, and > obscuring a tick (especially possible with a lot of noisy data > points) would be more annoying). My inclination would be to treat ticks the same as grid lines for graphs, hence in back. My feeling is that the data should not be obscured. I occasionally run across this problem in PS plots and can usually depend on using the tick mark on the opposite side (i.e. the top or right) for measurement. Of course, if the tick marks are on the outside of the graph, then this isn't a problem. -- Paul -- Paul Barrett, PhD Space Telescope Science Institute Phone: 410-338-4475 ESS/Science Software Branch FAX: 410-338-4767 Baltimore, MD 21218 |
From: Peter G. <pgr...@ge...> - 2004-05-12 18:20:48
|
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 |