fix is instance error on Colorbar instance

tests/test_viz.py:test_imshow() throws an error on my system and on hydra.

@hanke this PR seems to fix that, but maybe on your system the original code worked and this one doesn't? If so, can you check and see if this may be caused by different version of e.g. pylab?