def map(h2: Histogram2D,
        **kwargs):
    """Heatmap.

    """
    data = [go.Heatmap(z=h2.frequencies, **kwargs)]
    layout = go.Layout()
    figure = go.Figure(data=data, layout=layout)
    return figure