Triangulation lines visible in filled mesh after printing in matlab

조회 수: 1 (최근 30일)
Uri Cohen
Uri Cohen 2019년 5월 12일
(cross-posted in SO)
I've been using violin to generate (so-called) violin plots in matlab. The plot looks fine, but printing it to pdf results in a file where triangulation lines are visible...
Under the hood violin just uses fill() in a way which seems perfectly legit; a minimal, complete and verifiable example:
a=randn(10000,1);
[f, u, bb]=ksdensity(a,'bandwidth',0.2);
figure; fill([f'+i;flipud(i-f')],[u';flipud(u')],'b','FaceAlpha',1);
print(gcf,'-dpdf','a.pdf');
My version is R2017a.
r0UVy[1].png

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by