From 0a87786cbbfbc7848fe30e86f39d1d0e53b0bddf Mon Sep 17 00:00:00 2001
From: Philipp Niedermayer <p.niedermayer@gsi.de>
Date: Tue, 16 Aug 2022 17:15:38 +0200
Subject: [PATCH] Fix axis label resolution

---
 plotting.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plotting.py b/plotting.py
index 7ce0a7a..9890cb5 100644
--- a/plotting.py
+++ b/plotting.py
@@ -788,7 +788,7 @@ def plot_spill_intensity(ax, spill_data, bin_time=10e-6, *, rate=False, cumulati
             histtype='step', cumulative=cumulative, weights=weights, **plot_kwargs)
     ax.set(ylabel=label, xlabel='Extraction time / s', #xlim=(spill_data.time_offset, spill_data.time_offset+bin_time*nbins),
            )
-    if relative: ax.yaxis.set_major_formatter(mpl.ticker.PercentFormatter(1, decimals=0))
+    if relative: ax.yaxis.set_major_formatter(mpl.ticker.PercentFormatter(1))
 
 
 def plot_spill_duty_factor(ax, spill_data, counting_dt=10e-6, evaluation_dt=10e-3, *, show_poisson_limit=False, **kwargs):
-- 
GitLab