2015-12-03 41 views
1

如何獲得圖形功能(http://bokeh.pydata.org/en/latest/docs/reference/plotting.html#bokeh.plotting.Figure如何獲取figure()函數的所有參數?

的參數我已經檢查

  1. bokeh.models.plots.Plot(http://bokeh.pydata.org/en/latest/docs/reference/models/plots.html#bokeh.models.plots.Plot

  2. bokeh.models.widget的文檔。窗口小部件

  3. 和源代碼https://github.com/bokeh/bokeh/tree/master/bokeh

發現沿着繼承鏈中的人物的參數不完整列表,

例如,我怎麼能找到參數

x_axis_label='datetime' 

從源代碼/文檔

回答

2

UPDATE:

所有這些參數現在已完整記錄,請參閱:

http://bokeh.pydata.org/en/latest/docs/reference/plotting.html#options


截至0.10,還有,我們尚未能的文檔自動化「kwarg」參數屈指可數。有以編程方式找到他們沒有什麼好辦法,但你可以在這裏看到所有的人:

https://github.com/bokeh/bokeh/blob/master/bokeh/plotting.py#L41

別的是一個標準的屬性,將在自動化的參考文檔顯示出來。但「額外」參數列表可以歸結爲:

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的問題,要求圍繞這些參數,我們將不勝感激更好的文檔自動化。

+0

我認爲現在鏈接在這裏:https://github.com/bokeh/bokeh/blob/master/bokeh/plotting/figure.py? – wordsforthewise

相關問題