1 function plot_paths3d(path_struct,fig_num)
2 %input path_sruct = graph_dets(w,cull)
3 % fig_num - figure to draw on
4 %fg = path_struct.graph;
5 pts = path_struct.points(:,1:3);
6 pts(:,1:2) = path_struct.grid_pts;
7 %pts(:,3) = (pts(:,3)-floor(min(pts(:,3))));
8 paths = path_struct.paths;
12 for j = 1:length(paths)%length(pts)
13 %c = sqrt(path_struct.paths(j).c/100);
14 %plot3(pts(paths(j).p,2),pts(paths(j).p,1),pts(paths(j).p,3),'Color',[c c c]);
15 plot3(pts(paths(j).p,2),pts(paths(j).p,1),pts(paths(j).p,3));
17 scatter3(pts(:,2),pts(:,1),pts(:,3),'*r')
19 grid on,xlabel('Lon'),ylabel('Lat'),zlabel('Time [datenum]')
20 title('Shortest Paths and Active Fire Detections')