필터 지우기
필터 지우기

Mapping toolbox: Printing worldmap as a vector output

조회 수: 1 (최근 30일)
Jan-Erik
Jan-Erik 2011년 10월 12일
댓글: Paola Ceccon 2017년 10월 3일
Hello, I am using the mapping toolbox to plot some marine data on a world map. Everything looks fine, but when I save the file as an editable vector image (e.g. '-depsc' ), the resulting image contains strange marks and lines (see here: http://imageshack.us/photo/my-images/820/screencapturemr.png/).
It works fine for bitmap formats (e.g. 'dpng'), but I want the image to be in vector format such that I can edit it in Illustrator.
I don't have any idea what I can do to fix this problem.
Here are the commands that I used to create the world map:
figure(1); ax = worldmap('World'); setm(ax, 'Origin', [0 -140 0]);
setm(ax, 'meridianlabel','off'); setm(ax, 'parallellabel','off');
land = shaperead('landareas', 'UseGeoCoords', true); load coast; lakes = shaperead('worldlakes', 'UseGeoCoords', true);
geoshow(ax, land, 'FaceColor', [0.6 0.6 0.6],'EdgeColor','none');
geoshow(lakes, 'FaceColor', [0.6 0.6 0.6],'EdgeColor',[0.6 0.6 0.6],... 'LineWidth',3.0);
After I plotted the data and added a colorbar etc., I save the figure with the following command lines:
figure(1); set(gcf, 'PaperPositionMode', 'auto'); print -depsc2 worldmap.eps
Is this a common problem with the mapping toolbox or do I do something wrong? Is there a way to fix it? Thank you in advance for your help or any suggestions.
-Jan-Erik

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mapping Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by