Advanced Line Plotting/ Recreation of old figure
1 次查看(过去 30 天)
显示 更早的评论
Since the depicted figure is now outdated I have to recreate it from scratch. Although I now have the raw data that corresponds to the right values I now need to polish and refine the new figure. Would anyone know where to start in plotting all 4 lines on the same graph with the coresponding Y values depicted below?
回答(1 个)
Naman Bhaia
2019-2-28
Hey Michael,
To plot multiple lines together on one graph with shared axes you can try using the hold command in the following manner:
plot(cti_diff_sm)
hold on
plot(mlo_diff_sm)
plot(spo_diff_sm)
plot(tpi_diff_sm)
hold off
Or if you want them stacked one on top of the other you can plot them using stackedplot() function in the following way:
T=table(cti_diff_sm,mlo_diff_sm,spo_diff_sm,tpi_diff_sm);
S=stackedplot(T)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!