maple画统计饼状图攻略-PieChart函数
的有关信息介绍如下:这篇文档将通过多个程序算例详细介绍maple画统计饼状图攻略-PieChart函数
PieChart命令为指定的数据生成饼图。
第一个参数X是类型值=频率的等式的列表。 还可以给出一个列表或向量值,在这种情况下,所有频率将被设置为相等。
PieChart(X, options, plotoptions)
PieChart['interactive'](X)
with(Statistics);
A := [seq(i = sqrt(i), i = 1 .. 15)];
PieChart(A, sector = 0 .. 180);
程序编译结果如右图所示
B := [seq(i = sqrt(abs(7-i))+1, i = 1 .. 16, 2)];
PieChart(B, sector = 0 .. 270, annular);
程序编译结果如右图所示
plots[display](PieChart(A, annular = 1), PieChart(B, sector = 90 .. 270, annular = 2))
程序编译结果如右图所示
plots[display](PieChart(A, annular = 1, render3d), PieChart(B, sector = 90 .. 270, annular = 2, render3d = 1))
程序编译结果如右图所示
T := [StringTools:-CharacterFrequencies("honorificabilitudinitatibus")]
PieChart(T, color = "Crimson" .. "Gold", explode = [seq(i, i = "a" .. "i")])
程序编译结果如右图所示
plots[display](PieChart(A, sector = 45 .. 225, annular = 2.25 .. 4, color = "MediumTurquoise" .. "MediumVioletRed"), PieChart(B, sector = 30 .. 270, annular = 1, color = "MediumTurquoise" .. "Navy"), PieChart(A[5 .. 10], annular = false, color = "Navy" .. "MediumTurquoise"), PieChart(T, color = "Crimson" .. "Gold", explode = [seq(i, i = "j" .. "u")], annular = 4.25 .. 6))