Simple Step Chart#
A simple step chart that shows how values change at distinct intervals. This is useful for visualizing step-wise changes such as thresholds or categorical transitions.
import pandas as pd
import hvplot.pandas # noqa
df = pd.DataFrame({
'x': list(range(10)),
'value': [1, 2, 2, 3, 3, 4, 5, 5, 6, 6]
})
df.hvplot.step(x='x', y='value', title='Simple Step Chart (Bokeh)')
import pandas as pd
import hvplot.pandas # noqa
hvplot.extension('matplotlib')
df = pd.DataFrame({
'x': list(range(10)),
'value': [1, 2, 2, 3, 3, 4, 5, 5, 6, 6]
})
df.hvplot.step(x='x', y='value', title='Simple Step Chart (Matplotlib)')
See also
This web page was generated from a Jupyter notebook and not all
interactivity will work on this website.