gyli / PyWaffle

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

width problems with a thousand blocks #2

Open lincolnfrias opened 6 years ago

lincolnfrias commented 6 years ago

When plotting a larger number of blocks, the width of the white space between them become unstable:

plt.figure(
    FigureClass=Waffle,
    rows=20,
    columns=80,
    values=[300, 700],
    figsize=(18, 10)
);
plt.savefig('example.png')

image

This is probably outside the original scope of the package and maybe should even be discouraged, but sometimes is useful to give the reader the impression of dealing with a large population. Feel free to close this issue.

gyli commented 6 years ago

I have verified the output block from pywaffle and looks like those spacing are all the same. Therefore, I am afraid it's more like a matplotlib plotting issue.

gyli commented 4 years ago

Sorry for the late follow up response. I doubt that this could be an issue of Matplotlib since I have the same issue when scaling figures with parameter dpi when saving the figure to a file.