Home > database >  How to move exponent label with spine in matplotlib twin_x plot?
How to move exponent label with spine in matplotlib twin_x plot?

Time:08-03

I am using twin_x() to create a plot with shared twin axes. To create a MWE, I used an Diagram of the label I want to move

CodePudding user response:

You can do this by getting the text of the second axis and setting it to the position of the second axis. .set_position(1.2,1.1) can be set arbitrarily, you can adjust it yourself. This answer is based on enter image description here

  • Related