From 2417a6b7603524dc5cd30d29b153f91024b9443d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 1 Nov 2023 22:54:27 +0100 Subject: Move to Jekyll --- public/posts/dna-sequence/chart-size.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 public/posts/dna-sequence/chart-size.py (limited to 'public/posts/dna-sequence/chart-size.py') diff --git a/public/posts/dna-sequence/chart-size.py b/public/posts/dna-sequence/chart-size.py deleted file mode 100644 index 4fc408d..0000000 --- a/public/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