In [1]:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter
%matplotlib inline
#plt.style.use('seaborn')
from pandas import *
from pandas.io.parsers import read_csv
In [5]:
pod = read_csv('out-cern857-bnlproj.csv', index_col=False, header=0)
#lancs.describe().loc[['count','sum','mean','std']]
#mwt2.describe().loc[['count','sum','mean','std']]
#cern.describe().loc[['count','sum','mean','std']]
len(pod)
Out[5]:
In [6]:
def objsize(x, pos):
'The two args are the value and tick position'
return '{:0.1f}'.format(x)
fig, ax = plt.subplots(figsize=(9, 6))
bins=100
myrange=(0, 2)
pod['Duration'].hist(ax=ax, bins=bins, label=['pod'], alpha=0.5, range=myrange)
ax.set(title='Distribution of transfer duration', xlabel='Duration (s)', ylabel='Count')
formatter = FuncFormatter(objsize)
ax.set_xlim(myrange)
#ax.set_yscale('log')
ax.xaxis.set_major_formatter(formatter)
ax.legend().set_visible(True)
In [ ]: