import pandas as pdimport seaborn as snsimport matplotlib.pyplot as pltresults = pd.DataFrame.from_records(results, columns=['size', 'nbytes', 'timing'])key ='Gigabytes Per Second'results[key] = DATA_SIZE / results['timing'] / MEGABYTE /1024resultsfig = plt.figure(figsize=(12, 6))title ='Streaming data throughput by chunksize'g = sns.factorplot(x=key, y='size', data=results, kind='bar', orient='h', size=10)g.despine(left=True)#g.fig.get_axes()[0].set_xscale('log', basex=2)g.fig.set_size_inches(12, 4)plt.title(title)g.fig.set_tight_layout(True)plt.savefig('arrow_streaming_benchmarks.png')
<matplotlib.figure.Figure at 0x7f9175f7f5f8>
/home/wesm/anaconda3/lib/python3.5/site-packages/matplotlib/figure.py:1744: UserWarning: This figure includes Axes that are not compatible with tight_layout, so its results might be incorrect.
warnings.warn("This figure includes Axes that are not "