(不推荐)角直方图

您所在的位置:网站首页 360度圆周图 (不推荐)角直方图

(不推荐)角直方图

2024-07-13 02:08| 来源: 网络整理| 查看: 265

不推荐使用 rose。请改用 polarhistogram。目前没有删除 rose 的计划。

polarhistogram 函数使用专为极坐标和直方图数据设计的图形对象。这些对象比 rose 使用的对象有更多相关的自定义选项。与 rose 相比,使用 polarhistogram 的好处包括:

polarhistogram 在 PolarAxes 对象(而不是 Axes 对象)中绘图。例如,您可以通过设置 PolarAxes 对象的 ThetaZeroLocation 属性来更改 0 的位置。

polarhistogram 会创建 Histogram 对象,而不是 Line 对象。例如,您可以通过设置 Histogram 对象的 FaceColor 属性来为 bin 着色。

下表显示了 rose 的一些典型用法,以及如何更新代码以改用 polarhistogram。

目标不推荐推荐差异指定 bin 的数量。 rose(theta,nbins) polarhistogram(theta,nbins) 无差异。指定 bin 的位置。 rose(theta,x) polarhistogram(theta,edges)

对于 rose,x 指定每个 bin 的中心角。length(x) 是 bin 的总数。

对于 polarhistogram,edges 指定每个 bin 的开始值和结束值。length(edges)-1 是 bin 的总数。

指定目标坐标区。 rose(ax,__) polarhistogram(pax,__)

rose 接受一个 Axes 目标坐标区。

polarhistogram 接受一个 PolarAxes 目标坐标区。

指定一个 PolarAxes 目标坐标区。 [t,r] = rose(theta) polarplot(pax,t,r) polarhistogram(pax,theta)

rose 只接受一个 Axes 目标坐标区。使用 polarplot 函数,指定一个 PolarAxes 对象 pax 以及两个来自 rose 的输出参量。

polarhistogram 接受一个 PolarAxes 目标坐标区。

修改角直方图的外观。ln = rose(theta)

然后,使用圆点表示法和 ln 来更改图的外观。

polarhistogram(theta,Name,Value)

h = polarhistogram(theta)

然后,使用圆点表示法和 h 来更改图的外观。

对于 rose,ln 是一个 Line 对象。使用圆点表示法来设置线条的任何属性。有关属性列表,请参阅 Line 属性。

对于 polarhistogram,h 是一个 Histogram 对象。使用圆点表示法或名称-值参量来设置直方图的任何属性。有关属性列表,请参阅 Histogram 属性。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3