Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from igraph import *
- g = Graph()
- g.add_vertices(3)
- g.add_edges([(1,0),(0,2),(1,2)])
- plot(g)
- Pavithrans-MacBook-Pro:LDPC pavithran$ python simplePlot.py
- Traceback (most recent call last):
- File "simplePlot.py", line 6, in <module>
- plot(g)
- File "/Library/Python/2.7/site-packages/igraph/drawing/__init__.py", line 458, in plot
- result = Plot(target, bbox, background="white")
- File "/Library/Python/2.7/site-packages/igraph/drawing/__init__.py", line 129, in __init__
- self._surface_was_created = not isinstance(target, cairo.Surface)
- File "/Library/Python/2.7/site-packages/igraph/drawing/utils.py", line 396, in __getattr__
- raise TypeError("plotting not available")
- TypeError: plotting not available
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement