Trouble to specify a custom x and y axes scale in matplotlib

Category: python matplotlib scale (1 Views)

I am trying to use matplotlib to reproduce a plot with a similar axis calling of the image below:

Plot to replicate

I was trying to use the ax.set_xscale and ax.set_yscale, but I am unsure which option i should use to make the major ticker to follow the desired pattern e.g

axis x --> 0.1 , 0.3 , 1 , 3 , 10 , 30 .... axis y --> 0.02 , 0.06, 0.1 , 0.2 ,0.6, 1 ,2, 6....

Any ideas on how to accomplish this?

Thanks!

🔴 No definitive solution yet

📌 Solution 1

So I manage to solve the problem

  1. the scale is a log10 scale
  2. I follow this workaround here: How to properly combine a log scale plot with a background image?