Python Visualization — Multiple Line Plotting
3 min readDec 2, 2018
Multiple line plotting is easy to do in Python. There are many ways people can do this with various Python visualization tools, e.g., matplotlib, seaborn, bokeh, holoviews, and hvplot. Here I am demonstrating how I plot multiple lines in bokeh and hvplot. For your reference, the package versions I used for this article are: Python 3.8.2, hvplot 0.6.0, and bokeh 2.1.0.
To get started, let’s create a very simple dataset with three variables — x, y, and group.
import numpy as np
import pandas as pd