mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #2034 from paulromano/universe-plot-hotfix
Fix colors assignment in Universe.plot
This commit is contained in:
commit
6959303317
1 changed files with 2 additions and 1 deletions
|
|
@ -337,7 +337,8 @@ class Universe(UniverseBase):
|
|||
plot.pixels = pixels
|
||||
plot.basis = basis
|
||||
plot.color_by = color_by
|
||||
plot.colors = colors
|
||||
if colors is not None:
|
||||
plot.colors = colors
|
||||
model.plots.append(plot)
|
||||
|
||||
# Run OpenMC in geometry plotting mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue