开发者

How to change text of y-axes on a matplotlib generated picture

开发者 https://www.devze.com 2023-01-21 14:31 出处:网络
The page is \"http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html\"

The page is "http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html"

Let's look at the y-axis, the numbers there do not make any sense, could we change it to something else that is meani开发者_运维知识库ngful?


Except the cumulative distribution plot, and the last one, the rest of the y-axes data show normalized histogram values with normed=1 keyword set (i.e., the are underneath the histogram equals to 1 as in the definition of a probability density function (PDF))


You can use yticks(), see this example.

0

精彩评论

暂无评论...
验证码 换一张
取 消