12-27-2019 10:00 AM
I'd like to draw two simple straight lines defining lower and upper boundaries on an XY graph and control the color of the lines. The only solution I've found so far is to use a decoration and then control the color of the decoration line with property nodes. Is there a better method?
Solved! Go to Solution.
12-27-2019 10:17 AM
You can create two more plots on the graph.
12-27-2019 11:14 AM
Thanks - I'll check into that. Unfortunately my data points are little dots scattered about the XY Chart and the lines I'm looking to add would be solid. At the moment I'm now just changing the background color of my plot to accept the black color of the decoration lines. I was hoping to not have to go to the extra steps (property node / VI reference) required to change the color of the decoration lines.
12-27-2019 11:32 AM
Hi dcopes,
@dcopes wrote:
Thanks - I'll check into that. Unfortunately my data points are little dots scattered about the XY Chart and the lines I'm looking to add would be solid. At the moment I'm now just changing the background color of my plot to accept the black color of the decoration lines. I was hoping to not have to go to the extra steps (property node / VI reference) required to change the color of the decoration lines.
As said before: add two more plots to your graph…
12-27-2019 11:33 AM
You chose to plot your existing data points as "dots". You now potentially want to create two more XY Plots consisting of a colored Straight Line, each of its own color. Answer the following questions:
You should be able to get the answers to these questions using the LabVIEW Help or the Tutorial material. Or ask your fellow students.
Bob Schor
12-27-2019 11:39 AM
Oh, yes! Just because I'm not connecting the dots on the first plot doesn't mean I can't connect the dots on the 2nd and 3rd plots (i.e. the desired boundary lines).
12-28-2019 02:58 PM
Yep. And (as I remember from High School Geometry), "Two Points determine a line", so those two lines are "cheap".
Bob Schor