img_to_path / plot_path.pyon commit add dlw module; clean up for handover (d7cac70)
   1import numpy as np
   2import sys
   3
   4from matplotlib import pyplot as plt
   5
   6data = np.loadtxt("path.txt", delimiter="\t")
   7
   8fig, ax = plt.subplots()
   9point_a = data[0]
  10for point_b in data[1:]:
  11    if point_b[4]:
  12        ax.plot([point_a[2], point_b[2]], [point_a[1], point_b[1]], color='black')
  13    point_a = point_b
  14
  15plt.gca().invert_yaxis()
  16
  17plt.show()
  18