def get_cb_plot(cb, plot=None):
plot = plot or cb.plot<EOL>if isinstance(plot, GeoOverlayPlot):<EOL><INDENT>plots = [get_cb_plot(cb, p) for p in plot.subplots.values()]<EOL>plots = [p for p in plots if any(s in cb.streams and getattr(s, '<STR_LIT>', False)<EOL>for s in p.streams)]<EOL>if plots:<EOL><INDENT>plot = plots[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>return plot<EOL>
Finds the subplot with the corresponding stream.