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 Center および File ExchangeDiscrete Data Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by