I am using twin_x() to create a plot with shared twin axes. To create a MWE, I used an 
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 
