'Axis scale for a pdf plot
I have a bunch of data which are distributed as a pdf function. When I plot the histogram
histogram(mydata, nbin, "Normalization", 'pdf') the y-axis has a scale that I don't understand. Indeed,the scale is [0 200] while I was expecting a pdf scale.
Solution 1:[1]
Two things:
- I don't know if it is significant, but the documentation page for
histogramhasnormalizationas a character vector and not a string object (single quotes not double quotes). - It is perfectly OK for the y-axis to be that large. The PDF normalization makes the sum of the area of the bars equal to 1.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | GrapefruitIsAwesome |
