Multiple fnplot and different color
显示 更早的评论
Hello! I'm a young geology student. I'm doing a thesis with matlab. I have to plot P-T-time path.
<<

>>
(see the figure Vittoria.jpg). I have to plot of line just like that, but i'm not able to link to each line with a specific color (see figure Disfatta) I use fnplot associated to cscvn... what can i do?
This is my code
for i=1:num_points
f=plot(markt(:,i),markp(:,i),'d');
set(f,'Color',cmap(i,:));
%if(i==1)
% for j=1:num_cycle
% text(markt(j,i),markp(j,i),num2str(timesum(j)),'HorizontalAlignment','left');
% end
% end
a=makrt'
b=markp'
hold on
fnplt(cscvn([a(i,:);b(i,:)]));
hold off
hold all
h(i)=i;
end
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!