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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37 | 2007 | 47.605026 | 43.100459 | 61.4 | 59.411993 | 49.000459 | 62.5 | 17.6 | 78.721413 | 16.8 | 67.874923 | 70.2 | 85.4 | 44.1 | 40.7 | 77.1 | 82.1 | 49.3 |
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 |
33 | 2003 | 47.935187 | 42.758543 | 61.1 | 62.169456 | 50.345598 | 64.6 | 25.1 | 78.544948 | 18.8 | 68.894487 | 70.6 | 86.5 | 46.0 | 41.7 | 77.8 | 81.5 | 50.9 |
21 | 1991 | 34.711837 | 33.679881 | 62.1 | 51.468805 | 47.224325 | 60.8 | 28.7 | 78.991246 | 14.0 | 66.241475 | 71.1 | 83.5 | 47.0 | 32.6 | 73.2 | 78.2 | 45.5 |
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 |
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)