Skip to content

Instantly share code, notes, and snippets.

@LinuxIsCool
Created March 26, 2024 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LinuxIsCool/ab5b9e0f8bafdeadd5ec3aec609537c2 to your computer and use it in GitHub Desktop.
Save LinuxIsCool/ab5b9e0f8bafdeadd5ec3aec609537c2 to your computer and use it in GitHub Desktop.
Modifying legend positions in hvplot
import pandas as pd
import hvplot.pandas
df = pd.DataFrame({'x':range(10),'y':range(10), 'z':range(10)})
df.hvplot.step(x='x').opts(legend_position='top_left')
df = pd.DataFrame({'x':range(10),'y':range(10),'z':range(10)})
df.hvplot.line(x='x', legend='left')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment