如何获取 figure() 函数的所有参数?
How to get all parameters of figure() function?
如何获取图形函数的参数(http://docs.bokeh.org/en/latest/docs/reference/plotting.html#bokeh.plotting.Figure)
我查看了
的文档
bokeh.models.plots.Plot (http://docs.bokeh.org/en/latest/docs/reference/models/plots.html#bokeh.models.plots.Plot)
bokeh.models.widget.Widgets
在继承链上没有找到完整的图形参数列表,
例如,我怎样才能找到参数
x_axis_label='datetime'
来自源代码/文档
更新:
所有这些参数现在都已完整记录,请参阅关键字参数:
http://docs.bokeh.org/en/latest/docs/reference/plotting.html#bokeh.plotting.figure.figure
从 0.10 开始,有少数 "kwarg" 参数我们还不能自动记录。没有通过编程找到它们的好方法,但您可以在这里看到所有这些:
https://github.com/bokeh/bokeh/blob/master/bokeh/plotting.py#L41
其他任何内容都是标准 属性,将显示在自动参考文档中。但是 "extra" 参数列表归结为:
x_range
y_range
x_axis_type
y_axis_type
x_minor_ticks
y_minor_ticks
x_axis_location
y_axis_location
x_axis_label
y_axis_label
如果您可以提出 GitHub 问题来请求围绕这些参数进行更好的文档自动化,我们将不胜感激。
如何获取图形函数的参数(http://docs.bokeh.org/en/latest/docs/reference/plotting.html#bokeh.plotting.Figure)
我查看了
的文档bokeh.models.plots.Plot (http://docs.bokeh.org/en/latest/docs/reference/models/plots.html#bokeh.models.plots.Plot)
bokeh.models.widget.Widgets
在继承链上没有找到完整的图形参数列表,
例如,我怎样才能找到参数
x_axis_label='datetime'
来自源代码/文档
更新:
所有这些参数现在都已完整记录,请参阅关键字参数:
http://docs.bokeh.org/en/latest/docs/reference/plotting.html#bokeh.plotting.figure.figure
从 0.10 开始,有少数 "kwarg" 参数我们还不能自动记录。没有通过编程找到它们的好方法,但您可以在这里看到所有这些:
https://github.com/bokeh/bokeh/blob/master/bokeh/plotting.py#L41
其他任何内容都是标准 属性,将显示在自动参考文档中。但是 "extra" 参数列表归结为:
x_range
y_range
x_axis_type
y_axis_type
x_minor_ticks
y_minor_ticks
x_axis_location
y_axis_location
x_axis_label
y_axis_label
如果您可以提出 GitHub 问题来请求围绕这些参数进行更好的文档自动化,我们将不胜感激。