Skip to content

Commit

Permalink
Merge branch 'master' of github.com:scilus/scilpy
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbore committed Feb 10, 2025
2 parents 10ade43 + c2d3864 commit 13cf908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scilpy/viz/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def prepare_colorbar_figure(cmap, lbound, ubound, nb_values=255, nb_ticks=10,
fig: plt figure
The plt figure.
"""
gradient = cmap(np.linspace(0, 1, ))[:, 0:3]
gradient = cmap(np.linspace(0, 1, nb_values))[:, 0:3]
width = int(nb_values * 0.1)
gradient = np.tile(gradient, (width, 1, 1))
if not horizontal:
Expand Down

0 comments on commit 13cf908

Please sign in to comment.