Histogram plot isn't shown properly.
Ältere Kommentare anzeigen
When I am trying to plot the Histogram it looks like as shown below. If I try to scale the y axis as it is too high the variation in the lower values aren't seen. How to show a proper histogram plot so that the variation in the lower side can be also seen along with the highest point in the y axis? Kindly help

3 Kommentare
KALYAN ACHARJYA
am 7 Mär. 2021
@Vaswati Biswas Can you share data that was used to get this hist plot, sure you can use other normalization option to fit the axes limit, like 'probability' ot see its relative differenc of it's bins fequency.
Vaswati Biswas
am 7 Mär. 2021
dpb
am 7 Mär. 2021
Can't change the characteristics of the image; any linear scaling of the axis will only change the numerical values, not the shape.
The usual "trick" for data which have a very large dynamic range is to use log scaling on one or both axes...
histogram(yourData)
hAx=gca; hAx.YScale='log'; % get axes handle; set y axis to logarithmic
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Histograms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
