27 Jul
2017
27 Jul
'17
8:42 a.m.
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