'How to make "two-sided-logarithmic" or custom axes-scale in matplotlib or seaborn?

I would like to produce a plot with axes like they are produced by the sklearn.metrics DetCurveDisplay function

https://scikit-learn.org/stable/modules/generated/sklearn.metrics.DetCurveDisplay.html

I just can figure out the way to get it done. It looks symmetrical logarithmic with a center at 50%, but I don't know how to define this or make e.g. plt.scale('symlog') work with it.

Anyone an idea? Thanks a lot in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source