You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, in matplotlib the min value of the colormap in hist2d plots can be manually set (cmin = value). I can't seem to get that functionality to work with my mplhep.hist2d and get the following error:
file "psd_fom.py", line 42, in rawplots
mplhep.hist2dplot(data,cmap = 'turbo', cmin=0)
File "/Users/mduce6/Library/Python/3.8/lib/python/site-packages/mplhep/plot.py", line 500, in hist2dplot
H[H < cmin] = None
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
after running mplhep.hist2dplot(data,cmap = 'turbo', cmin=0)
When I don't include a cmin, I do get a plot. Only fails when cmin is included.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, in matplotlib the min value of the colormap in hist2d plots can be manually set (cmin = value). I can't seem to get that functionality to work with my mplhep.hist2d and get the following error:
after running
mplhep.hist2dplot(data,cmap = 'turbo', cmin=0)
When I don't include a cmin, I do get a plot. Only fails when cmin is included.
Beta Was this translation helpful? Give feedback.
All reactions