03-17-2006 08:17 AM
03-17-2006 08:33 AM - edited 03-17-2006 08:33 AM
You can just use a property node to set the colors. First set the active plot and then assing the color.
Message Edited by Dennis Knutson on 03-17-200607:34 AM
03-17-2006 08:38 AM
Thanks, but that doesn't really answer the question. Please reread my post. The plot colors aren't retained after the user clears the graph. I need a way to make the graph remember the colors which it doesn't seem to do.
George
03-17-2006 09:29 AM
03-17-2006 09:58 AM
I'm using LV 8.0.1. I just built a simple VI to post, but the colors aren't cleared in that VI. It might take awhile to recreate what's actually happening in my real VI. The sequence of events occurring there is more like this:
Data is graphed and the colors are changed to what I want.
Data is saved to disk.
If the graph is cleared, the data loaded back from disk and sent to the graph then the default colors (not the ones I assigned) are used. Actually I think the default colors are used if the data is just reloaded (no clear necessary). I'm doing the updates in a subvi via references so maybe that has something to do with it.
This reloading is what I tried to duplicate in the example VI (although in a different fashion), but the colors don't change there. Seems like I have more investigating to do.
Maybe my question should be this - if you set the plot colors should they be retained even when you send new data to the graph? If so, then something is happening in my VI that upsets that balance.
George
03-17-2006 10:41 AM