Is there any way to create a timeline in Python similar to this post using only 1 vizualiation package and no other setup? I have tried to use the plotnine package to use ggplot2 within Python but this is quite cumbersome to get it to work. Furthermore, I have tried the labella package but this requires installation of a Latex distribution. With matplotlib I can't find a way to include the comments next to the event bars.
解决方案
I also had this issue ... and this is my solution. Please ignore the Ugly Color Generation ... this is more of a work in progress.
It is Python 3.6 tested ....
import numpy as np
import matplotlib.pylab as plt
import pandas as pd
from cycler import cycler
from datetime import datetime, timedelta
idx = pd.date_range('2018-1-1', '2018-9-10', freq='1D')
df =