How the line smoothness in a contour plot can be improved for publications? For instance, the dotted lines look really bad, the continuous lines look as if their thickness varies. See below
Here’s part of the code:
Vals = [0:5:200]; contourf(X,Y,W,Vals,'EdgeColor','k','LineWidth',1.2,'LineStyle',':');axis square;grid;hold on
Vals = [10:10:200]; contour(X,Y,W,Vals,'EdgeColor','k','LineWidth',1.2);
Vals = [20 : 20 : 200]; [C,h] = contour(X,Y,W,Vals,'Color','k','LineWidth',1.8);
clabel(C,h,'FontName','Palatino Linotype','FontAngle','italic','Fontsize',9,'Color','w')
print -djpeg -r300 filename
Thanks!

Saved as png doesn’t help much… check the lines :/ See below:

Check the dotted lines now…

Here’s saving as eps (-r1200)… it looks better

Update: I see your example code now. Did you try changing
-r300to some really high value? More pixels per inch should make everything look smoother. For publication, crank it up really high, like-r1200.Original:
One thing you can try is exporting the plot in some format that supports vector graphics. Matlab supports both PDF and EMF, so try one of those. Export using the
saveascommand or from the figure’s “File -> Save as” menu item. After that, open or import the image file in some other application and hopefully it will look better.Please add a new screenshot if you get a nicer image!