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

2 vues (au cours des 30 derniers jours)
Julien
Julien le 25 Juin 2014
Commenté : Star Strider le 25 Juin 2014
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 !

Réponses (1)

Star Strider
Star Strider le 25 Juin 2014
The File Exchange export_fig function is well-reputed and popular. See if it solves your problem.
  2 commentaires
Julien
Julien le 25 Juin 2014
Modifié(e) : Julien le 25 Juin 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 le 25 Juin 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by