Created
July 9, 2021 19:59
-
-
Save Padhma/1d244f16ac20814cf6885bf58c381abb 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
# set figure size and dpi | |
fig, ax = plt.subplots(figsize=(8,4), dpi=100) | |
# set seaborn theme for background grids | |
sns.set_theme('paper') | |
# plot the data | |
sns.regplot(data=github_df, x='Watch', y='Fork', color='purple'); | |
# set x and y-axis labels and title | |
ax.set_xlabel('Watch', fontsize=13, color = '#333F4B') | |
ax.set_ylabel('Fork', fontsize=13, color = '#333F4B') | |
fig.suptitle('Relationship between Watch and Fork',fontsize=18, color = '#333F4B'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment