Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
6cbe189f
Commit
6cbe189f
authored
4 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
np.repeat instead of np.array
parent
372babd1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!390
convert facecolors to nparray
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cal_tools/cal_tools/plotting.py
+1
-1
1 addition, 1 deletion
cal_tools/cal_tools/plotting.py
with
1 addition
and
1 deletion
cal_tools/cal_tools/plotting.py
+
1
−
1
View file @
6cbe189f
...
...
@@ -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
.
array
(
tiles
.
get_facecolor
s
()
.
tolist
()
*
tile_count
)
facecolors
=
np
.
repeat
(
tiles
.
get_facecolor
()
,
tile_count
,
axis
=
0
)
# Set module name fonts
for
text
in
ax
.
texts
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment