how can I plot the following graph

1 visualizzazione (ultimi 30 giorni)
AMIT SINGH CHANDEL
AMIT SINGH CHANDEL il 22 Ago 2022
Commentato: Image Analyst il 22 Ago 2022
  1 Commento
Image Analyst
Image Analyst il 22 Ago 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.

Accedi per commentare.

Risposte (2)

Voss
Voss il 22 Ago 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 il 22 Ago 2022
Modificato: Kevin Holly il 22 Ago 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

Categorie

Scopri di più su Discrete Data Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by