Simple Scatter Plot#

A basic scatter plot using two numeric variables. This example uses random data to demonstrate how to quickly visualize point relationships.

import pandas as pd
import numpy as np
import hvplot.pandas  # noqa

np.random.seed(42)
df = pd.DataFrame({'x': np.random.rand(50), 'y': np.random.rand(50)})

df.hvplot.scatter(x='x', y='y', title='Simple Scatter Plot (Bokeh)')
import pandas as pd
import numpy as np
import hvplot.pandas  # noqa
hvplot.extension('matplotlib')

np.random.seed(42)
df = pd.DataFrame({'x': np.random.rand(50), 'y': np.random.rand(50)})

df.hvplot.scatter(x='x', y='y', title='Simple Scatter Plot (Matplotlib)')
This web page was generated from a Jupyter notebook and not all interactivity will work on this website.