worked out the mgrid version so the histogram and the KDE match orientations