Skip to content

Instantly share code, notes, and snippets.

@followcrom
Created January 10, 2023 13:14
Show Gist options
  • Select an option

  • Save followcrom/46d93ca6544cae7ce2c5dfa2e39a28fb to your computer and use it in GitHub Desktop.

Select an option

Save followcrom/46d93ca6544cae7ce2c5dfa2e39a28fb to your computer and use it in GitHub Desktop.
notebook
fig, ax1 = plt.subplots(figsize=(12,6))
plt.title("Popularity / Release Density by Year", fontsize=12)
lin=sns.lineplot(x='year', y='popularity', data=raw_df, color='b', ax=ax1)
plt.xlabel('Year')
plt.ylabel('Popularity')
ax2 = ax1.twinx()
sns.kdeplot(raw_df.year, color='r', fill=True, ax=ax2)
lin.set_xlim(left=1920, right=2022);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment