title: networkx return plot object
body: <p>The following code plots the graph of network</p>
  <pre><code>def draw(self, layout):
      nx.draw_networkx_edge_labels(self, layout, edge_labels = self.edge_labels())
      nx.draw(self, pos = layout,  labels = self.node_labels(), node_color='yellow',
              node_size = 1.2*10**3, width = 2, node_shape = 'o')
  </code></pre>
  <p>Since I need to plot multiple graphs for different phases, I need something like</p>
  <pre><code>def draw(self, layout):
      f, ax = plt.subplots()
      ax = nx.draw_networkx_edge_labels(self, layout, edge_labels = self.edge_labels())
      ax = nx.draw(self, pos = layout,  labels = self.node_labels(), node_color='yellow',
              node_size = 1.2*10**3, width = 2, node_shape = 'o')
      return ax
  </code></pre>
  <p>so that I can generate subplots. How to return it as plot object so that I can use it as subplots of <code>matplotlib</code>. Also note that there are two plots, one for edge labels and other for graph.</p>