mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fixed bug in Plot.colorize() for cell plots
This commit is contained in:
parent
64a7cd9607
commit
59f9b77333
1 changed files with 2 additions and 2 deletions
|
|
@ -284,7 +284,7 @@ class Plot(object):
|
|||
if self.color is 'mat':
|
||||
domains = geometry.get_all_materials()
|
||||
else:
|
||||
domains = geometry.get_all_materials()
|
||||
domains = geometry.get_all_cells()
|
||||
|
||||
# Set the seed for the random number generator
|
||||
np.random.seed(seed)
|
||||
|
|
@ -295,7 +295,7 @@ class Plot(object):
|
|||
r = np.random.randint(0, 255)
|
||||
g = np.random.randint(0, 255)
|
||||
b = np.random.randint(0, 255)
|
||||
self.col_spec[domain.id] = (r, g, b)
|
||||
self.col_spec[domain] = (r, g, b)
|
||||
|
||||
|
||||
def get_plot_xml(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue