To present the sets one over the other as they are in real datasets, the bin edges need to be aligned. So, we can use common binedges for both the plots. The BinEdges can be specified as follows:
binEdges = 0:0.1:130;
histogram(Ge_energy, 'BinEdges', binEdges, 'DisplayStyle', 'stairs');
Ensure that the same BinEdges are used for the other histogram as well.
Additionally, to set the Y-axis to a logarithmic scale, you can use the set function as shown below:
set(gca, 'YScale', 'log');
For more information about the BinEdges attribute or the set function, please refer to the documentation using the following commands in the MATLAB command line:
web(fullfile(docroot, "/matlab/ref/set.html"));
web(fullfile(docroot,"/matlab/ref/matlab.graphics.chart.primitive.histogram.html"));