I wish this helpful for you It not taking effect because ax.ticklabel_format takes any keyword argument and creates a dictionary. To see this take a look at the documentation here and you will see it takes an argument **kwargs. If you just replace styl with style then your code will work. I suggest you take a look at this SO post to get a feel of what was going wrong but in brief: the function can take any argument. It then attempts to pass these on to other functions. If none of these require it then the argument is simply lost in the ether. As a result there is no error message!
With these it helps After a lot of experimenting with tab completions and matplotlib documentation, I could only come up with the following alternative. The idea is simple: Hide the exponent term which is the offsetText. Replace it with a simple text in horizontal layout.