1
Q
Pylab文檔
A
回答
4
pylab基本上只是Numpy和Matplotlib統一命名空間下。瞭解其中的任何一個,你就會理解Pylab。
如果您想在腳本中繪製事物,通常最好使用import matplotlib.pyplot
而不是import pylab
,但真正的選擇取決於您。
如果你想有交互式繪圖(例如,通過調用ipython --pylab
),那麼pylab是要走的路。但是pyplot
也可以使用pyplot.ion()
進行交互模式。
一些更多的信息可以在這裏找到:
What is the difference between pylab and pyplot?
Exact semantics of Matplotlib's "interactive mode" (ion(), ioff())?
相關問題
- 1. Pylab/Matplotlib圖形
- 2. 什麼是%pylab?
- 3. from pylab import plot
- 4. Pylab與表
- 5. 如何pylab
- 6. Tkinter/pylab衝突?
- 7. ipython --pylab vs ipython
- 8. Pylab升級後
- 9. Matplotlib Pylab Loadtxt錯誤
- 10. pylab scilimits不工作
- 11. 繪製使用pylab
- 12. Pylab - 基於RGB軸
- 13. PHP和導入pylab
- 14. PyLab中的插值
- 15. 無法導入pylab?
- 16. pylab在WX應用
- 17. matplotlib.pyplot/pylab沒有更新數字而isinteractive(),使用ipython -pylab
- 18. Pylab不「畫」條帶的0
- 19. Matplotlib + Pylab導入錯誤
- 20. Ipython/pylab/matplotlib繪圖錯誤
- 21. pylab情節不顯示?
- 22. 用numpy和pylab繪圖
- 23. 導入Pylab時出錯
- 24. pylab繪圖圖例錯誤
- 25. IPython的失敗調用pylab
- 26. Anaconda:無法導入pylab
- 27. ipython notebook pylab fig size running two?
- 28. 我如何使用pylab
- 29. pylab plot顯示漸近線
- 30. python pylab plot正態分佈
我已經試過pyplot。我想更新我的圖表和一個問題在這裏SO說交互式圖/我必須看pylab,因此我想了解更多關於它的信息。 –
我已將更多信息添加到我的答案中。如果您已經可以使用'matplotlib',那麼您學習使用'pylab'沒有什麼特別的新東西。絕大多數命令是相同的。 – ebarr