如何在matplotlib中制作偏移轴?
I want to create two x-axes, one below the other.
I believe I want to base it off this example (which looks like this), but in particular how do I draw this outside (below) the original axes region, and set major_ticks and major_ticklabels?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个例子,
http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html
展示如何将脊柱向外移动。剩下的取决于你想要你的 x 脊柱是什么样的关系(你想要它们连接还是你想要它们彼此独立)。
This example,
http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html
shows how to move the spines outwards. The rest depends on what sort of relation do you want of your x-spines (do you want them linked or do you want them independent of each other).