Skip to content
Snippets Groups Projects
Commit 6cbe189f authored by Karim Ahmed's avatar Karim Ahmed
Browse files

np.repeat instead of np.array

parent 372babd1
No related branches found
No related tags found
1 merge request!390convert facecolors to nparray
This commit is part of merge request !390. Comments created here will be created in the context of that merge request.
...@@ -275,7 +275,7 @@ def show_processed_modules(dinstance: str, constants: Optional[Dict[str, Any]], ...@@ -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 # Set each tile colour individually, extra_geom provides a single color
# for all tiles. # for all tiles.
facecolors = np.array(tiles.get_facecolors().tolist() * tile_count) facecolors = np.repeat(tiles.get_facecolor(), tile_count, axis=0)
# Set module name fonts # Set module name fonts
for text in ax.texts: for text in ax.texts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment