how can I plot the following graph

1 次查看(过去 30 天)
  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