adds a scatter_points plot function
This commit is contained in:
parent
b3b3e17100
commit
f7d0ba247b
1 changed files with 7 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue