Skip to content

Instantly share code, notes, and snippets.

@LinuxIsCool
Created September 26, 2024 17:07
Show Gist options
  • Save LinuxIsCool/c38101102965ac9fd743118324cf5fe1 to your computer and use it in GitHub Desktop.
Save LinuxIsCool/c38101102965ac9fd743118324cf5fe1 to your computer and use it in GitHub Desktop.
Simplest line between two points in hvplot and holoview
import pandas as pd
import holoviews as hv
import hvplot.pandas
hv.Points((1,1)).opts(size=10) * hv.Points((2,2)).opts(size=10) * pd.DataFrame([[1,1],[2,2]]).hvplot.line(x='0',y='1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment