title: Python Plot: How to denote ticks on the axes as powers?
body: <p>I work on a plot in <code>python</code> using the <code>matplot</code> library. The numbers which I have to generate are very big, so also the ticks on the axes are a large numbers and take a lot of space. I was trying to present them as a powers (for example instead having a tick 100000000 I want to have 10^8). I used command: <code>ax.ticklabel_format(style='sci', axis='x', scilimits=(0,4))</code> however this only created something like this</p>
  
  <p><a href="https://i.stack.imgur.com/69IO5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/69IO5.png" alt="enter image description here"></a></p>
  
  <p>Is there any other solution to have ticks for the plot as: 1 x 10^4, 2 x 10^4, etc or write the value 1e4 as 10^4 at the end of the label's ticks?</p>