How to plot arrow with data coordinates in Matlab?

后端 未结 8 1900
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 19:37

I know there is a function named annotation can plot arrows or double arrows. But annotation can only plot in normalized unit. For example:

annotation(\'arro         


        
8条回答
  •  轮回少年
    2020-12-13 20:26

    After creating the annotation object you should set the property Units to an absolute one. Example:

    arrowObj = annotation('arrow', [0.1 0.1], [0.5 0.5]);
    set(arrowObj, 'Units', 'centimeters');
    set(arrowObj, 'Position', [1 1 3 5]);
    

提交回复
热议问题