什么图用什么工具画?

0. 图像类型

  • line chart:折线图,
    • 一副折线图,可以自由一条折线,也可以 with many lines;

1. dendrogram(树状图)

  • Pythonfrom scipy.cluster import hierarchy

2. stem(茎叶图)

描述的是一维信息;

  • matlab:stem()
    • 参数(成对出现),’marker’, ‘none’

3. errorbar(mean & standard deviation)

  • 使用 matlab 下的 errorbar() 绘图函数
x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
err = [4 3 5 3 5 3 6 4 3 3];
errorbar(x,y,err,'both')

默认条状的 bar 是上下对称的,因此可以使用 standard deviation 作为 yerr。

原文地址:https://www.cnblogs.com/mtcnn/p/9422743.html