def plot_route_network_from_gtfs(g, ax=None, spatial_bounds=None, map_alpha=<NUM_LIT>, scalebar=True, legend=True,<EOL>return_smopy_map=False, map_style=None):
assert(isinstance(g, GTFS))<EOL>route_shapes = g.get_all_route_shapes()<EOL>if spatial_bounds is None:<EOL><INDENT>spatial_bounds = get_spatial_bounds(g, as_dict=True)<EOL><DEDENT>if ax is not None:<EOL><INDENT>bbox = ax.get_window_extent().transformed(ax.figure.dpi_scale_trans.inverted())<EOL>width, height = bbox.width, bbox.height<EOL>spatial_bounds = _expand_spatial_bounds_to_fit_axes(spatial_bounds, width, height)<EOL><DEDENT>return plot_as_routes(route_shapes,<EOL>ax=ax,<EOL>spatial_bounds=spatial_bounds,<EOL>map_alpha=map_alpha,<EOL>plot_scalebar=scalebar,<EOL>legend=legend,<EOL>return_smopy_map=return_smopy_map,<EOL>map_style=map_style)<EOL>
Parameters
----------
g: A gtfspy.gtfs.GTFS object
    Where to get the data from?
ax: matplotlib.Axes object, optional
    If None, a new figure and an axis is created
spatial_bounds: dict, optional
    with str keys: lon_min, lon_max, lat_min, lat_max
return_smopy_map: bool, optional
    defaulting to false

Returns
-------
ax: matplotlib.axes.Axes