Black Lives Matter. Please consider donating to Black Girls Code today.

Saving Delta Function Histograms Omits Data

I’m trying to plot several histograms and save them in one plot. This is what my plot looks like:

However, I notice that when I save the plot, my data disappears:

I suspect that this is due to the delta function-like distributions. How do I ensure my plot is saved correctly?

Hum this might be a problem of not using the right figure size when saving, as described for example in Downloaded plot looks nothing like it does on the web page.

I found that using the scale argument greater than 1 (e.g. scale=3) works!