Hello,
I would like to plot multiple data on a single x axis
Here is an example,
I used subplot to plot the data in this form
How can I plot on a single chat that varies for different x position ( 1D..5D..20D) and varying turbulence data?
Merci

답변 (1개)

Image Analyst
Image Analyst 2022년 3월 6일

0 개 추천

plot(tix, yD1, '.-', 'LineWidth', 3, 'MarkerSize', 14);
hold on;
plot(tix, yD2, '.-', 'LineWidth', 3, 'MarkerSize', 14);
plot(tix, yD3, '.-', 'LineWidth', 3, 'MarkerSize', 14);
plot(tix, yD4, '.-', 'LineWidth', 3, 'MarkerSize', 14);
plot(tix, yD5, '.-', 'LineWidth', 3, 'MarkerSize', 14);

댓글 수: 3

Thanks, but this will plot it on the same frame
My
For each x = 1D...2D..10D
I can use
sublpot (tix1,y)
hold on
sublpot (tix2,y)
sublpot (tix3,y)
I want to have all the subplot in a single frame as shown in the figure.
There are two different axis on the horizontal line, Tix at the bottom and X at the top.
I tried using stackedplot but it not giving the required results.
Image Analyst
Image Analyst 2022년 3월 8일
Your top figure and bottom figure are different. Attach your data and say what rows or columns you want plotted in each subplot, and say how many rows and columns of subplots you want.
Kabir Shariff
Kabir Shariff 2022년 3월 9일
Hello,
I attached herewith my data.
From the data, I grouped it into different X values i.e X = 1, 2,5,10,20...
For each X value, the first column is y(D), the 2nd, third and forth column is for the Tix data grouped into cases A, B,C (corresponding to Case 1, Case 2, Case 3) in the first figure.
Finally, I want the plot to appear in this form
Thank you

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

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2022년 3월 6일

댓글:

2022년 3월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by