07-02-2010 02:35 AM
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 :
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
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
Solved! Go to Solution.
07-02-2010 04:46 AM
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
07-02-2010 07:49 AM
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.
07-02-2010 08:19 AM - edited 07-02-2010 08:21 AM
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
07-02-2010 08:45 AM
Great ! it works
Just added NaN at the end of each part measurement
Thanks again!