09-26-2022 09:00 AM - edited 09-26-2022 09:04 AM
Hello,
I have 2 plot controls and they have the same issue:
I can't format the plot colours/points style/etc, as the properties window "plots" tab doesn't show or update with any information (see the attached screenshots). When I type anything into the 'name' field, it just disappears again.
I tried editing the plot colours etc via the legend in the top right, but they don't save (even when I 'make current value default') when I rerun the panel.
Any ideas?
EDIT: I'm using LabVIEW 2021 SP1 btw
Solved! Go to Solution.
09-26-2022 09:03 AM
We are going to need to see your code. Please attach the VI that has this problem so we can recreate it and determine a cause/solution
09-26-2022 09:06 AM
The issue seems to occur without any code whatsoever, I've just added a plot to a separate VI on its own and getting the exact same issue
09-26-2022 09:09 AM - edited 09-26-2022 09:12 AM
You have an "XY Plotmatrix" plot (XY Plot Matrix—Graphs rows and columns of scatter graphs.), which does not support these properties until you actually wire data. Have a look at the shipping example:
Maybe you want to use a plain XY graph instead.
What do you actually want to show?
09-26-2022 09:13 AM
I'm trying to graph a plot, passing in two arrays (1 array into x and 1 into y). Neither of the axes are time.
Thanks for bringing my attentiion to this - I'm quite new to LabVIEW and was struggling to figure out the differences between the different plot types.
09-26-2022 09:16 AM - edited 09-26-2022 09:18 AM
@charliecameron00 wrote:
I'm trying to graph a plot, passing in two arrays (1 array into x and 1 into y). Neither of the axes are time.
Thanks for bringing my attentiion to this - I'm quite new to LabVIEW and was struggling to figure out the differences between the different plot types.
Obviously, you need to be more specific. Are these 1D or 2D arrays? What does the data represent, and how should it be displayed? (Sorry, I cannot open your VI at the moment unless you "save for previous" before attaching).
On any graph, all axes can be renamed to whatever you want. (Just the default label for the x-axis is "time")
09-26-2022 09:18 AM
Ah apologies,
They're just 2 1D arrays. Your earlier point about the XY graph vs XY plot matrix was the issue - I've since switched to an XY graph and it's all sorted.
Thanks for the help.
09-26-2022 09:21 AM - edited 09-26-2022 09:23 AM
Don't forget that you can create a 1D complex array and the xy graph will graph IM vs RE. often simpler (example). Also, if the x-values are spaced equally, all you need is a plain waveform graph and define x0 and dx for the x axis).