From: Benjamin R. <ben...@ou...> - 2012-04-16 21:10:58
|
Thanks to a patch a bit while back for ListedColormap that allowed for alphas to be given, I should now be able to use imshow() and imsave() with colormaps. However, I find that the results are not correct. Particularly, the alpha values seem to be assigned incorrectly. I am still working on making a stand-alone version to demonstrate the problem, but has anyone else noticed this? Note, plt.imshow(d, cmap=cm) produces an incorrect result while plt.imshow(cm(d)) produces a correct result. However, due to a bug in imsave, I can't do the latter as a work-around. Thanks, Ben Root |