diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2020-07-09 13:18:59 +0100 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2020-07-09 13:18:59 +0100 |
commit | 897c7faa826ac0bdc8fca0f6ba649dfba527e0d5 (patch) | |
tree | 1d0a60c31dbbd87838e1163e64036fc0548e3a1c | |
parent | 4c958c061fcf97c0cc13701578a3fb1400227793 (diff) | |
download | fullSWOF-utils-897c7faa826ac0bdc8fca0f6ba649dfba527e0d5.tar.gz |
python: slope.py: Use 'rainbow' colormap for subplot.
* python/slope.py (detach_display): Add colormap. Disable Normalize()
function.
-rwxr-xr-x | python/slope.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/slope.py b/python/slope.py index cd388d2..29d967e 100755 --- a/python/slope.py +++ b/python/slope.py @@ -90,7 +90,8 @@ def detach_display(): right = ax2.imshow(dzdy, interpolation='nearest', origin='lower', - norm=colors.Normalize(vmin=0, vmax=0.1)) + cmap=plt.get_cmap('rainbow')) + # norm=colors.Normalize(vmin=0, vmax=0.1)) ax2.set_title('slope ($dz/dy$)') # ax2.set_xticks([0, 100, 200, 300, 400, 500]) fig.colorbar(right, ax=ax2) |