Partially empty 2d histogram Plots.jl

Attempting plotting a small circle in 2d histogram (with custom bins and limits), gives a natural result in pyplot:

However, Plots for some reason gives blank pixels (same image):

It depends what you think is a “natural result”. Do you show empty bins or not?
You can join the discussion here:

1 Like

I see,

Plots.histogram2d(beam[:,1], beam[:,2], show_empty=true)

fixes it

using any of these aliases is also valid

:show_empty_bins, :showemptybins, :showempty, :show_empty, :show_zeros, :showzeros

Hope this would help some users.