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

조회 수: 6 (최근 30일)
Simon Bäuerle
Simon Bäuerle 2021년 2월 26일
댓글: darova 2021년 3월 1일
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!

답변 (1개)

darova
darova 2021년 2월 26일
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
Simon Bäuerle
Simon Bäuerle 2021년 3월 1일
Sure. The lines can be seen espcially good on the left surface plot in the blue area.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by