Skip to content Skip to sidebar Skip to footer

Matplotlib Style Not Working In Pandas Bar Plot

The code I used to produce the bar plot as per pandas Visualization tutorial. import pandas as pd import matplotlib.pyplot as plt import numpy as np plt.style.use('ggplot') np.r

Solution 1:

As ali_m pointed out in the comments, it is the bug in the latest version of pandas (0.17.1) when using matplotlib version 1.5.0.

The fix will be in the next pandas release.

Until the new release is out, I ran

pip install git+git://github.com/pydata/pandas.git@master

in my conda environment to get the latest fixes.

Solution 2:

This bug seems to be fixed now. I get vermillion bars when I run the code in the original question.

Post a Comment for "Matplotlib Style Not Working In Pandas Bar Plot"