[英]how to set colorbar ticks to outside
I want to set the ticks of the imshow colorbar outside, I know how to do it to the ticks of the axes, but I do not manage to do it to the ticks of the color bar of the histogram. 我想将imshow彩条的刻度设置在外部,我知道如何将其设置为轴的刻度,但是我无法将其设置为直方图的彩条的刻度。
This is how to make the ticks pointing outside in the axes 这是使刻度线指向轴外侧的方法
tick_params(axis='y', direction='out')
tick_params(axis='x', direction='out')
how do I do it for the colorbar? 我该如何为颜色栏进行设置?
Tahnks 塔恩克斯
Ok, I have found the answer 好,我找到了答案
How do I change matplotlib colorbar tick marks to facing outwards? 如何将matplotlib颜色条刻度线更改为朝外?
I do not know if to keep the post, maybe it would be good for google search... 我不知道是否保留这个帖子,也许对谷歌搜索会很好...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.