Created
July 9, 2021 19:57
-
-
Save Padhma/3329a515254e3627f44fe3c4743185e2 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='Star', y='Fork', color='purple'); | |
# set x and y-axis labels and title | |
ax.set_xlabel('Star', fontsize=13, color = '#333F4B') | |
ax.set_ylabel('Fork', fontsize=13, color = '#333F4B') | |
fig.suptitle('Relationship between Star and Fork',fontsize=18, color = '#333F4B'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment