From e80a3c5f041e2f800b3e6e39de71c461c6c30972 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Mon, 18 Feb 2019 14:55:40 +0100
Subject: [PATCH] Add ytick_distance as parameter for zt-plots

---
 scripts/ztplot.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/ztplot.py b/scripts/ztplot.py
index 82b8b0c..4934e28 100755
--- a/scripts/ztplot.py
+++ b/scripts/ztplot.py
@@ -59,6 +59,7 @@ lock = threading.Lock()
 class ZTPlot(Module):
     def configure(self):
         self.plots_path = self.require('plots_path')
+        self.ytick_distance = self.get('ytick_distance', default=200)
         det_id = self.require('det_id')
         self.calib = kp.calib.Calibration(det_id=det_id)
 
@@ -129,7 +130,8 @@ class ZTPlot(Module):
 
         for idx, ax in enumerate(axes):
             ax.tick_params(labelsize=fontsize)
-            ax.yaxis.set_major_locator(ticker.MultipleLocator(200))
+            ax.yaxis.set_major_locator(
+                ticker.MultipleLocator(self.ytick_distance))
             xlabels = ax.get_xticklabels()
             for label in xlabels:
                 label.set_rotation(45)
-- 
GitLab