Matlab Error using patch Patch cannot be a child of GeographicAxes
23 次查看(过去 30 天)
显示 更早的评论
I'm trying to use geoplot command. I want to create a trajectory using a ship geometry. I created ship geometry using patch command.
handle = patch('Vertices', V', 'Faces', F,...
'FaceColor','flat',...
'FaceVertexCData',colors );
It works when I use "plot" command. But when I try to plot the same date using "geoplot" I got this error:
Error using patch
Patch cannot be a child of GeographicAxes
Do you have any suggestions?
1 个评论
Mrunmayee Gaikwad
2020-12-30
Plotting polygons (including using patch) is currently not supported in GeographicAxes. This previous answer might help: Overlay polygon on geographic axes
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!