Skip to content

Commit

Permalink
Fix color normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
BruegelN committed Mar 16, 2023
1 parent 725e4a7 commit 5d62b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshplot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Helper functions
def get_colors(inp, colormap="viridis", normalize=True, vmin=None, vmax=None):
colormap = plt.cm.get_cmap(colormap)
if normalize:
if not normalize:
vmin=np.min(inp)
vmax=np.max(inp)

Expand Down

0 comments on commit 5d62b94

Please sign in to comment.