Merge pull request 'Replaced usage of removed variable' (!25) from July2026-cmap-fix into master
Reviewed-on: #25
This commit was merged in pull request #25.
This commit is contained in:
@@ -837,7 +837,7 @@ verbose: {verbose}")
|
|||||||
|
|
||||||
fig, ax = plt.subplots(figsize=((width + 40) / 100.0, (height + 20) / 100.0),
|
fig, ax = plt.subplots(figsize=((width + 40) / 100.0, (height + 20) / 100.0),
|
||||||
dpi=100) # Increase fig size for labels
|
dpi=100) # Increase fig size for labels
|
||||||
ax.imshow(gradient, aspect='auto', cmap=cmap.reversed(),
|
ax.imshow(gradient, aspect='auto', cmap="YlOrRd_r",
|
||||||
extent=[0, 1, vmin, vmax]) # Note: extent order is different for vertical
|
extent=[0, 1, vmin, vmax]) # Note: extent order is different for vertical
|
||||||
ax.set_xticks([]) # Remove x-ticks for vertical colorbar
|
ax.set_xticks([]) # Remove x-ticks for vertical colorbar
|
||||||
num_ticks = 11 # Show more ticks
|
num_ticks = 11 # Show more ticks
|
||||||
|
|||||||
Reference in New Issue
Block a user