Surf plot as .svg file with many grid lines too dark
2 ビュー (過去 30 日間)
古いコメントを表示
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!
0 件のコメント
回答 (1 件)
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!