LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding background color to specific sections of a waveform chart

Solved!
Go to solution

I am looking for a way to select a specific background color on a waveform chart programatically for specific y axis ranges. For example, between the y axis value of 1 and 3 I would like the waveform chart background color to be yellow. Any suggestions on how to do this programmatically using the property nodes ?

0 Kudos
Message 1 of 6
(2,944 Views)

Hi Blue,

 

as charts are rather limited in their possibilities (compared to graphs) I would suggest to use additional plots for that purpose.

Set those plots to fill to -Inf with the color needed:

check.png

Plot 1 is set to black and fill to -Inf, Plot 3 is set to blueish and fill to -Inf. All other plots are set to show points and line...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,933 Views)

Is there a good method to do this programatically with graphs then ?

0 Kudos
Message 3 of 6
(2,928 Views)
Solution
Accepted by topic author MaizeBlue

Hi,

 

with graphs you can use cursors or background images. There are even examples coming with LabVIEW showing how to show draw limit lines...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,920 Views)

Hello, i have implemented this method that you have proposed, but now the plot is behind the shaded regions. How do i bring the plot in front of the shaded regions like you did for plot 4 in your example above ?

0 Kudos
Message 5 of 6
(2,848 Views)

Hi Maize,

 

the plots are ordered by their index: plot0 is in front of plot1. Plot1 is in front of plot2. Plot2 in front of plot3. ...

 

Do you get the scheme? 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,843 Views)