0
A
回答
2
的一種方式,使棍的圖表是與asymmetric error bars有zero width負偏移。這裏有一個例子:
import plotly.plotly as py
from plotly.graph_objs import ErrorY, Scatter
x = [1, 2, 3, 4]
y = [4, 7, 5, 9]
stick_top = [10, 6, 7, 11]
stick_bottom = [6, 4, 3, 4]
error_bar_positive_offset = [si - yi for (yi, si) in zip(y, stick_top)]
error_bar_negative_offset = [yi - si for (yi, si) in zip(y, stick_bottom)]
py.plot([
Scatter(x=x, y=y, mode='markers',
error_y=ErrorY(
symmetric=False,
array=error_bar_positive_offset,
arrayminus=error_bar_negative_offset,
width=0
)
)], filename='stick-chart')
相關問題
- 1. 預棒棒糖上浮動動作按鈕的斷下陰影
- 2. 浮動動作按鈕將在棒棒糖CardView下面
- 3. 浮動按鈕不預棒棒糖版本
- 4. 浮動動作按鈕渲染問題的前棒棒糖版本
- 5. Plotly地圖中的R
- 6. 圖像浮動時浮動浮動
- 7. 真棒WM:移動/調整最大化的浮動窗口
- 8. 爲Plotly圖表
- 9. SearchView不會在android棒棒糖中顯示爲動作視圖
- 10. 在Plotly中嵌入圖像
- 11. 使用Plotly包創建動畫線圖
- 12. 在Sprite Kit中運行棒圖動畫
- 13. 創建棒棒糖圖表中GGPLOT2
- 14. 網絡圖與Plotly
- 15. 文字在div中浮動,左浮動圖像,但不浮在右浮動圖像的div
- 16. ActivityNotFoundException在棒棒堂試圖
- 17. Plotly中的子圖的標題
- 18. Plotly動畫氣泡圖:在圖中沒有數據
- 19. Jupyter使用Plotly的熱圖
- 20. 在Plotly的動畫圖例中製作可持續的選擇
- 21. 浮動圖像
- 22. 浮動圖像
- 23. wordpress中的可滾動浮動圖像
- 24. Plotly在Python中的動畫滑塊
- 25. 打印箱線圖中的R與plotly
- 26. 在css中浮動圖像
- 27. 中心2浮動圖像
- 28. 浮動圖像不能正確浮動
- 29. 浮動底部浮動圖像
- 30. 棒棒糖視圖的波紋效果