LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Thin lines getting thicker

Solved!
Go to solution

Hello,

 

I just made an interesting observation: When (re)plotting the very same data set on a XY graph using

PlotXY (,,,,,,,VAL_THIN_LINE,,VAL_SOLID,1,VAL_WHITE)

 

the line gets thicker every time (it seems to approach a limiting value). In my understanding colors are not transparent in CVI, so I am wondering why plotting the same line 5 times results in a line that is much thicker and indistinguishable from a thick line...?

 

I am providing a visual impression below: leftmost figure: one plot, middle figure: three plots, right figure: >~ 5 plots

 

first.jpgthird.jpgseveral.jpg

 

Did I do something wrong?

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

You didn't do anything wrong, you just have anti-aliased plots turned on. Those plots do have semi-transparent edges so that they look smoother, and replotting the same data will cause the plots to "fill out" and exhibit the behavior you're seeing. If you don't want this to happen, disable anti-aliased plots and your data should appear thick (and jagged!) from the beginning but will not get any thicker.  

Kevin B.
Message 2 of 3
(3,018 Views)

Thanks! This explains it nicely.

 

Would you mind and add a sentence such as 'Anti-aliased plots have semi-transparent edges' to the CVI help of ATTR_ANTI_ALIASED_PLOTS? It couldn't harm 😉

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