Skip to content

Commit

Permalink
Update plotters.py
Browse files Browse the repository at this point in the history
Fixed error (when plotting ax.bar(...)) popping up from around matplolib version 3.4.1
  • Loading branch information
ksmet1977 committed May 11, 2021
1 parent e068bcf commit 8ee6756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luxpy/color/utils/plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ def plot_spectrum_colors(spd = None, spdmax = None,\
cmfs = cieobs
cmfs = cmfs[:,cmfs[1:].sum(axis=0)>0] # avoid div by zero in xyz-to-Yxy conversion

wavs = cmfs[0:1].T
wavs = cmfs[0] # changed from cmfs[0:1].T because this stopped working from around matplotlib version 3.4.1
SL = cmfs[1:4].T

srgb = xyz_to_srgb(wavelength_lightness*100*SL)
Expand Down

0 comments on commit 8ee6756

Please sign in to comment.