scatterm marker size - cannot change marker size for scatterm points on map (2012a)

조회 수: 2 (최근 30일)
I am using code written in release 2009a on a Windows 7 machine running release 2012a. The code used to allow me to plot points on a map using the scatterm function, and to change the size the points using set handle. I used to change the edgecolor property this way too.
Now, neither works. I've fixed the edgecolor property by using: set(get(handle,'Children),'Edgecolor','k') %new for 2012a
which replaced : set(handle, 'Edgecolor','k') %old, as written in 2009a
If I move the markersize property command to the same level, I get the following error:
Error using specgraph.scattergroup/set The name 'edgecolor' is not an accessible property for an instance of class 'scattergroup'.
Error in CaribSSTTrendMap_Keys (line 101) set(get(sc1,'Children'),'edgecolor','k','markersize',8);
Does anyone know a workaround for this? I'm at a loss for why markersize and edgecolor would be at different levels. Perhaps there is a new name for markersize???
Thanks, Brad
  댓글 수: 2
Brad
Brad 2012년 5월 11일
Does no one out there use scatterm in 2012a!!!?
Sean de Wolski
Sean de Wolski 2012년 5월 11일
Could you please provide a complete reproducible example?

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

채택된 답변

per isakson
per isakson 2012년 5월 11일
I don't use scatterm. However, I have the toolbox installed and tried the example in the documentation. I noticed
  1. scatterm returns a handle to a hggroup, hgh
  2. the child of hgh is another hggroup, hgh1
  3. the child of hgh1 is a patch, ph1
In which release was hggroup introduced?
'Edgecolor' is a property of the patch object. Thus, my guess is
hgh = scatterm( ..........
hgh1 = get( hgh, 'Children' );
ph1 = get( hgh1, 'Children' );
set( ph1, 'Edgecolor' , ......
  댓글 수: 1
Brad
Brad 2012년 8월 14일
Thank you per isakson - this seems to work. You obviously have a better handle on handles than I do.
Brad

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by