Mapping toolbox: Printing worldmap as a vector output
3 views (last 30 days)
Show older comments
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
Answers (0)
See Also
Categories
Find more on Mapping Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!