#NEWLINE# def plot_polygon( poly , symbol = 'k-' , **kwargs ) : #NEWLINE# #INDENT# 'Plots a polygon using the given symbol.' #NEWLINE# for i in range ( poly . GetGeometryCount ( ) ) : #NEWLINE# #INDENT# subgeom = poly . GetGeometryRef ( i ) #NEWLINE# ( x , y ) = zip ( * subgeom . GetPoints ( ) ) #NEWLINE# plt . plot ( x , y , symbol , ** kwargs )