How to plot two graphs with different x axes on the same graph without using tiled layout?
显示 更早的评论
I am trying to overlay two sets of data, one with pixels as x axis and the other wavenumbers. I have tried the tiled layout and they work beautifully in MatLab, however, when exporting these graphs as images only one of the plots is exported/copied. Is there another way of achieving this? Thank you!

Above: Figure as seen in MatLab
Below: Figure exported

1 个评论
Rik
2024-5-10
Have you tried creating two axes objects in the same place? It takes some careful tweaking to make sure no parts overlap, but it tends to export as expected.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Axes Appearance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

