From 1100562e29f6476448b656dbddd4cf22505523f6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 10 Mar 2024 14:59:14 +0100 Subject: Move back to JBMAFP --- assets/posts/dna-sequence/chart-size.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 assets/posts/dna-sequence/chart-size.py (limited to 'assets/posts/dna-sequence/chart-size.py') diff --git a/assets/posts/dna-sequence/chart-size.py b/assets/posts/dna-sequence/chart-size.py deleted file mode 100644 index 4fc408d..0000000 --- a/assets/posts/dna-sequence/chart-size.py +++ /dev/null @@ -1,28 +0,0 @@ -import csv - -import matplotlib.pyplot as plt -import pandas as pd - -# Read the data -df = pd.read_csv("benchmarks.csv") - -# Settings -plt.title("Encode to FASTA out filesize") -plt.tight_layout(pad=2) -fig = plt.gcf() -fig.set_size_inches(10, 4) - -# Plotting -plt.plot(df["Packages"], df["FASTA file size (KB)"], label = "Raw", color="black", linestyle="-") -plt.plot(df["Packages"], df["FASTA gzipped (KB)"], label = "Gzipped", color="black", linestyle="--") - -# Adding x and y axis labels -plt.xlabel("Size of an input file", fontstyle="italic") -plt.ylabel("File size (KB)", fontstyle="italic") - -# Legend -legend = plt.legend() -legend.get_frame().set_linewidth(0) - -# Export as SVG -plt.savefig("chart-size.svg", format="svg") -- cgit v1.2.3