import numpy as np import sys from matplotlib import pyplot as plt # Get input file path from arguments or use default path if len(sys.argv) > 1 and sys.argv[1]: input_path = sys.argv[1] else: input_path = "path.txt" data = np.loadtxt(input_path, delimiter="\t") fig, ax = plt.subplots() for point in data[1:]: if point[4]: ax.plot(point[2], point[1], marker='o', color='black') plt.gca().invert_yaxis() plt.show()