Surf plot as .svg file with many grid lines too dark

6 Ansichten (letzte 30 Tage)
Simon Bäuerle
Simon Bäuerle am 26 Feb. 2021
Kommentiert: darova am 1 Mär. 2021
Hi Matlab-Community,
I want to insert a surf plot into my thesis latex document with about 60x85 data points. Tikz creates too large files and runs into problems - so that is not an option.
A nice (time-consuming) alternative is to export the plot as .svg, open it in inkscape, add all text and tiks manually and save as pdf_tex. That way, I get a nice vector graphic with document compatible text without matlab2tikz. At least I thought...
Here is my problem:
The plot is too dark due to the many edge lines. Redrawing fewer edges with plot3 does not work for the "60"-direction, since I want to keep the bounding edge lines and even spacing (59 is a prime number and cannot be divided evenly). It seems, that I can't change the linewidth of the full 60x85 plot3 redrawn edges, to decrease the darkening effect. I guess I could compute intermediate edge values between my given data points with (bi-)splines or linear interpolation, but there must be another way. Redoing the simulation on which the surface is based is overkill and takes too long.
Illuminating the plot with a light feature is not an option, since I need the Painters renderer for the .svg export and the two of them are not compatible. Brightening with briten does work but not well enough.
Is there anything, that I'm missing? Do you have any suggestions? Thank you so much in advance!

Antworten (1)

darova
darova am 26 Feb. 2021
What about this approach?
clc,clear
[x,y,z] = peaks(59);
ii = 1:5:size(x,1);
jj = 1:5:size(x,2);
surf(x,y,z,'edgecolor','none')
surface(x(ii,jj),y(ii,jj),z(ii,jj),'facecolor','none')
view(45,45)
  6 Kommentare
Simon Bäuerle
Simon Bäuerle am 1 Mär. 2021
Sure. The lines can be seen espcially good on the left surface plot in the blue area.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by