Hello, in python I am doing
G = igraph.Graph.Full(10)
igraph.plot(G, bbox = (400,400), layout = G.layout('kk'))
and I getÂ
AttributeError Traceback (most recent call last)
/usr/local/lib/python3.6/site-packages/IPython/core/formatters.py in __call__(self, obj)
309 method = get_real_method(obj, self.print_method)
310 if method is not None:
--> 311 return method()
312 return None
313 else:
/usr/local/lib/python3.6/site-packages/igraph/drawing/__init__.py in _repr_svg_(self)
352 surface.finish()
353 # Return the raw SVG representation
--> 354 return io.getvalue().encode("utf-8")
355
356 @property
AttributeError: 'bytes' object has no attribute 'encode'
I cannot find a match for this in google or stackoverflow. Since I have never used plots of iGraph before in Python I thought was best to ask.
Thanks for helping,
Roberto