You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to generate network topo image and handle it immediately. So, saving a gv.Graph object to png image file and reading it by PIL.Image is wasting time. And could anyone tell me any method to convert a gv.Graph object to numpy.ndarray object in memory but not on hard-disk?
The text was updated successfully, but these errors were encountered:
If I correctly interpret your use case, I think you might try the .pipe()-method of your Graph object (see docs), probably feeding the return value to the PIL.Image.frombytes constructor (docs).
I think a method (new feature) for directly converting a graphviz.Graph object into a numpy.ndarray (two-dimensional bitmap of raster points, I assume) would be out of scope for the graphviz package.
I need to generate network topo image and handle it immediately. So, saving a gv.Graph object to png image file and reading it by PIL.Image is wasting time. And could anyone tell me any method to convert a gv.Graph object to numpy.ndarray object in memory but not on hard-disk?
The text was updated successfully, but these errors were encountered: