Marker edge thickness changes when saved

조회 수: 2 (최근 30일)
bryan flood
bryan flood 2019년 9월 27일
댓글: Ankit 2019년 10월 7일
I am able to change the thickness of my open 'o' markers in my scatter plot. However, when I save the image using print (so I can set the resolution), the marker thickness changes and comes out very thin. When I save through the file>save as menu, it remains thick, but then I can't save in high enough resolution. Any idea on how to work around this issue?
Code I'm using in the figure:
model_RMSD_scat = scatter(x(id_xy(:, 1), 1), y(id_xy(:, 1), 1), 200, BT_RMSD_model_mean(:, 1), 'LineWidth', 5);
-'LineWidth' sets the thickness of the open circle (default symbol).
Code to save figure:
print([fig_dir fig_name], '-dtiff', '-r600');
  댓글 수: 3
bryan flood
bryan flood 2019년 10월 1일
hgsave only seems to save it as a *.fig file. When I use a different format extension, it will take the extension, but doesn't change the file format, so it still can't be read by image-viewing software (paint, windows photo viewer etc.
Ankit
Ankit 2019년 10월 7일
have you checked this FEX: https://de.mathworks.com/matlabcentral/fileexchange/23629-export_fig

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

답변 (1개)

Jyotsna Talluri
Jyotsna Talluri 2019년 10월 1일
As the resolution changes, size of figure changes due to which the marker size changes. There is a bug in it and it is fixed in R2019b release . So upgrade your version of MATLAB to latest release
  댓글 수: 1
bryan flood
bryan flood 2019년 10월 1일
I updated my version to 2019b, but it did not resolve the issue.

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

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by