Python隐藏壁虱但显示壁虱标签 [英] Python hide ticks but show tick labels

查看:41
本文介绍了Python隐藏壁虱但显示壁虱标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以用

ax.set_xticks([]) 
ax.set_yticks([]) 

但这也会删除标签.我可以用任何方式绘制刻度标签,但不能绘制刻度和书脊

but this removes the labels as well. Any way I can plot the tick labels but not the ticks and the spine

推荐答案

您可以使用 tick_params ( 查看全文

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