Created
March 26, 2024 16:13
-
-
Save LinuxIsCool/ab5b9e0f8bafdeadd5ec3aec609537c2 to your computer and use it in GitHub Desktop.
Modifying legend positions in hvplot
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
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