From 897c7faa826ac0bdc8fca0f6ba649dfba527e0d5 Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Thu, 9 Jul 2020 13:18:59 +0100 Subject: python: slope.py: Use 'rainbow' colormap for subplot. * python/slope.py (detach_display): Add colormap. Disable Normalize() function. --- python/slope.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') 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) -- cgit