Print (Export) 3-D contour plot in .eps in MATLAB

4 views (last 30 days)
Hi,
I have a big issue when I try to export a 3-D contour plot, like the ones obtained by surf.
I use this command to export my figures from Matlab to Latex:
print -depsc2 filename.eps;
But the exported figure is terrible, with so many aliasing:
I have visited some topics about this issue, but none of the solutions works. For example, using:
print -painters filename
create a huge file (100 Mo !) as I have too many points. However, if I reduce the number of points, the graph looks bad, so I prefer not consider this solution.
I have also seen people suggesting export_fig, but I still cannot get the result I want and the .eps file is still very big.
Do you know how can I resolve my issue ?
Thank you so much for your time !

Answers (1)

Star Strider
Star Strider on 25 Jun 2014
The File Exchange export_fig function is well-reputed and popular. See if it solves your problem.
  2 Comments
Julien
Julien on 25 Jun 2014
Edited: Julien on 25 Jun 2014

I already tried but I cannot solve my problem, unfortunately. Thanks for he answer, here's what I get with export_fig:

It is way beter, but it's like there's a light above the graph.

Star Strider
Star Strider on 25 Jun 2014
I didn’t read your original post closely or I’d have picked up on your already having used export_fig.
I believe the problem may be your using surf. See if the contourf function goes better in your application. You can turn off the contour lines by setting the 'LineColor' property to 'none'. See the documentation on Contourgroup Properties for details on that.

Sign in to comment.

Categories

Find more on Contour Plots 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!