How to plot all curves according to their XY coordinates?

6 views (last 30 days)
Nisar Ahmed
Nisar Ahmed on 14 Aug 2021
Commented: Nisar Ahmed on 27 Aug 2021
In the figure attached below, each VT curve have XY cordinates. I want to plot these curves according to the XY coordinate position. How I can write my figure code. Suppose the X nd Y coordinates of first line (left side) are ''XY location X = 458158.62, Y = 6526223.5''. Similarly all the other curves have XY location values. How I can incorporate XY positions in such a way that these plots are according to respective coordinates.
Adam Danz
Adam Danz on 27 Aug 2021
Sorry, but I really don't know what the question is. If you want to plot imagesc(d, TWTi, vp), what's preventing you from doing so? And how does that relate to the line plot in your question?

Sign in to comment.

Accepted Answer

Chunru on 27 Aug 2021
Edited: Chunru on 27 Aug 2021
load d_data.mat
load TWTi_data.mat
load vp_data_plotting.mat
vpmax = max(vp(:));
vpmin = min(vp(:));
vpave = mean(vp(:));
deltad = (max(d)-min(d))/length(d);
v = (vp - vpave)/(vpmax-vpmin) * deltad * 2 + d;
plot(v, TWT1i);
set(gca, 'YDir', 'reverse');
p = pcolor(d, TWT1i, vp);
p.EdgeColor = 'none';
axis ij

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by