def draw_net_using_node_coords(net):
import matplotlib.pyplot as plt<EOL>fig = plt.figure()<EOL>node_coords = {}<EOL>for node, data in net.nodes(data=True):<EOL><INDENT>node_coords[node] = (data['<STR_LIT>'], data['<STR_LIT>'])<EOL><DEDENT>ax = fig.add_subplot(<NUM_LIT>)<EOL>networkx.draw(net, pos=node_coords, ax=ax, node_size=<NUM_LIT:50>)<EOL>return fig<EOL>
Plot a networkx.Graph by using the lat and lon attributes of nodes.
Parameters
----------
net : networkx.Graph
Returns
-------
fig : matplotlib.figure
    the figure object where the network is plotted