import pandas as pd import matplotlib.pyplot as plt import seaborn as sns with open("NC_001802.1.cgr") as cgr: data = list(map(eval, cgr.read().split())) df = pd.DataFrame(data, columns=["X", "Y"]) plt.figure(figsize=(10, 10)) plt.title("NC_001802 CGR Plot") sns.scatterplot(df, x="X", y="Y", alpha=0.5) plt.savefig("NC_001802.1.cgr.png", dpi=150) plt.show()