필터 지우기
필터 지우기

How to plot the cyclone symbol in a figure?

조회 수: 4 (최근 30일)
Cecilia Fleeger
Cecilia Fleeger 2019년 7월 19일
이동: KSSV 2023년 5월 10일
I have to mark the location of a cyclone in a plot. I couldn't find a special character for meteorologic symbol for cyclone. Does Matlab has a symbol for cyclone?
Thank you,
Cecilia
  댓글 수: 2
the cyclist
the cyclist 2019년 7월 19일
I could not figure out a way, and I am a bit pessimistic. Armed with info from here, I thought the following code might work, but you can see that it did not display the cyclone unicode (but did display the ersatz one that Star Strider recommended).
figure
ht(1) = text(0.2,0.5,char(167));
ht(2) = text(0.8,0.5,char(127744));
set(ht,'FontSize',48,'FontName','Symbola')
test.png
Cecilia Fleeger
Cecilia Fleeger 2019년 7월 25일
Thank you @the cyclist. I guess it's time to push forward so Matlab will add meteological symbols in the special character database.

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

답변 (1개)

Star Strider
Star Strider 2019년 7월 19일
I am not aware of one, although I have not yet needed to use one.
One option is to use the section sign (§) with a text object:
text(xc, yc, char(167), 'HorizontalAlignment','center', 'VerticalAlignment','middle')
Here ‘xc’ and ‘yc’ are the respective (x,y) coordinates where you need to plot it.
  댓글 수: 2
Cecilia Fleeger
Cecilia Fleeger 2019년 7월 25일
이동: KSSV 2023년 5월 10일
Thank you @Star Strider. I ended up using a circle to present centroid of hurricane path.
Star Strider
Star Strider 2019년 7월 25일
이동: KSSV 2023년 5월 10일
My pleasure.

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

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by