Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Cycler' object has no attribute 'by_key' #18

Closed
alecrimi opened this issue May 1, 2018 · 1 comment
Closed

'Cycler' object has no attribute 'by_key' #18

alecrimi opened this issue May 1, 2018 · 1 comment

Comments

@alecrimi
Copy link

alecrimi commented May 1, 2018

Hi,
I am running the demo from the notebook:

from future import unicode_literals
import joypy
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import cm

iris = pd.read_csv("data/iris.csv")
%matplotlib inline
fig, axes = joypy.joyplot(iris)

and I get this error:
Traceback (most recent call last):
File "", line 1, in
TypeError: 'DataFrame' object is not callable

fig, axes = joypy.joyplot(iris)
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/joypy/joyplot.py", line 237, in joyplot
**kwds)
File "/usr/local/lib/python2.7/dist-packages/joypy/joyplot.py", line 433, in _joyplot
element_color = _get_color(i, num_axes, j, num_subgroups)
File "/usr/local/lib/python2.7/dist-packages/joypy/joyplot.py", line 358, in _get_color
return plt.rcParams['axes.prop_cycle'].by_key()['color'][j]
AttributeError: 'Cycler' object has no attribute 'by_key'

I am using the latest update and I am using Python 2.7 from Ubuntu

@alecrimi
Copy link
Author

alecrimi commented May 1, 2018

Solved: the issue is related to Cycler and Matplot lib not to Joypy:
matplotlib 1.5.1 and Cycler 0.9 are required

@alecrimi alecrimi closed this as completed May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant