Skip to content

Commit

Permalink
Fix ramp array
Browse files Browse the repository at this point in the history
Was -1 to 1 but imshow origin is top by default
  • Loading branch information
kwinkunks authored Aug 15, 2024
1 parent 50de8dc commit 1b37854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/polarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def polarity_cartoon(layer='hard',

if style == 'ramp':
# cbar is a ramp.
cbar = np.linspace(-1, 1, size).reshape(-1, 1)
cbar = np.linspace(1, -1, size).reshape(-1, 1)
else:
# cbar is the synthetic.
cbar = syn.reshape(-1, 1)
Expand Down

0 comments on commit 1b37854

Please sign in to comment.