Whenever I'm making subplots, I'm used to making each plot individually and combining them all in a list.
Pandas is really cool because, with just one simple line of code, I can make a figure that contains histograms of all the features of a dataset:
hist_plot = iris.hist(alpha=0.4, figsize=(10,6))
However, I'm stumped on how to make changes to this figure. For example:
- Making each plot a different color:
color = ['blue', 'red', 'green', 'purple'] - Giving each plot a different title:
title = ['SLength', 'SWidth', 'PLength', 'PWidth'] - Adding "Frequency" label to each y axis
Is there a way to do this without having to make each plot individually? I tried this as an example, but it didn't work:
hist_plot = iris.hist(color = ['blue', 'red', 'green', 'purple'], alpha=0.4, figsize=(10,6))

