Skip to content

Instantly share code, notes, and snippets.

#create string variable for Year
r['new_year'] = r.Year.astype('str')
#set colors for different plot type
colors1=sns.color_palette('husl', 8) #number represents how many things being plotted
#create plot in a different way so can enable markers specific to each MACOM
#can mess with the height and width using the figsize=
fig, ax = plt.subplots(figsize=(8, 4))