在散景中隐藏轴 [英] Hide Axis in Bokeh

查看:69
本文介绍了在散景中隐藏轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何隐藏散景图中的x和y轴? 我已经根据以下内容进行了检查和尝试:

How can I hide both x and y axis in a bokeh plot ? I've checked and tried based on this :

p1= figure (... visible=None)
p1.select({"type": "Axis", "visible": 0})
xaxis = Axis(plot=p1, visible = 0)

和喜欢 http://docs.bokeh.org/en/latest/docs/user_guide/styling.html#axes

推荐答案

创建图形对象.
因此,在您的示例中,图形对象为p1, 然后p1.axis.visible = False
如果要指定y或x轴,请使用 p1.xaxis.visible = Falsep1.yaxis.visible = False

Create a figure object.
So, in your example the figure object is p1, then p1.axis.visible = False
If you want to specify a y or x axis, then use p1.xaxis.visible = False or p1.yaxis.visible = False

这篇关于在散景中隐藏轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆