Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Mapping toolbox: Printing world map in vector format
Posted:
Oct 13, 2011 2:36 PM
|
|
Hello, I am using the mapping toolbox to plot some data with worldmap. Everything looks fine, but when I save the file as an editable vector image (e.g. '-depsc' ), the resulting eps-file contains strange marks and lines on the continents (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. Any comments about the code would be helpful too.
- Jan-Erik
|
|
|
|