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

2 visualizzazioni (ultimi 30 giorni)
Julien
Julien il 25 Giu 2014
Commentato: Star Strider il 25 Giu 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 !

Risposte (1)

Star Strider
Star Strider il 25 Giu 2014
The File Exchange export_fig function is well-reputed and popular. See if it solves your problem.
  2 Commenti
Julien
Julien il 25 Giu 2014
Modificato: Julien il 25 Giu 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 il 25 Giu 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.

Accedi per commentare.

Categorie

Scopri di più su Contour Plots in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by