You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
403 B
13 lines
403 B
4 years ago
|
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")
|