Insert solar symbol on plot axis

4 Ansichten (letzte 30 Tage)
charles aouad
charles aouad am 21 Jul. 2019
Kommentiert: Walter Roberson am 24 Jul. 2019
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

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 21 Jul. 2019
Bearbeitet: KALYAN ACHARJYA am 21 Jul. 2019
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 Kommentare
charles aouad
charles aouad am 24 Jul. 2019
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 am 24 Jul. 2019
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Gravitation, Cosmology & Astrophysics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by