01-17-2019 08:13 AM - edited 01-17-2019 08:16 AM
I programmed a project with many graphs, where each graph has up to 128 plots.
It is always only one plot visible and the user can switch through the plots. I never configured anything for the colors, but left everything at the default settings. Now I got the feedback, that some of the plots are white, which is terrible to see on the white background.
Is there some easy way to exclude white as a possible plot color for all graphs in the project at once?
I actually do not really care about the colors at all, as long as they are easy to see, so it would be possible to set all plots to black (or dark blue, or anything else) because there is only one plot visible at a time anyway.
I want to avoid changing the plot color programmatically, I would like to set that fixed for the whole project. Is there some way to do this?
Best regards
01-17-2019 08:18 AM
I use this method
01-17-2019 08:21 AM
Hello Jusaca,
You should be able to just use the Plot.Color property on the active plot.
This link shows how to set Programmatically Change Multiple Line Colors on a Chart or Graph.
01-17-2019 08:29 AM
I guess that would work, but I still would have to do this for each and every graph I have. I hoped there was some way to set that for the whole project.
01-17-2019 11:32 AM
@jusaca wrote:
I programmed a project with many graphs, where each graph has up to 128 plots.
It is always only one plot visible and the user can switch through the plots.
How does the user "Switch though the plots"? If there is only one plot ever visible, the graph should only contain a single plot. When the user switches, the data and plot name should be updated programmatically, reusing the same plot. It seems very inefficient and expensive to have the graph contain 128 more data than ever seen by the user. Massive data should only exist on the diagram (e.g. in a shift register or DVR), not in front panel objects!
Please show us some simplified code so we can give more specific advice.
01-18-2019 12:45 AM
01-18-2019 01:16 AM
In order to complete... here is a little VI I did to set a list of color that are easily distinguishable while removing the one you use.
https://lavag.org/files/file/301-55-easily-distinguishable-colorvi/
Benoit
01-23-2019 08:38 AM
Hello Jusaca!
Did you manage to solve the problem?
01-31-2019 07:18 AM