From 8be811521d23a32f0db7eace353e0ee292c597b4 Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Thu, 2 Jun 2022 15:06:41 +0200 Subject: [PATCH] fix(plot): plot_heatmap_b64 `top` argument is now supported --- popmon/visualization/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popmon/visualization/utils.py b/popmon/visualization/utils.py index 52e3c199..98c69b5b 100644 --- a/popmon/visualization/utils.py +++ b/popmon/visualization/utils.py @@ -482,7 +482,7 @@ def xtick(lab): """Get x-tick.""" lab = str(lab) if len(lab) > top: - lab = lab[:17] + "..." + lab = lab[: top - 3] + "..." return lab plt.xticks(tick_pos_x, date, fontsize=20, rotation=90)