Added a seaborn line chart example
parent
4b08850756
commit
2dca458c16
@ -0,0 +1,15 @@
|
||||
import seaborn as sns
|
||||
import pandas as pd
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
years = [year for year in range(1950, 2020, 10)]
|
||||
gdp = [300.2, 543.3, 1075.9, 2862.5, 5979.6, 10289.7, 14958.3]
|
||||
|
||||
data = pd.DataFrame(data=gdp, index=years, columns=["gdp"])
|
||||
|
||||
sns.set(style="darkgrid")
|
||||
|
||||
sns.lineplot(data=data, markers="o")
|
||||
plt.xlabel("Years")
|
||||
plt.ylabel("Billions of $")
|
||||
plt.show()
|
@ -1,2 +1,3 @@
|
||||
matplotlib==3.0.2
|
||||
black
|
||||
seaborn==0.9.0
|
Loading…
Reference in New Issue