From 26c8813eaeb5cae5a2b620b9f6c1000545311519 Mon Sep 17 00:00:00 2001 From: rasmusvt Date: Fri, 8 Jul 2022 17:43:44 +0200 Subject: [PATCH] Add comment I will be happy for in the future --- nafuma/xrd/plot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nafuma/xrd/plot.py b/nafuma/xrd/plot.py index 4253c9c..e3d2594 100644 --- a/nafuma/xrd/plot.py +++ b/nafuma/xrd/plot.py @@ -230,6 +230,9 @@ def plot_diffractogram(data, options={}): # PLOT HEATMAP if options['heatmap']: + # Add locators for y-axis - otherwise it will tend to break (too many ticks) when switching between diffractograms and heatmap in interactive mode. These values will be updated later anyway, and is only + # to allow the initial call to Seaborn to have values that are sensible. + # FIXME A more elegant solution to this? ax.yaxis.set_major_locator(MultipleLocator(100)) ax.yaxis.set_minor_locator(MultipleLocator(50))