Fixed bug in Plot.colorize() for cell plots

This commit is contained in:
Will Boyd 2015-11-17 21:21:14 -05:00
parent 64a7cd9607
commit 59f9b77333

View file

@ -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):