The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Mapping toolbox: Printing world map in vector format
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 5
Registered: 6/28/11
Mapping toolbox: Printing world map in vector format
Posted: Oct 13, 2011 2:36 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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:

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:

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:

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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.