Can somebody kindly help me with this? I am completely stuck.

Thank you


On Thu, Jul 27, 2017 at 2:12 PM, Snehal Shekatkar <snehalshekatkar@gmail.com> wrote:
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



--
Snehal M. Shekatkar
Pune
India