From 4fee8c7d2a5f69157265db5e5a5aa1adef2ab1f0 Mon Sep 17 00:00:00 2001 From: Rob Farmer Date: Tue, 31 Dec 2024 17:14:26 +0000 Subject: [PATCH] Fix wrong core mass location when in age_lookback Works on #32 Reported-by Xenos3108 --- mesaPlot/plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesaPlot/plot.py b/mesaPlot/plot.py index 3f0c243..f248c53 100644 --- a/mesaPlot/plot.py +++ b/mesaPlot/plot.py @@ -5719,7 +5719,7 @@ def plotKip3( if show_mass_loc: self._showMassLoc( - m, fig, ax, np.linspace(xmin, xmax, np.count_nonzero(modInd)), modInd + m, fig, ax, data_x, modInd ) self._setYLim(ax, ax.get_ylim(), yrng) @@ -5997,6 +5997,7 @@ def _rebinKipDataX(self, data, x, lin_x, nan=False, nan_value=1): sorter = np.argsort(x) ind = np.searchsorted(x, lin_x, sorter=sorter, side="left") + s_ind = sorter[ind] # When flipping the ages we may end up with points at the edge