How to make a smooth image using the "patch" function ? (and not crenellated)

I am reconstructing a 4-by-4 matrix using the patch function. The idea is to make the columns higher as the value in the matrix is high. Here is an image of it :
matrix1.png
As you can see, the lines aren't smooth, they are crenellated. Usually, when i do a plot with matlab, I export the image as a PDF and the lines get smooth by magic.
Do you know how to smooth out the lines in this image with the patch function ? (I try to use bar3 and other such functions but it doesn't fit to what I want to do).
I have the R2018b version of matlab.

댓글 수: 1

Jan
Jan 2019년 4월 2일
편집: Jan 2019년 4월 2일
You forgot to mention how you create this image. What is the wanted output type?

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

 채택된 답변

Jan
Jan 2019년 4월 2일

0 개 추천

If you want to export the image as vector graphics, use the 'Painters' renderer. For 3D graphics with transparencies the OpenGL renderer is used, which creates raster images only. But even then you can increase the resolution, such that the image looks smoother: Use the -r argument for the print command.
A standard hint is to try export_fig from the file exchange.

댓글 수: 2

It works ! Thank you.
I'm glad that I could help you. If you post, which method exactly solves your problem, other readers can profit also.

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

추가 답변 (0개)

카테고리

질문:

2019년 4월 2일

댓글:

Jan
2019년 4월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by