Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. from igraph import *
  2.  
  3. g = Graph()
  4. g.add_vertices(3)
  5. g.add_edges([(1,0),(0,2),(1,2)])
  6. plot(g)
  7.  
  8. Pavithrans-MacBook-Pro:LDPC pavithran$ python simplePlot.py
  9. Traceback (most recent call last):
  10. File "simplePlot.py", line 6, in <module>
  11. plot(g)
  12. File "/Library/Python/2.7/site-packages/igraph/drawing/__init__.py", line 458, in plot
  13. result = Plot(target, bbox, background="white")
  14. File "/Library/Python/2.7/site-packages/igraph/drawing/__init__.py", line 129, in __init__
  15. self._surface_was_created = not isinstance(target, cairo.Surface)
  16. File "/Library/Python/2.7/site-packages/igraph/drawing/utils.py", line 396, in __getattr__
  17. raise TypeError("plotting not available")
  18. TypeError: plotting not available
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement