From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does one change XY Graph Plot.Style property defaults OR Change the Properties od Individual Plots?

Solved!
Go to solution

I have an XY graph with a variable (known) number of multiple plots. Because the number of plots can vary, the plot style is sometimes not what I want. I'm trying to use a property node in a for-loop to change the Plot.LineStyle, Plot.PointStyle, and Plot.Fill/PtColor properties for each of the plots in an XY graph. However, perhaps because the names are not static, the colors do not seem to be updating as I'd like, and I'm really unsure as to why this is happening. Strangely, the LineStyle and PointStyle do seem to be updating as I'd like.

 

Please see the attached ScatterColors.zip file which contains the main VI in question (SplitInGroupsScatterByOrder.vi) and two sub-VIs on which it depends. Thanks in advance for your help

0 Kudos
Message 1 of 6
(5,016 Views)
Solution
Accepted by topic author jamespherman
Okay, I figured it out for myself. I had made the foolish mistake of thinking that the "Plot Name" property was a reference, allowing one to select, by Plot Name, which plot's properties were being modified. Now I understand that the "Active Plot" property is the way to do this, while the Plot Name property allows one (surprise, surprise) to edit a Plot's Name.
Message 2 of 6
(5,011 Views)

Hi, I am using labview 6.1. (do not have choice, sorry....)

I am trying to change the color of a curve, but not the entire curve, only part of it, when a trigger occurs while I am drawing it.

Can you help me with that ?

 

Thank you in advance !!

Pierre

0 Kudos
Message 3 of 6
(4,723 Views)

Hello Pierre,

 

This dynamic color feature is still not present in 2009, much less 6.1. I have linked a discussion forum post here that discusses in detail a work around for addiing this functionality. While you may not be able to open their example VIs, the theory is described; such that, you may attempt to replicate in 6.1. 

 

Hope this helps. 

 

 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 4 of 6
(4,692 Views)

Thank you for the information!It does work!

0 Kudos
Message 5 of 6
(3,363 Views)

Thank you for the information!It does work!

0 Kudos
Message 6 of 6
(3,362 Views)