How can I change the color of the plots (lines, points) in the collection Scattergraph plot

For example, I go through a foreach loop and draw two points. How to distinguish this set of plots of the yet to come? How can I change the style, color and have separate lines (instead of on the line connecting everything) for each of my plots? I don't know how to set everything up, but it still does what he wants to do. TIA.

Hello

The problem you see occurs because of the following lines of code:

The _data and _data2 scatterPlot3 value

_data = scatterPlot3

_data2 = scatterPlot3

When you do this, you define _data as _data2 to reference an object of the simple concession - scatterPlot3.  Yes, even if you have (from the code you have posted at least) three slots in your collection, they are all pointing to the same object of point cloud.  So when you change the color for one, it changes the color for them all.  However, I think that you have fallen on the right solution in your last sentence.  If you want to have multiple locations on your ScatterGraph, each with its own color and style, they should each be separate and unique plots in the collection plot of your ScatterGraph.  Based on the code you posted, you'll see this if you comment just the two lines shown above.

Please let me know if something is still uncertain.

NickB

National Instruments

Tags: NI Software

Similar Questions

Maybe you are looking for