Skip to content

Commit f808f4e

Browse files
committed
Fix display of background gamut in editor.
mgrid returns arrays that are ordered so that you should use them as (y, x) not (x, y). Somehow this worked before -- I have no idea how -- and then it stopped. But I think it's correct now?
1 parent 554d0de commit f808f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

viscm/gui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ def sRGB_gamut_patch(resolution=20):
344344

345345
def sRGB_gamut_Jp_slice(Jp,
346346
ap_lim=(-50, 50), bp_lim=(-50, 50), resolution=200):
347-
ap_grid, bp_grid = np.mgrid[ap_lim[0] : ap_lim[1] : resolution * 1j,
348-
bp_lim[0] : bp_lim[1] : resolution * 1j]
347+
bp_grid, ap_grid = np.mgrid[bp_lim[0] : bp_lim[1] : resolution * 1j,
348+
ap_lim[0] : ap_lim[1] : resolution * 1j]
349349
Jp_grid = Jp * np.ones((resolution, resolution))
350350
Jpapbp = np.concatenate((Jp_grid[:, :, np.newaxis],
351351
ap_grid[:, :, np.newaxis],

0 commit comments

Comments
 (0)