Step#
import hvplot.pandas # noqa
step
can be used pretty much anytime line might be used and has many of the same options available.
from bokeh.sampledata.degrees import data as deg
deg.sample(n=5)
Year | Agriculture | Architecture | Art and Performance | Biology | Business | Communications and Journalism | Computer Science | Education | Engineering | English | Foreign Languages | Health Professions | Math and Statistics | Physical Sciences | Psychology | Public Administration | Social Sciences and History | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | 1993 | 34.946832 | 35.777159 | 60.2 | 51.124844 | 47.639332 | 58.7 | 28.5 | 77.267312 | 14.9 | 65.730950 | 70.0 | 82.4 | 46.4 | 33.6 | 73.1 | 78.0 | 46.1 |
31 | 2001 | 45.866015 | 40.690282 | 59.4 | 60.712331 | 50.275145 | 63.0 | 27.6 | 77.375229 | 19.0 | 68.578520 | 71.2 | 85.1 | 47.0 | 42.2 | 77.5 | 80.9 | 51.7 |
16 | 1986 | 31.198719 | 37.240223 | 62.1 | 48.300678 | 46.532915 | 60.0 | 34.7 | 76.143015 | 13.9 | 65.982561 | 71.2 | 85.7 | 46.7 | 28.4 | 69.0 | 75.7 | 44.0 |
19 | 1989 | 31.612403 | 39.096540 | 62.0 | 50.774716 | 46.781565 | 60.5 | 29.9 | 78.111919 | 14.1 | 67.017072 | 72.4 | 84.6 | 46.2 | 31.3 | 71.6 | 76.0 | 44.2 |
2 | 1972 | 7.420710 | 13.214594 | 60.4 | 29.810221 | 10.558962 | 36.6 | 14.9 | 73.554520 | 1.2 | 63.664263 | 74.6 | 76.9 | 40.2 | 14.8 | 47.6 | 62.6 | 36.1 |
deg.hvplot.step(x='Year', y=['Art and Performance', 'Business', 'Biology', 'Education', 'Computer Science'],
value_label='% of Degrees Earned by Women', legend='top', height=500, width=620)