olgabot / prettyplotlib

Painlessly create beautiful matplotlib plots.
olgabot.github.io/prettyplotlib
MIT License
1.69k stars 148 forks source link

ERROR when running example hist #98

Open bingosxs opened 7 years ago

bingosxs commented 7 years ago

Enviroment: anaconda latest (Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, Dec 20 2016, 23:09:15) ) installed using pip

>>> ppl.hist(ax, np.random.randn(1000))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/canicula/anaconda2/lib/python2.7/site-packages/prettyplotlib/colors.py", line 35, in wrapper
    return func(*args, **kwargs)
  File "/home/canicula/anaconda2/lib/python2.7/site-packages/prettyplotlib/_hist.py", line 18, in hist
    color_cycle = ax._get_lines.color_cycle
AttributeError: '_process_plot_var_args' object has no attribute 'color_cycle'