MSDanalyzer plots

I recently started using the msdanalyzer in Matlab.
I have 2d tracking data from track mate.
I wanted to plot a histogram with the computed MSD values against the count from the data frame(.xml file) - to see in which bin most of the diffusion coefficients are present.
In the end, I wanted to only plot the MSD curve for only the diffusion values lying within mode± 2 bins (basically plotting only the filtered population).

Using an example of 2D tracking data, can someone help me a little.