How to Change Marker Size in a .fig MATLAB File?

조회 수: 219 (최근 30일)
Benjamin
Benjamin 2020년 8월 20일
편집: Benjamin 2020년 8월 21일
Hello dear all
I want to know how to change the marker size for a .fig file if that is possible. Note that I only have the .fig file and I don't have access to the X and Y datapoints to use the command scatter(X,Y, 'MarkerSize',10). Is there any way to change the marker size/color by using the command window, or the figure configuration settings?
I appreciate your response in advance
Regards,

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 8월 20일
Yes, you can use the property inspector.
  1. Open the fig file in MATLAB
  2. Click on a marker to select them
  3. Open the property inspector
  4. Expand the Markers section and modify the value in the MarkerSize field.
  댓글 수: 5
Cris LaPierre
Cris LaPierre 2020년 8월 21일
편집: Cris LaPierre 2020년 8월 21일
The markers are a property of the Scatter object. For this plot, it is actually listed as "SizeData" in the Color and Size Data section. Click on one of the markers to open the scatter properties.
You can change their size programmatically as well. With this figure set as the current figure, run the following code.
h=findobj(gcf,'Type','scatter')
h.SizeData = 50;
Benjamin
Benjamin 2020년 8월 21일
편집: Benjamin 2020년 8월 21일
Thank you very much. That works.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by