Separate functions from demo
Removed demo specific label from plot_slopegraph