Hello all,
I am trying to use mplfig parameter of the graph_draw to draw 4 graphs on
the same plot. My code is given below. However, this only produces graphs
in first and second subplots. What am I missing?
import graph_tool.all as gt
import matplotlib.pyplot as plt
plt.switch_backend('cairo')
'''Load a graph'''
g = gt.collection.data['karate']
for ind in range(4):
ax = plt.subplot(2, 2, ind+1)
gt.graph_draw(g, mplfig = ax)
plt.savefig('karate4states.pdf')
Thank you
--
Snehal M. Shekatkar
Pune
India
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool