img_to_path / plot_path_dots.pyon commit add dlw module; clean up for handover (d7cac70)
   1import numpy as np
   2import sys
   3
   4from matplotlib import pyplot as plt
   5
   6# Get input file path from arguments or use default path
   7if len(sys.argv) > 1 and sys.argv[1]:
   8    input_path = sys.argv[1]
   9else:
  10    input_path = "path.txt"
  11
  12data = np.loadtxt(input_path, delimiter="\t")
  13
  14fig, ax = plt.subplots()
  15for point in data[1:]:
  16    if point[4]:
  17        ax.plot(point[2], point[1], marker='o', color='black')
  18
  19plt.gca().invert_yaxis()
  20
  21plt.show()
  22