LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview XY Plot "plots" tab

Solved!
Go to solution

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

Download All
0 Kudos
Message 1 of 8
(1,576 Views)

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

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 8
(1,569 Views)

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

0 Kudos
Message 3 of 8
(1,560 Views)
Solution
Accepted by topic author charliecameron00

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:

 

altenbach_0-1664201556684.png

 

 

Maybe you want to use a plain XY graph instead.

 

What do you actually want to show?

Message 4 of 8
(1,554 Views)

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.

0 Kudos
Message 5 of 8
(1,547 Views)

@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")

0 Kudos
Message 6 of 8
(1,542 Views)

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.

0 Kudos
Message 7 of 8
(1,527 Views)

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).

Message 8 of 8
(1,518 Views)