pm21-dragon/exercises/source/exercise-07/plot_pcr_data.py

10 lines
269 B
Python
Raw Normal View History

2024-11-29 02:39:51 -05:00
import sys
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
csv_filename = sys.argv[1]
df = pd.read_csv(csv_filename)
sns.lineplot(data=df, x="cycle", y="fluorescence", hue="well")
png_filename = csv_filename + ".png"
plt.savefig(png_filename)