Insert solar symbol on plot axis

조회 수: 5 (최근 30일)
charles aouad
charles aouad 2019년 7월 21일
댓글: Walter Roberson 2019년 7월 24일
Hello everyone, how can i insert the solar symbol on my plot axis .tried the following and it doesnt work solar = char(9737) ylabel( ['10^{-6} M_',solar, 'Year^{-1}'], 'FontSize',14,'FontWeight','bold'):it gives “?”instead of solar symbol.help

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 7월 21일
편집: KALYAN ACHARJYA 2019년 7월 21일
Is this you are looking for?
I tried with your code
solar=char(9737)
ylabel(['10^{-6} M_',solar, 'Year^{-1}'], 'FontSize',14,'FontWeight','bold');
  댓글 수: 10
charles aouad
charles aouad 2019년 7월 24일
thank you very much walter for your help.
is there any way where i can specify that this label will gof or this sub plot without the handles?
like when i create the subplot i can immdiately label the axes?
why the command set('sub1','ylabel','velocity in km/s') doesnt work?
Walter Roberson
Walter Roberson 2019년 7월 24일
I do not know what sub1 is in this context.
You need to be careful with calling xlabel() or ylabel() just after your subplot() call, in that if you do not do a hold on before you plot() then plot() will probably erase the labels.

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

카테고리

Help CenterFile Exchange에서 Gravitation, Cosmology & Astrophysics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by