gyli / PyWaffle

🧇 Make Waffle Charts in Python.
MIT License
578 stars 105 forks source link

KeyError: 'rows' in waffle.py #8

Closed cecilebraun closed 5 years ago

cecilebraun commented 5 years ago

Hi, I tried your last example Multiple plot and had the following error

figsize=(9, 5) # figsize is a parameter of plt.figure File "/usr/local/lib/python3.6/dist-packages/matplotlib/pyplot.py", line 533, in figure *kwargs) File "/usr/local/lib/python3.6/dist-packages/matplotlib/backend_bases.py", line 160, in new_figure_manager fig = fig_cls(args, kwargs) File "/usr/local/lib/python3.6/dist-packages/pywaffle/waffle.py", line 165, in init self._waffle(loc, copy.deepcopy(setting)) File "/usr/local/lib/python3.6/dist-packages/pywaffle/waffle.py", line 174, in _waffle if len(self._pa['values']) == 0 or not self._pa['rows']: KeyError: 'rows'

gyli commented 5 years ago

That's a good one. I have fixed this in 0.1.0 version, please check it out!

cecilebraun commented 5 years ago

Thanks !