# MATLAB: Changing scale of x-axis in histfit

histfitscaling

Hi!
I am generating some histograms with a normal distribution using histfit, and I need to change the scale in the x-axis. Specifically, I get 3 histograms for three different possible outcomes, and I need the scale on all of them to be the same in the x-axis.
Thanks!

D1 = randn(1,100);                  % Create Data For DistributionsD2 = 2+1.5*randn(1,100);D3 = 3+0.5*randn(1,100);figure(1)                           % Plot All ‘histift’s On The Same Axes histfit(D1)hold onhistfit(D2)histfit(D3)hold offgrid