How to overlay two plots with different x-axis?

Hi.
I'm trying to overlay two different plots. One is a scatter plot as a function of precipitation and the SOI index, and the second is a plot of the return level for the 2, 20 and 100-year period. How do I plot both these plots on the same figure?
Thank you for your help!
- Kristine

5 Comments

This example doesn't work on my matlab 2014a.
Hello Kristine, just wanted to know if you figured it out yet. if you did could you Please share it. I'm facing same issue i.e. over lying 2 plots with different x axis data.
Thank you..!
DGM
DGM on 30 Jan 2022
Edited: DGM on 30 Jan 2022
What version are you using? If you're using R2019b or newer, you should be able to use most of the information at the link above.
please share your code

Sign in to comment.

Answers (0)

Categories

Asked:

on 11 Apr 2016

Commented:

on 30 Jan 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!