LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting XY Graph for two 1-D Arrays

Solved!
Go to solution

While plotting XY graph of two 1-D arrays A & B, an unwanted straight line is also displayed which goes from 0 to end of the curve.(As shown in attached pic)

How to get rid of it?

I want only the curve not the unwanted straight line.

Anybody please help.

 

Regards

0 Kudos
Message 1 of 5
(2,797 Views)
Solution
Accepted by topic author Waqar123

Hi Waqar,

 

which goes from 0 to end of the curve.

This description is wrong: that line goes from the end of your curve to (0, 0)!

So the easy solution is to remove the trailing zeros in your A&B arrays…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,790 Views)
Solution
Accepted by topic author Waqar123

Can you post your data? My guess is that your arrays have a (0,0) point at the end that you should get rid of.

EDIT: Gerd is too fast 🙂

0 Kudos
Message 3 of 5
(2,787 Views)

Thanks.

0 Kudos
Message 4 of 5
(2,781 Views)

Yes i had trailing zeros. It worked.

Thanks GerdW & Taki1999

 

0 Kudos
Message 5 of 5
(2,759 Views)