I'm not sure why, but some problem emerged with some new version of either numpy, matplotlib, or astropy where attempting to imshow quantities with astropy units would through unit conversion errors. This PR (I think!) fixes the problem by stripping units before imshowing them with remove_units.
It also modifies rainbow.imshow to default to .pcolormesh for non-uniform grids, unless being told not to with use_pcolormesh=False.
I'm not sure why, but some problem emerged with some new version of either
numpy
,matplotlib
, orastropy
where attempting toimshow
quantities with astropy units would through unit conversion errors. This PR (I think!) fixes the problem by stripping units before imshowing them withremove_units
.It also modifies
rainbow.imshow
to default to.pcolormesh
for non-uniform grids, unless being told not to withuse_pcolormesh=False
.