2014-09-01 32 views
2

有沒有人知道模塊插圖http://fillplots.readthedocs.org)?我已經成功安裝它,但當我運行一些簡單的代碼http://fillplots.readthedocs.org/en/latest/examples.htmlPython中的fillplots模塊

from fillplots import plot_regions 
plotter = plot_regions([ 
    [(lambda x: x ** 2,), # x^2 > 0 and 
    (lambda x: x + 5,)], # x + 5 > 0 
]) 

沒有任何反應。我如何看到這張照片?該軟件包的文檔非常差,我不知道我應該做什麼。有沒有其他的方法來繪製這個區域,這是一個給定的不平等系統的解決方案?

回答

2

如果導入pyplot事先

import matplotlib.pyplot as plt 

那麼你所謂的繪圖儀後,你可以做

plt.show() 

和圖將顯示。