title: Non-linear Second Axis in Matplotlib
body: <p>I would like to know if there is a way to add second non-linear x-axis in Matplotlib if one doesnt have any analytical formula. Or to simplify if there is a way to create a distinct label for each number in the original x-axis. The following figure explains what I am looking for. Unfortunately similar <a href="https://stackoverflow.com/questions/27012222/second-non-linear-x-axis-in-matplotlib-from-data">question</a> has been asked before but left unanswered.</p>
  
  <p><a href="https://i.stack.imgur.com/c2pIh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c2pIh.png" alt="enter image description here"></a></p>