PyWaffle icon indicating copy to clipboard operation
PyWaffle copied to clipboard

width problems with a thousand blocks

Open lincolnfrias opened this issue 8 years ago • 2 comments

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.

lincolnfrias avatar Nov 23 '17 17:11 lincolnfrias

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 avatar Aug 17 '18 20:08 gyli

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.

gyli avatar Oct 06 '19 22:10 gyli