Skip to content
Snippets Groups Projects

Make use of extra geom for report figures

Merged Cyril Danilevski requested to merge feat/extra_geom_figures into master
Files
2
@@ -275,7 +275,7 @@ def show_processed_modules(dinstance: str, constants: Optional[Dict[str, Any]],
# Set each tile colour individually, extra_geom provides a single color
# for all tiles.
facecolors = np.repeat(tiles.get_facecolor(), tile_count, axis=0)
facecolors = tiles.get_facecolor() * tile_count
# Set module name fonts
for text in ax.texts:
@@ -303,7 +303,8 @@ def show_processed_modules(dinstance: str, constants: Optional[Dict[str, Any]],
color = 'red'
counter += 1
facecolors[start:stop] = colors.to_rgba(color)
for idx in range(start, stop): # Set the colours
facecolors[idx] = colors.to_rgba(color)
tiles.set_facecolors(facecolors) # Update colours in figure
Loading