I would like to know if some of you knew how to make an irregular custom scale on pyplot.

Here is my basic script:

```
import matplotlib.pyplot as plt
fig, ax= plt.subplots()
ax.set_yticks([0, 5, 27, 40])

```

I would like to have the same space on my y-axis between 0 and 5, and then, the same space between 5 and 27, and then the same between 27 and 40....

Somebody would have the solution?

I tried using logarithmic scale, but it doesn't fit to me, I would prefer a more customed scale.