LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

line between two part of a graph

Solved!
Go to solution

Hi,

I've got a problem with my XY graph. Here it is :

 

-My acquisition is realised over several frequency bands, each band is merged to the graph. It works perfectly like there :

18009iE30E7599791400E3

Here I made the acquisition on 4 bands : 50k-100k; 100k-150k, 150k-1,15M and 1,15M-11M.

 

But here is the same acquisition without the 150k-1,15M

18011i49BE2021B637131C

 

You can see the lines in this band. How can I avoid them? (they are also there when I go from a high frequency band to a low frequency band, and it looks horrible).

 

Thanks in advance


J.D.
French Labview beginner
N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers
0 Kudos
Message 1 of 5
(2,882 Views)

You could try putting NaN (not a number) into the array for the elements that you don't want to plot.

 

Ben suggested that to me a while back and it worked for my application, but it may not be suitable for yours - worth a try though.

 

Ian

Message 2 of 5
(2,866 Views)
Solution
Accepted by topic author JDlabview

A single NaN pair will break the line on an XY graph.  You can also plot the separate parts separately.  Make their colors/line types the same so they appear to be the same plot.  This trick is often used when color highlighting sections of a graph.

Message 3 of 5
(2,852 Views)

DFGray, I used to do this, but I finally chose to merge different plots because I had 3plots*8sections = 24 plots.

 

Now I only got 3. It is usefull because the user can modify them with the plot legend, and my code is a lot easier.

 

I don't really see how I could add a NaN pair if (and only if) the parts are separate. As I use a producer/consumer + state machine and every part has its own state, I really can't know if the part is next to the precedent one, or not.

 

I will try to see what I can do.

Thanks


J.D.
French Labview beginner
N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers
0 Kudos
Message 4 of 5
(2,844 Views)

Great ! it works18043iF5FD089FF6086D2E

 

Just added NaN at the end of each part measurement

18045i8D876D755F1B7114

 

Thanks again!


J.D.
French Labview beginner
N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers
0 Kudos
Message 5 of 5
(2,829 Views)