Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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