LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Thin black line at the top of an intensity chart?

Does anybody know how to get rid of the thin black line at the top of an intensity chart? I find that if I add data to a chart up to and including the maximum value on the scale, I'm still left with a thin black (unfilled) line at the top. The attached example shows this with 50 rows.

If I add an extra row of data it disappears, but this isn't what I have. Even setting the scale from 1 to 50 (in the attached example) doesn't do the trick.

Ian
0 Kudos
Message 1 of 4
(2,733 Views)
The "thin black line" is an absence of data. You�re trying to show data you don�t have. In your example, you have a 100 x 50 element array. The y (or column) data is indexed in elements 0 - 49, but you are plotting 0 - 50. Since there is no data at a y value of 50, you get the black line (no data).

Tim
0 Kudos
Message 2 of 4
(2,733 Views)
Ok, true enough, but try this: in my example vi, set dimension size to 1. Run it. You still get the thin black line. Now manually change the y scale max to something less than 1, say 0.5. Run it again and the axis autoscales to 1, and now the black line has gone. Manually change the max to 2, and run it, and the black line is back. This is repeatable.

Ian
0 Kudos
Message 3 of 4
(2,733 Views)
I still think you're looking at the same problem. When you set dimension size to 1 (one value in array index 0) and y scale max to 1 (one more than the array size), you should get the black line. There is no data at a value of 1, only at 0. When you set it to less than 1, the graph isn't autoscaling. Your y axis autoscale is disabled but your y axis formatting is set to show 0 decimal place precision. With 0 decimal place precision will show anything from 0.5 to 1.499 as 1. Change your y scale formatting and you will see this.
So maybe there's your answer - set the y scale max to 49.5 (49.9 didn't work, but I would've expected it to) and set the formatting to 0 decimal place precision.
0 Kudos
Message 4 of 4
(2,733 Views)