08-24-2007 11:13 AM
08-24-2007 02:30 PM
08-24-2007 02:52 PM
08-24-2007 03:04 PM
For unlimited colors, you can use an intensity chart and map your colors into it. (A similar method was used to simulate a multicolor graph (not chart!) using an intensity graph, see MemoryGraph04.vi from from this old thread).
See how far you get. It all depends how much time you want to invest.
(Of course you can also use a picture indicator and do whatever you possibly want.)08-24-2007 04:47 PM
Thank you for your example, but it's too complicated to incorporate into my system. Right now, I'm looking into how I can make data line restart as another data line when certain crireria's met. This way, it will be in different color. I haven't figured out how to do it yet.
Best regards,
Guangde
08-24-2007 09:40 PM - edited 08-24-2007 09:40 PM
Message Edited by Ravens Fan on 08-24-2007 10:43 PM
08-24-2007 10:04 PM
This is incorrect! If you use +inf, it will end the current color with a line going vertically up to infinity (or vertically down for -inf). To plot nothing, you need to plot NaN as in my answer above.
@Ravens Fan wrote:
And +Inf plots nothing.
08-25-2007 10:24 AM
08-25-2007 06:48 PM
@altenbach wrote:
This is incorrect! If you use +inf, it will end the current color with a line going vertically up to infinity (or vertically down for -inf). To plot nothing, you need to plot NaN as in my answer above.
You're right. When I was writing up the message, I was looking for a constant Nan on the numeric pallette. I didn't find it. I saw +Inf, and I thought, "yeah, that's the same thing". I didn't notice the lines going off the graph. I went back and looked for the Nan constant after seeing your message and still couldn't find it. Then I realized typing Nan into a normal constant worked just fine.
The key thing I was trying to say in the message is that if the user wants to change colors, putting the data for the next color into the next numeric of a cluster to the chart seems to work and putting nothing in for the last plot. Now with a method like this, I am going to assume that they would need to know the maximum amount of colors they could possibly want, and bundle up a cluster that contains that many numerics. Replace array subset and using the array to cluster function should make it easier to index the data into the next numeric of the cluster.