Skip to content

Bar plot does not respect axes.prop_cycle in matplotlib 1.5 #11735

Closed
@maxnoe

Description

@maxnoe

Using pandas 0.17.1 with matplotlib 1.5:

import pandas as pd
import matplotlib.pyplot as plt
plt.style.use('ggplot')

data = pd.DataFrame({'1': [1, 2, 3], '2': [3, 5, 1]})

data.plot(kind='bar')
plt.savefig('test.png', dpi=300)

Results in

test

Which uses the colors of matplotlibs default style, not of ggplot.

Using matplotlib 1.4.3 the correct colors are used:
result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions