Funny question on plotting the graph

2 次查看(过去 30 天)
Idra
Idra 2012-11-7
I have this command;
clear
figure
x=5;
y1=0.9787;
y2=0.9743;
y3=0.9577;
plot(x,y1,'.','MarkerSize',15)
hold all
plot(x,y2,'*','MarkerSize',10)
plot(x,y3,'+', 'MarkerSize',10)
hleg1 = legend('Lenth', 'Dong', 'Berk & Picard',2);
set(hleg1,'FontSize',10)
set(hleg1,'FontAngle','italic')
xlabel('Size of active contrast')
ylabel('Power')
set(gca,'XTick',3:1:6)
str=['6s';'4s';'5s'];
set(gca,'XTickLabel',str,'fontname','symbol')
*however, seems that the font in the legend has be changed to the symbol too.How to change back to the original form? I want the legend to be at the same position. Is there any suggestion?
  1 个评论
Walter Roberson
Walter Roberson 2012-11-7
Why do you want fontname of symbol for the axes? What character are you trying to represent?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Labels and Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by