![](/img/trans.png)
[英]Python-How to have the axis ticks in both top and bottom, left and right of sns.heatmap
[英]Enabling bokeh y (x) axis ticks on both left and right (top and bottom)
如何在图的两侧同时激活散景轴刻度(不一定有刻度标签或轴标签,尽管这可能也会有所帮助)?
作为参考,在matplotlib中,我将tick_params
(例如bottom
, top
和left
, right
)全部设置为True
。
所述axis_location
参数figure
是用于将一个轴的常见的情况提供了方便。 始终可以使用Plot.add_layout
显式添加多个轴,例如
plot.add_layout(LinearAxis(), 'left')
plot.add_layout(LinearAxis(), 'right')
这里有一个极端的示例,它在这里练习了许多轴和标题的添加:
https://github.com/bokeh/bokeh/blob/master/examples/models/file/panels.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.