Skip to content

Commit 4fee8c7

Browse files
committed
Fix wrong core mass location when in age_lookback
Works on #32 Reported-by Xenos3108
1 parent d7379a3 commit 4fee8c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mesaPlot/plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5719,7 +5719,7 @@ def plotKip3(
57195719

57205720
if show_mass_loc:
57215721
self._showMassLoc(
5722-
m, fig, ax, np.linspace(xmin, xmax, np.count_nonzero(modInd)), modInd
5722+
m, fig, ax, data_x, modInd
57235723
)
57245724

57255725
self._setYLim(ax, ax.get_ylim(), yrng)
@@ -5997,6 +5997,7 @@ def _rebinKipDataX(self, data, x, lin_x, nan=False, nan_value=1):
59975997
sorter = np.argsort(x)
59985998
ind = np.searchsorted(x, lin_x, sorter=sorter, side="left")
59995999

6000+
60006001
s_ind = sorter[ind]
60016002

60026003
# When flipping the ages we may end up with points at the edge

0 commit comments

Comments
 (0)