LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

setting multiple plot color at the same time

Hi guys

I know a similar question was already answered, but at that place there were 72 plots per graph where I have more than 250. Now changing the color of those 1 by 1 is a really slow process -> you can see how one after the other are changing the color.

Now the real problem is that when you add another plot to the graph LV defines it's color automatically, when I want all the plots to be black.

So is there a parameter that I can set that all the new plot colors should be black instead of colored?

Peace
Waldemar
0 Kudos
Message 1 of 8
(3,568 Views)

Well, I happen to remember answering that question and if I said Wow to 72 plots, I think I'm left speechless when you talk of almost 4 times as many. Plus, what's the point of having all of them the same color? Aren't you supposed to be able to tell them apart?

Anyway, it doesn't sound unreasonable to me that redrawing more than 250 plots in the same space on the FP takes time. As an experiment, try placing the graph in a tab and changing the tab page before changing the plot colors. Also, do you have any other code which could be causing delays (like a wait)? How about other alternatives for displaying your data?
 
I'm fairly sure you can't set LV to add new plots of the same color, because the plots are supposed to be different from each other.
 
If this doesn't help, how about posting some of your code?

___________________
Try to take over the world!
0 Kudos
Message 2 of 8
(3,562 Views)
Try this. 7.0 format. I used a waveform graph.
0 Kudos
Message 3 of 8
(3,556 Views)

I don't think you can set all 250 plots to one colour quickly in editing mode - but you could quite easily wire up a temporary loop that would set all the graph's plot colours to black (using property nodes). Run the loop once to set all the plots to black, then delete the code and save the graph/VI - the graph's properties will be saved.

I've attached an example.

Mark.

P.S. Please tell us why you want to graph 250 plots, all black?
0 Kudos
Message 4 of 8
(3,552 Views)
Well so the answer is no. 😞



But you guys give me some ideas how to optimize the code.



Anyway check the pic why I need 250 plots per graph.



In the current example there is a simple sin line, but in reality it will be an EEG from the optical stimulation.

(anyway if they want they can zoom the graph).



So the main thing is the latency change of specific extremes. Now if you have all the plots at one screen you can clearly see how the latency changes.



If you look at the pic you can clearly see which signals are going mad and that's precise enough. 🙂



Thanks for the answers and examples. : )



Peace

Waldemar

Message Edited by Waldemar on 07-13-2005 10:28 AM

0 Kudos
Message 5 of 8
(3,539 Views)
Well so the answer is no. 😞

But you guys give me some ideas how to optimize the code.

Anyway check the pic why I need 250 plots per graph.

In the current example there is a simple sin line, but in reality it will be an EEG from the optical stimulation.
(anyway if they want they can zoom the graph).

So the main thing is the latency change of specific extremes. Now if you have all the plots at one screen you can clearly see how the latency changes.

If you look at the pic you can clearly see which signals are going mad and that's precise enough. 🙂

Thanks for the answers and examples.

Peace
Waldemar
0 Kudos
Message 6 of 8
(3,534 Views)
I had the same problem except I was plotting 1000's of datasets.

For almost instant results:
1. Using a property node for the plot, set "Plot.Visible = FALSE".
2. Change the plot colors are desired.
3. Set "Plot.Visible = TRUE".

It is VERY FAST!!!!!



0 Kudos
Message 7 of 8
(3,265 Views)
Another option - set the defer updates property to T before starting and to F after finishing (example).

___________________
Try to take over the world!
0 Kudos
Message 8 of 8
(3,257 Views)