LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting 6 curves in 3 stacked plots?

Solved!
Go to solution

I've got some filtered x,y, z coordinate data which I'm currently plotting to a waveform chart with stacked plots. How can I include the unfiltered data on the respective plots? 

 

ie. 1 plot displaying x filtered and unfiltered together, y filtered and unfiltered together etc.

 

plotting.png

 

 

0 Kudos
Message 1 of 4
(2,572 Views)
Solution
Accepted by topic author grahamwebb

Hey Graham,

 

Interesting question!! It has taken me a while to figure it out, but is certainly possible - even if the solution is a bit of a fiddle.

 

FrontPanel.jpg

 

Please see the attached code. To impliment your functionality, I had to...

 

  • Bundle all plots (in this case 4) in to a single cluster, and send them into a "stacked chart".
  • Resize the plot legend to show all 4 plots.
  • Right click each item in the legend, navigate to Y-Scale and then select which window you would like to show the plot (1-4)

 

This means that 2 of the windows will show 2 plots each, and 2 of the windows will be empty. Unfortunately, I was unable to "hide" a window - so this is where the "fiddle" comes in - I just resized and repositioned each of the "windows" to effectively only show 2 of them in our stacked chart.

 

I hope this has been useful Graham,

Best wishes,

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/
Message 2 of 4
(2,554 Views)

Thanks Rich, that is exactly what I am after! I find using the plots is always trial and error because there are so many ways to present data to them, and I didn't realise you can overlap plots like that.

 

 

Graham

0 Kudos
Message 3 of 4
(2,547 Views)

Great VI.

I have been looking into allowing the user to select which "channels" are shown on which stacked plot at run-time. I am trying to find a more user-friendly way than having him right-click the legend and selecting the plot. Any ideas on how which plot property would let me do this? By the way, the number of "channels" I plot is variable at run-time, so the user is able to select from a pool of "channels" and should be able to decide where each is plotted.

I would appreciate any ideas.

Javier Ruiz - Partner at JKI
jki.net
vipm.io
0 Kudos
Message 4 of 4
(2,519 Views)