how can I plot the following graph

조회 수: 1 (최근 30일)
AMIT SINGH CHANDEL
AMIT SINGH CHANDEL 2022년 8월 22일
댓글: Image Analyst 2022년 8월 22일
  댓글 수: 1
Image Analyst
Image Analyst 2022년 8월 22일
Personally, I don't think this kind of visualization is very easy to understand or interpret or see the relative values/trends/shapes of.

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

답변 (2개)

Voss
Voss 2022년 8월 22일
nz = 50;
nt = 7;
z = linspace(0,3500,nz);
F = max(0,1000+1000*sin(z(:)/500+(1:nt)*pi/2)+500*randn(nz,nt));
colors = jet(nt);
for ii = 1:nt
line( ...
'XData',F(:,ii), ...
'YData',ii*ones(nz,1), ...
'ZData',z, ...
'Color',colors(ii,:), ...
'LineWidth',2)
patch( ...
'XData',[F(:,ii); 0; 0], ...
'YData',ii*ones(nz+2,1), ...
'ZData',[z(:); 3500; 0], ...
'EdgeColor',colors(ii,:), ...
'FaceColor','flat', ...
'FaceVertexCData',colors(ii,:), ...
'FaceAlpha',0.5)
end
view([45 30])
grid on
box on
xlim([0 3000])
zlim([0 3500])

Kevin Holly
Kevin Holly 2022년 8월 22일
편집: Kevin Holly 2022년 8월 22일
z = linspace(1,3500,100);
n = 3000*rand(100,5);
date = {'05-Mar';'12-Mar';'19-Mar';'26-Mar';'02-Apr'};
f=figure;
axes("YDir","reverse")
hold on
for ii = 1:size(n,2)
p(ii)=plot3(z,n(:,ii),ii*ones(size(n,1),1));
patch([z fliplr(z)], [n(:,ii)' ones(size(n(:,ii)'))],ii*ones(size(n,1)*2,1),p(ii).Color,'FaceAlpha',0.3, 'EdgeColor','none')
end
plot3(zeros(size(z)),1500*rand(100,1)+500,linspace(1,5,100),'k')
view(3)
zticklabels(date)
legend(p,{'F1','F2','F3','F4','F5'})
xlabel('z (m)')
ylabel('N (cm^-3)')
zlabel('date')
grid on

카테고리

Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by