adds a scatter_points plot function

This commit is contained in:
Johann Dreo 2014-05-12 11:36:33 +02:00
commit f7d0ba247b

View file

@ -6,6 +6,7 @@ import matplotlib.pyplot as plot
from matplotlib.path import Path
import matplotlib.patches as patches
import utils
def parse_segments( filename ):
segments = []
@ -35,6 +36,12 @@ def scatter_segments( ax, segments, **kwargs ):
ax.scatter( x,y, s=20, marker='o', **kwargs)
def scatter_points( ax, points, **kwargs ):
x = [i[0] for i in points]
y = [i[1] for i in points]
ax.scatter( x,y, s=20, marker='o', **kwargs)
if __name__=="__main__":
parser = argparse.ArgumentParser()