且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用子图获取图形中的刻度

更新时间:2023-11-21 14:55:28

白色 seaborn 风格正在关闭蜱虫.您可以改为使用

The white seaborn style is turning off the ticks. You can instead choose the ticks style with

sns.set_style("ticks")

默认情况下,这将使刻度向外.要手动添加向内的刻度,您可以执行以下操作

by default this will have the ticks going outwards. To manually add ticks going inward you can do something like

sns.set_style("white", {'xtick.direction': u'in', 'xtick.major.size': 5.0, 'xtick.minor.size': 2.0,
                        'ytick.direction': u'in', 'ytick.major.size': 5.0, 'ytick.minor.size': 2.0})