how can I plot the following graph

1 view (last 30 days)
AMIT SINGH CHANDEL
AMIT SINGH CHANDEL on 22 Aug 2022
Commented: Image Analyst on 22 Aug 2022
  1 Comment
Image Analyst
Image Analyst on 22 Aug 2022
Personally, I don't think this kind of visualization is very easy to understand or interpret or see the relative values/trends/shapes of.

Sign in to comment.

Answers (2)

Voss
Voss on 22 Aug 2022
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 on 22 Aug 2022
Edited: Kevin Holly on 22 Aug 2022
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

Community Treasure Hunt

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

Start Hunting!