hvplot

0.12.2 · active · verified Mon Apr 13

hvplot is a high-level plotting API for the PyData ecosystem built on HoloViews. It provides a familiar API, similar to Pandas' `.plot()` method, to generate interactive and compositional plots from various data structures like Pandas DataFrames, Xarray DataArrays, Dask, GeoPandas, and Polars. It supports Bokeh (default), Matplotlib, and Plotly backends and is actively developed with frequent patch releases and minor versions.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import hvplot for Pandas DataFrames and create a basic interactive line plot using the familiar `.hvplot` accessor.

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

df = pd.DataFrame(
    np.random.randn(100, 4), 
    index=pd.date_range('1/1/2000', periods=100),
    columns=list('ABCD')
).cumsum()

df.hvplot.line(y='A', title='Interactive Line Plot of Column A')

view raw JSON →