开发者

How to make offset axes in matplotlib?

开发者 https://www.devze.com 2023-04-12 08:29 出处:网络
I want to create two x-axes, one 开发者_如何学JAVAbelow 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 origi

I want to create two x-axes, one 开发者_如何学JAVAbelow 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?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号