【问题标题】:Matlab: wind rose plot: change legendMatlab:风玫瑰情节:改变传说
【发布时间】:2019-08-28 21:31:14
【问题描述】:

我想绘制风玫瑰图,但我的风速数据非常低 (0-20)。我在这里找到了 WindRose 包 (https://se.mathworks.com/matlabcentral/fileexchange/47248-wind-rose),它给了我情节。但是我在任何地方都找不到如何更改风速值或如何更改图例标题。 感谢您的帮助!

【问题讨论】:

  • 改变风速值是什么意思?
  • 当我绘制数据 (WR=WindRose(WD,WS);) 时,风速值被设为默认值 (0-50,50-100,100-150...)。但是我的值几乎都在50以下。

标签: matlab plot matlab-figure legend


【解决方案1】:

function documentation看来,调用函数时可以简单的设置以下两个参数。
第一个将您的图例标题作为输入。
第二个将采用最大风速。还有另一个选项 ('nspeeds') 也可以设置所需的垃圾箱数量(即 0 和最大风速之间的数字间隔)

% PARAMETER          CLASS         DEFAULT VALUE         DESCRIPTION

'lablegend'        String.       'Wind speeds in m/s'  String that will appear at the top of the legend. Can be empty.
'speedround'       Numeric.       [] (auto)            Maximum wind speed will be rounded to the first higher whole multiple of WindSpeedRound.

【讨论】:

    猜你喜欢
    • 2022-12-09
    • 1970-01-01
    • 2013-06-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-08
    • 1970-01-01
    相关资源
    最近更新 更多