I have a pandas dataframe with columns labeled...
x
y
true_x
true_y
I would like to plot a curve of true_x
vs true_y
overlaid with
points y
vs x
.
The tutorials leave me baffled since they only describe simple 2D and 3D examples.
We're about to start working extensively on additional documentation so that's good feedback. To create a simple plot like that simply declare a Curve
and a Scatter
object each with the appropriate kdims
and vdims
and overlay them using the mul
operator:
curve = hv.Curve(df, kdims=['true_x'], vdims=['true_y'])
scatter = hv.Scatter(df, kdims=['x'], vdims=['y'])
curve * scatter