Reputation: 1031
I've been following along with this tutorial, using my own data set. I can get the plots to show, but they don't look as nice as the ones in that website.
For comparison, here's one I'm getting:
and here is one in their example:
I had to add plt.show()
to get my plot to show, so is this what's causing it? It seems like theirs is a ggplot and mine is off of matplotlib, so I'm guessing that's the root of the cause. However, I just can't get my plots to show without adding that line, so I'm not sure what to do. This will be for a report, so I'd really like to get the nicer looking plots.
Upvotes: 0
Views: 100
Reputation: 85512
Install seaborn, import it:
import seaborn
and do your plot again.
Also, turn on the inline mode for matplotlib in the notebook:
%matplotlib inline
Alternatively use:
%matplotlib notebook
for zoomable plots.
Plot before:
Plot after:
these steps.
Upvotes: 2