aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2020-07-09 11:49:39 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2020-07-09 11:49:39 +0100
commitaf44f7d09dbda959698c7d92cd28a70e5f6ff73e (patch)
treeb7a5c930a1989f13b9ac50d4c5ebbec9d9e2ea3c
parent289e6b1a2efcf75b6ecdeb56df3fc07025a3f37f (diff)
downloadfullSWOF-utils-af44f7d09dbda959698c7d92cd28a70e5f6ff73e.tar.gz
python: slope.py: Automatically set subplot tick marks.
* python/slope.py (detach_display): Disable set_xticks() function.
-rwxr-xr-xpython/slope.py4
1 files 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.