float_bucket_plot.pl
application/x-perl
Filename: float_bucket_plot.pl
Type: application/x-perl
Part: 2
#!/usr/bin/python3
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
df = pd.read_csv('float_bucket_measure.txt', sep=':')
df.columns = ['function', 'milliseconds']
df['function'] = df['function'].str.strip()
fig, axes = plt.subplots()
sns.violinplot(x='function', y='milliseconds', data=df[df['function'] != 'new1'], ax=axes)
plt.show()