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