mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Making sure default colors aren't being used.
This commit is contained in:
parent
5c78cd6259
commit
552ab71a50
2 changed files with 8 additions and 0 deletions
|
|
@ -403,6 +403,10 @@ Plot::set_default_colors(pugi::xml_node plot_node)
|
|||
|
||||
for (auto& c : colors_) {
|
||||
c = random_color();
|
||||
// make sure we don't interfere with some default colors
|
||||
while (c == RED || c == WHITE) {
|
||||
c = random_color();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue