-
-
Save amankharwal/ce15f4809c98831fc32965e3c2bc4ca8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MI_runs = MI.groupby('over').sum() | |
MI_runs.reset_index(inplace=True) | |
CSK_runs = CSK.groupby('over').sum() | |
CSK_runs.reset_index(inplace=True) | |
sns.color_palette("Paired") | |
#sns.set(rc={'axes.facecolor':'cornflowerblue', 'figure.facecolor':'cornflowerblue'}) | |
#sns.set(style="whitegrid") | |
#fig, ax =plt.subplots(1,2,figsize=(12, 8)) | |
f = plt.figure(figsize=(12, 8)) | |
gs = f.add_gridspec(1, 2) | |
with sns.axes_style("darkgrid"): | |
sns.set_context("notebook", font_scale=1.2, rc={"lines.linewidth": 3.5}) | |
ax = f.add_subplot(gs[0, 0]) | |
g1 = sns.barplot(x='over', y='runs', data=MI_runs); | |
g1.set_facecolor("#005ea0") | |
g1.set_yticks(range(0,18,2)) | |
g1.set_ylim(0,18) | |
g1.axes.set_title("MI Innings",fontsize=20) | |
g1.set_xlabel("Overs",fontsize=18) | |
g1.set_ylabel("Runs",fontsize=18) | |
with sns.axes_style("whitegrid"): | |
ax = f.add_subplot(gs[0, 1]) | |
g2 = sns.barplot(x='over', y='runs', data=CSK_runs); | |
ax.set_facecolor("#fded13") | |
ax.set_title('CSK Innings', color ="#fdb913") | |
g2.set_yticks(range(0,18,2)) | |
g2.set_ylim(0,18) | |
g2.axes.set_title("CSK",fontsize=20) | |
g2.set_xlabel("Overs",fontsize=18) | |
g2.set_ylabel("Runs",fontsize=18) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment