How to plot multiple x-axes on a graph and have them show up on the same scale?

조회 수: 1 (최근 30일)
I have 3 types of data I want on the same plot. Temperature, Oxygen and Salinity. I want to make a plot where all of these are plotted against depth (y axis). But the data is not on the same scale, temperature ranges from 20-30, while oxygen is in the 200s. How do I plot these so they show up on the same scale, and how do I add more than 1 x-axis on the bottom of the graph?
I want to do something like this:

채택된 답변

Karla Haiat
Karla Haiat 2018년 8월 23일
This worked for me https://www.mathworks.com/matlabcentral/fileexchange/65044-plotmultix-varargin?s_tid=answers_rc2-2_p5_MLT

추가 답변 (1개)

Haritha
Haritha 2018년 8월 21일
Try this, https://in.mathworks.com/help/matlab/creating_plots/combine-multiple-plots.html
  댓글 수: 1
Karla Haiat
Karla Haiat 2018년 8월 23일
Hi Haritha! Thanks for the answer, but I don't think that will be helpful for what I need to do. I need all plots to be scaled so their value changes are obvious and have the 3 axes labels.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by