plot.py 260 B

123456789101112131415
  1. import click
  2. import pandas as pd
  3. import matplotlib.pyplot as plt
  4. @click.command()
  5. @click.option("--csv", default="result.csv")
  6. def main(csv):
  7. df = pd.read_csv(csv, index_col="seconds")
  8. df.plot()
  9. plt.show()
  10. if __name__ == "__main__":
  11. main()