colorbar scientific notation exponent won't go away
5 次查看(过去 30 天)
显示 更早的评论
Hi
I've got a square matrix and I'm using imshow and colorbar to plot it. The values are small, so colorbar naturally uses x10^-3 notation, however, when I set the colorbar location to 'southoutside', it appears the "x10^-3" remains behind the image.
I can tell this because I'm setting the image alphadata to transparent in certain regions.
I tried a workaround via changing the colorbar XTickLabel to the explicit string {'0.004, 0.008, 0.012'}, but neither of these "x10^-3" texts go away! It seems that moving the colorbar doesn't remove the old one, it just creates a new one in a new position.
As you can see, I've manually set the tick labels. I just want to get rid of the "x10^-3" texts.
Is this perhaps a bug? Changing the colorbar location is not moving it, it's apparently creating a new colorbar in that location and failing to delete all the aspects of the old one.
Regards, Mike
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!