How to plot the cyclone symbol in a figure?
2 次查看(过去 30 天)
显示 更早的评论
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
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')
回答(1 个)
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 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!