From af44f7d09dbda959698c7d92cd28a70e5f6ff73e Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Thu, 9 Jul 2020 11:49:39 +0100 Subject: python: slope.py: Automatically set subplot tick marks. * python/slope.py (detach_display): Disable set_xticks() function. --- python/slope.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/slope.py b/python/slope.py index eb4850b..b1ae5f1 100755 --- a/python/slope.py +++ b/python/slope.py @@ -83,7 +83,7 @@ def detach_display(): origin='lower', cmap=plt.get_cmap('terrain_r')) ax1.set_title('elevation / m') - ax1.set_xticks([0, 100, 200, 300, 400, 500]) + # ax1.set_xticks([0, 100, 200, 300, 400, 500]) ax1.plot(xMarker, yMarker, 'ro') fig.colorbar(left, ax=ax1) @@ -92,7 +92,7 @@ def detach_display(): origin='lower', norm=colors.Normalize(vmin=0, vmax=0.1)) ax2.set_title('slope') - ax2.set_xticks([0, 100, 200, 300, 400, 500]) + # ax2.set_xticks([0, 100, 200, 300, 400, 500]) fig.colorbar(right, ax=ax2) # press a suitable key (one that is not bound already) to mark bank. -- cgit