bachelor_thesis_proposal/scripts/keyswitches_brands.py

13 lines
403 B
Python
Raw Permalink Normal View History

2020-10-23 11:35:22 +02:00
import seaborn as sns
import matplotlib.pyplot as mp
from pandas import read_csv
sns.set_theme(style="white", color_codes=True)
sns.set_palette("colorblind")
switches = read_csv("../data/keyswitches_brands.csv")
axis = sns.countplot(data=switches, x="actuation_force")
axis.set(ylabel="Number of available Keyswitches", xlabel="Actuation force ± 2 g")
mp.savefig("../images/keyswitches_brands.png")