From 3f1fd0eceedc15a3d41b92c4350cf7eb2e491599 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Thu, 21 Feb 2019 09:54:02 +0100 Subject: [PATCH] Don't use scientific notation --- scripts/rttc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/rttc.py b/scripts/rttc.py index a98de45..29639a4 100644 --- a/scripts/rttc.py +++ b/scripts/rttc.py @@ -39,8 +39,6 @@ km3pipe.style.use('km3pipe') from km3pipe.logger import logging -plt.rcParams['axes.formatter.useoffset'] = False - @kp.tools.timed_cache(hours=1) def get_baseline_rttc(det_id, hours=24): @@ -147,6 +145,9 @@ def main(): ax.set_xlabel('time [UTC]') ax.set_ylabel('RTTC [ps]') ax.xaxis.set_major_formatter(xfmt) + ax.yaxis.set_major_formatter(ticker.ScalarFormatter()) + ax.yaxis.get_major_formatter().set_scientific(False) + ax.yaxis.get_major_formatter().set_useOffset(False) plt.savefig( os.path.join(plots_path, 'rttc.png'), dpi=120, bbox_inches="tight") plt.close('all') -- GitLab