# libraries
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
dpi = 80
fig = plt.figure(dpi = dpi, figsize = (512 / dpi, 384 / dpi) )
# Data
df= pd.DataFrame({'x': range(1,5), 'y1': [5,25,45,20], 'y2': [8,1,29,27], 'y3': [9,29,27,39] })
# multiple line plot
plt.plot( 'x', 'y1', data=df, marker='o', markerfacecolor='blue', markersize=12, color='skyblue', linewidth=4)
plt.plot( 'x', 'y2', data=df, marker='o', markerfacecolor='blue', markersize=12, color='skyblue', linewidth=4)
plt.plot( 'x', 'y3', data=df, marker='o', markerfacecolor='blue', markersize=12, color='skyblue', linewidth=4)
plt.legend()
fig.savefig('trigan.png')
Comments
Leave a comment