In [ ]:
from __future__ import division
%matplotlib inline
#import nds2
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('seaborn-talk')
#import matplotlib.mlab as mlab
#import scipy.signal as sig
import scipy.constants as const
import pandas as pd
#from matplotlib import rc
#rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
## for Palatino and other serif fonts use:
plt.rcParams['font.family'] = 'Palatino'
plt.rcParams['font.size'] = 18
plt.rcParams['axes.labelsize'] = plt.rcParams['font.size']
plt.rcParams['axes.titlesize'] = 1.5*plt.rcParams['font.size']
plt.rcParams['legend.fontsize'] = plt.rcParams['font.size']
plt.rcParams['xtick.labelsize'] = plt.rcParams['font.size']
plt.rcParams['ytick.labelsize'] = plt.rcParams['font.size']
#plt.rcParams['savefig.dpi'] = 2*plt.rcParams['savefig.dpi']
#plt.rcParams['xtick.major.size'] = 3
#plt.rcParams['xtick.minor.size'] = 3
#plt.rcParams['xtick.major.width'] = 1
#plt.rcParams['xtick.minor.width'] = 1
#plt.rcParams['ytick.major.size'] = 3
#plt.rcParams['ytick.minor.size'] = 3
#plt.rcParams['ytick.major.width'] = 1
#plt.rcParams['ytick.minor.width'] = 1
plt.rcParams['legend.loc'] = 'best'
#plt.rcParams['axes.linewidth'] = 1
plt.rcParams['text.usetex'] = True
In [ ]:
fname = 'Data/FedResearch_by_Discipline.xlsx'
# how to fix the date string so that it has 4 digits for the year?
df = pd.read_excel(fname)
#df = df.sort_values(by='Date')
df.head()
In [ ]:
df.plot(x='Data', figsize=(12,7))
#df.plot(y='Physical Science', x='Data')
#plt.ylabel('Rupees per USD')
plt.show()
In [ ]:
In [ ]:
In [ ]: