Python: Bokeh Plotting 设置垂直轴(Y 轴)使用函数作为刻度

Python: Bokeh Plotting Setting the Vertical Axis (Y-axis) Using Function as Scale

我想使用 Bokeh 创建一个 weibull 概率图。 根据参考资料(链接如下),

https://www.itl.nist.gov/div898/handbook/eda/section3/weibplot.htm

威布尔概率图的 y 轴有一个标度为:ln(-ln(1-p)) 的轴。 假设我已经定义了一个函数(它是反函数),

import numpy as np

def forward(X):
    return np.log(-np.log(1 - X))

def inverse(Y):
    return 1 - np.exp(-np.exp(Y))

使用 matplotlib.pyplot(来自 https://matplotlib.org/stable/gallery/scales/scales.html),我可以使用这些函数在 pyplot 上设置 y 轴的刻度,

import matplotlib.pyplot as plt

fig, ax = .........
ax.set_yscale('function', functions=(forward, inverse))

如何在 Bokeh 上实现(使用函数设置 y 轴刻度)?

缩放应用程序实际上发生在 JavaScript 浏览器中,而不是任何 Python 代码中。因此,没有 Python 函数与关于 Bokeh 的问题相关。从版本 2.3.1 开始,BokehJS 客户端库仅支持分类、线性和(标准)对数刻度。