plot.py 258 B

12345678910111213
  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()