1

I am trying to build a plot that looks like this:
target plot image

I care about the x-axis intervals. How do I "zoom" in on a certain interval (here it is 1M - 5M) and then go back to smaller intervals for the rest?
Thanks

phibiz
  • 37
  • 1
  • 6
  • 2
    If that's not one of the traditional scales, like log and the like, you're probably going to have to create a custom scale. You need something to transform from and to this scale. See https://stackoverflow.com/questions/43463431/custom-logarithmic-axis-scaling-in-matplotlib – K.Cl Apr 13 '21 at 21:39
  • 2
    See also https://matplotlib.org/stable/api/scale_api.html#matplotlib.scale.FuncScale – K.Cl Apr 13 '21 at 21:41
  • Thanks @K.Cl, exactly what I needed – phibiz Apr 16 '21 at 15:04

0 Answers0