plotyy y axes overlap
3 次查看(过去 30 天)
显示 更早的评论
Hi, I have a real time plot and when I try to plot using plotyy the axes overlap and the two plot lines are created slighty to the left if the last x value is not integer. how can i prevent x axes overlapping and have the graph lines plot the right way on the plot? thank you
set(hObject,'CurrentAxes',handles.Axes1);
hold(handles.Axes1,'on');
set(handles.Axes1,'units','normalized')
cah = get(hObject,'CurrentAxes');
[ax,hlines(1),hlines(2)]=plotyy([handles.Axes1],x,y{1},x,y{2});
0 个评论
采纳的回答
更多回答(1 个)
Jan
2012-7-16
Perhaps you want to set the 'XLim' property manually instead of letting Matlab set it dynamically.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Two y-axis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!