From f7d0ba247b7ff81d67dc40f62e860ba1908ddd8b Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Mon, 12 May 2014 11:36:33 +0200 Subject: [PATCH] adds a scatter_points plot function --- uberplot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/uberplot.py b/uberplot.py index 46d073c..59805b8 100644 --- a/uberplot.py +++ b/uberplot.py @@ -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()