Need to line up two graphs on same plot
2 次查看(过去 30 天)
显示 更早的评论
I am using
[AX,H1,H2] = plotyy(time,Y1,time,Y2);
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
The x-axis(time) are the same for both. The green and blue graphs in the image both end at the same point, but notice how the green graph starts earlier. I want to line both graphs up so that they have the same starting and ending points. For some of the other graphs I've made, it's done by default. I'm not sure what is different with this set of data...
Any help is appreciated. Thanks! :)
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Directed Graphs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!