Bug 120333 - The grid covers curves (wrong z-order)
Summary: The grid covers curves (wrong z-order)
Status: RESOLVED NOT A BUG
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Solaris
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-17 17:35 UTC by Nicolas Brisset
Modified: 2006-03-28 15:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2006-01-17 17:35:16 UTC
Version:           1.2.0_devel (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.4.3
OS:                SunOS (sun4u) release 5.8

It would be nicer if grid lines were drawn below curves, and not on top of them (especially with some setups where the dotted lines are actually plain lines :-().
I think there was a discussion a while ago on the list regarding this issue, but I can't remember whether there was a clear conclusion. If this report is not in line with it or too complicated to implement, just close it...
Comment 1 Andrew Walker 2006-01-18 19:50:04 UTC
I think the current behaviour is correct.

In the case where the curve is monotonically increasing (for example) the intersection between curve and grid lines will be small and so it doesn't really matter which is plotted higher in the z-order.

In the case where the curve is rapidly oscillating with a period much shorter than the width of the x-axis (giving a solid patch of color) the grid should appear higher in the z-order else it will be totally invisible.
Comment 2 Nicolas Brisset 2006-01-25 16:17:18 UTC
I agree that in the first case there won't be much difference, so that's not decisive.
Regarding the second point, I don't think it is extremely important to have the grid on top if you can't make out where the curve is anyway. In such a case, even when the grid is below you'll have a look at axes or the next visible grid lines to determine the amplitude of oscillations, and that's it.
Now, think of another case: a *steady* curve (this tends to happen a lot with booleans for instance :-)). If the grid is drawn on top of it and the grid lines are plain (I know, that's not really "normal" but it does happen) then the curve is completely hidden, and you can only use the data mode to find it. Not so great :-(

Given that in the first 2 cases, it doesn't really matter and that it's clearly better to have grid lines below curves in the third case, I maintain that this is a valid request :-)
Comment 3 Nicolas Brisset 2006-03-28 15:22:07 UTC
I think this has been left aside, but I do think it would be better to have curves above grid lines. Any chance ?