Module 12
Creating plots
Visualizing your results.
Visualizing results
After analysis, you can create plots to visualize the results.
import matplotlib.pyplot as plt
genes = ["Tv01", "Tv02", "Tv03"]
gc_values = [54.2, 48.1, 60.0]
plt.bar(genes, gc_values)
plt.title("GC content")
plt.ylabel("GC%")
plt.savefig("gc_plot.png")
print("Plot saved")Your task
Plot results
- Create a bar chart of GC content.