Time-Series Step Plot#
A step plot to visualize values that change at discrete time intervals. This is useful for state transitions, pricing tiers, or events that update periodically.
import hvplot.pandas # noqa
df = hvplot.sampledata.apple_stocks("pandas").set_index("date").loc["2024-01-01": "2024-03-31"]
df.hvplot.step(
y="open",
ylabel="Opening Price ($)",
title="Time-Series Step Plot (Bokeh)",
)
import hvplot.pandas # noqa
hvplot.extension("matplotlib")
df = hvplot.sampledata.apple_stocks("pandas").set_index("date").loc["2024-01-01": "2024-03-31"]
df.hvplot.step(
y="open",
ylabel="Opening Price ($)",
title="Time-Series Step Plot (Matplotlib)",
)
See also
This web page was generated from a Jupyter notebook and not all
interactivity will work on this website.