04-21-2009 03:31 AM
Hi!
Im using a chart to visualize data. There are more signals coming in, and i can select which signal is being sent to the chart. The problem is, that i would like to indicate somehow, that when i change the signal, it is a new one.
So here is my question: Is it possible to change the colot of a plot, but only of the past points'? So for example the chart displays the speed in red, then i switch to the position signal, and it continues drawing it in blue.
Thanks:
Waszil
Solved! Go to Solution.
04-21-2009 03:59 AM
Hi Waszil,
it's not possible to give different colors for a single plot, but you can write into a new plot and give this another color.
Mike
04-21-2009 09:12 AM - edited 04-21-2009 09:13 AM
To expand on Mike's solution you would have to plot two plots
plot 1 -> 1,2,3,4,5,NaN,NaN,NaN,NaN <- red
plot 2 -> NaN,NaN,NaN,NaN,NaN,6,7,8,9 <--- green
where NaN = Not a Number ( this can be used in DBL and SGL datatypes) the value of NaN will not show up on the plot
The behavior also depends on wether or not you use an XY graph or chart
04-21-2009 09:16 AM
04-21-2009 09:21 AM
Thanks for the answers, meanwhile i solved it in the following way: I clear the HistoryBuffer of the chart, so the old values will be zero, when i switch to another signal.
Thanks anyway.