我已经安装了最新版本的MATLAB R2014b,我有一个问题,干线功能没有显示到数据点的行,例如:
stem(1:12);
看起来像
我尝试调整Linestyle,如文档中所示。
figure
X = linspace(0,2*pi,25)';
Y = (cos(2*X));
stem(X,Y,'LineStyle','-.',...
'MarkerFaceColor','red',...
'MarkerEdgeColor','green')
但它没有帮助,任何想法在这里有什么问题?
更新 跑完后
h= stem(1:12)
get(h)
这是输出:
Annotation: [1x1 matlab.graphics.eventdata.Annotation]
BaseLine: [1x1 Baseline]
BaseValue: 0
BeingDeleted: 'off'
BusyAction: 'queue'
ButtonDownFcn: ''
Children: []
Clipping: 'on'
Color: [0 0.4470 0.7410]
CreateFcn: ''
DeleteFcn: ''
DisplayName: ''
HandleVisibility: 'on'
HitTest: 'on'
Interruptible: 'on'
LineStyle: '-'
LineWidth: 0.5000
Marker: 'o'
MarkerEdgeColor: 'auto'
MarkerFaceColor: 'none'
MarkerSize: 6
Parent: [1x1 Axes]
PickableParts: 'visible'
Selected: 'off'
SelectionHighlight: 'on'
ShowBaseLine: 'on'
Tag: ''
Type: 'stem'
UIContextMenu: []
UserData: []
Visible: 'on'
XData: [1 2 3 4 5 6 7 8 9 10 11 12]
XDataMode: 'auto'
XDataSource: ''
YData: [1 2 3 4 5 6 7 8 9 10 11 12]
YDataSource: ''
ZData: [1x0 double]
ZDataSource: ''