Skip to content

Commit

Permalink
Fixed a bug in colorsynth.colorbar() where the wavelength axis wasn…
Browse files Browse the repository at this point in the history
…'t being selected correctly.
  • Loading branch information
byrdie committed Nov 5, 2024
1 parent bd723a9 commit defc3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions colorsynth/_colorsynth.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,8 @@ def colorbar(

spd_, wavelength_ = transform_spd_wavelength(cbar, wavelength)

XYZ = XYZcie1931_from_spd(spd_, wavelength_, axis=~0)
RGB = sRGB(XYZ, axis=~0)
XYZ = XYZcie1931_from_spd(spd_, wavelength_, axis=axis_)
RGB = sRGB(XYZ, axis=axis_)

RGB = RGB.to_value(u.dimensionless_unscaled)

Expand Down

0 comments on commit defc3f4

Please sign in to comment.