I am trying to create a multiline stacked plot from .csv file in matplotlib.
My .csv looks like this:
date person 1 person 2 person 3
3/1/18 45.0 34.0 91.0
3/2/18 88.0 87.0 84.0
3/3/18 56.0 98.0 65.0
3/4/18 34.0 34.0 53.0
3/5/18 56.0 60.0 56.0
This should be simple but I can't get the slicing correct. Here is what I have:
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("test.csv")
df.head()
df.plot(xlim=(0, 10)
plt.title('Test')
plt.legend()
plt.show()
I don't want them to be stacked on the same chart. I'd like them to be stacked together like in this link: http://www.k-wave.org/documentation/stackedPlot.php
Would anyone be able to help?
I read through this: Make a multiline plot from .CSV file in matplotlib but not a lot of it is making sense to me because of how this person wanted to plot it. Mine seems more simple and straightforward.

