How do I align gridlines for two y-axis scales using Matplotlib?

前端 未结 7 1512
遇见更好的自我
遇见更好的自我 2020-11-29 00:16

I\'m plotting two datasets with different units on the y-axis. Is there a way to make the ticks and gridlines aligned on both y-axes?

The first image shows what I ge

相关标签:
7条回答
  • 2020-11-29 01:00

    this has already been properly answered a while ago: trouble aligning ticks for matplotlib twinx axes

    (the answer given in here is not at all working for a general case)

    0 讨论(0)
提交回复
热议问题