Skip to content

Commit

Permalink
normalize value before plot
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Jun 3, 2024
1 parent 480dcc7 commit e539b44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geokube/core/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,7 @@ def plot(
kwargs['vmax'] = vmax
#kwargs['levels'] = 10
print(f'{vmin} / {vmax}')
data = (vmax - vmin) * ((data - data.min())/(data.max() - data.min())) + vmin
plot = data.plot(**kwargs)

elif self._domain._type is DomainType.POINTS:
Expand Down

0 comments on commit e539b44

Please sign in to comment.