Skip to content

Commit

Permalink
Renaming sb_fluxes to ref_fluxes, example_16
Browse files Browse the repository at this point in the history
  • Loading branch information
rapoliveira committed Mar 8, 2024
1 parent 7f0f210 commit 323976b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example_16/ulens_model_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3172,15 +3172,15 @@ def _second_Y_axis_optimal(self, ax2, A_min, A_max):

return (A_values[fnum < 4], labels[fnum < 4].tolist(), False)

def _second_Y_axis_minor_ticks(self, ax2, A_values, sb_fluxes):
def _second_Y_axis_minor_ticks(self, ax2, A_values, ref_fluxes):
"""
Get minor ticks for magnification axis from matplotlib
"""
ax2.minorticks_on()
minor_ticks_A = ax2.yaxis.get_ticklocs(minor=True)
minor_ticks_A = minor_ticks_A[~np.isin(minor_ticks_A, A_values)]

minor_ticks_flux = sb_fluxes[0] * minor_ticks_A + sb_fluxes[1]
minor_ticks_flux = ref_fluxes[0] * minor_ticks_A + ref_fluxes[1]
minor_ticks_mag = mm.Utils.get_mag_from_flux(minor_ticks_flux)
ax2.set_yticks(minor_ticks_mag, minor=True)

Expand Down

0 comments on commit 323976b

Please sign in to comment.