Skip to content
Snippets Groups Projects
Commit e80a3c5f authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add ytick_distance as parameter for zt-plots

parent e7595f56
Branches
Tags
No related merge requests found
...@@ -59,6 +59,7 @@ lock = threading.Lock() ...@@ -59,6 +59,7 @@ lock = threading.Lock()
class ZTPlot(Module): class ZTPlot(Module):
def configure(self): def configure(self):
self.plots_path = self.require('plots_path') self.plots_path = self.require('plots_path')
self.ytick_distance = self.get('ytick_distance', default=200)
det_id = self.require('det_id') det_id = self.require('det_id')
self.calib = kp.calib.Calibration(det_id=det_id) self.calib = kp.calib.Calibration(det_id=det_id)
...@@ -129,7 +130,8 @@ class ZTPlot(Module): ...@@ -129,7 +130,8 @@ class ZTPlot(Module):
for idx, ax in enumerate(axes): for idx, ax in enumerate(axes):
ax.tick_params(labelsize=fontsize) 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() xlabels = ax.get_xticklabels()
for label in xlabels: for label in xlabels:
label.set_rotation(45) label.set_rotation(45)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment