LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How dense may the major grid be to allow for a minor grid?

Solved!
Go to solution

Hello NI,

 

on a xy graph, enabling minor grid lines (with major grid lines enabled, too, of course) does not always show them. It appears that no minor grid lines are drawn if there are already 'many' major grid lines.

 

For example, a graph with 817 pixels in height will autoscale from 0 to 100 with major divisions of 2.5. In this case, no minor grid lines will be drawn. Changing to log scale shows minor grid lines, etc.

 

It is confusing for the user of a CVI program if he specifies minor grid lines but none show up...

 

Could NI please specify the exact criterion? Also, an appropriate statement in the help would be considered useful.

 

Thanks!

0 Kudos
Message 1 of 3
(3,699 Views)
Solution
Accepted by topic author Wolfgang

Wolfgang,

 

Normally, the number of minor grid lines between two consecutive major grid lines is a multiplier of the base-10 log of the gap between the major grid lines. However, the graph also enforces a minimum of 10 pixels between each minor grid line (it's 5 pixels for a numeric slide). Therefore, once the gap between two major grid lines becomes smaller than 20 pixels, no more minor grid lines are drawn.

 

We can't go into this much detail in the attribute help, since there is a (remote) possibility that this behavior could be tweaked at some point in the future. But we'll add a note saying that the number of grid lines is proportional to the gap, and that they can completely disappear if the gap is too small.

 

Luis

Message 2 of 3
(3,691 Views)

Thanks Luis,

 

that's sufficient for me 😉

0 Kudos
Message 3 of 3
(3,686 Views)