国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

matlab如何設(shè)置橫縱坐標(biāo)軸的字體粗細(xì)

這篇具有很好參考價值的文章主要介紹了matlab如何設(shè)置橫縱坐標(biāo)軸的字體粗細(xì)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

網(wǎng)上的介紹真是良莠不齊,終于自己摸索出來?。?!

1,如果要把圖例標(biāo)注的文字加粗,則在legend1參數(shù)里面

%這句參數(shù)可修改圖例標(biāo)注的位置,和字體,耶,'Location','SouthEast'
legend1=legend('FontName','Times New Roman',tmpName,'Interpreter', 'none','fontsize',fontSizeLegend,'Location','SouthEast');
title(titleName,'fontsize',fontSize,'FontName','Times New Roman');
xlabel(xLabelName,'fontsize',fontSize,'FontName','Times New Roman');
ylabel(yLabelName,'fontsize',fontSize,'FontName','Times New Roman');
set(gca,'fontweight','bold');%添加這句可以增加橫縱坐標(biāo)軸粗細(xì)

2,如果只要把x軸刻度加粗,那就更改xlabel里面的參數(shù)'fontweight','bold'

3,如果只要把y軸刻度加粗,那就更改ylabel里面的參數(shù)'fontweight','bold'

可能代碼不夠完整,這個是我數(shù)據(jù)集benchmark的源代碼,也是在這個基礎(chǔ)上加粗字體文章來源地址http://www.zghlxwxcb.cn/news/detail-507875.html

function plotDrawSave(numTrk,plotDrawStyle,aveSuccessRatePlot,idxSeqSet,rankNum,rankingType,rankIdx,nameTrkAll,thresholdSet,titleName,xLabelName,yLabelName,figName,metricType)

aveSuccessRate11=[];

scrsz = get(0,'ScreenSize');

for idxTrk=1:numTrk
    %each row is the sr plot of one sequence
    tmp=aveSuccessRatePlot(idxTrk, idxSeqSet,:);
    aa=reshape(tmp,[length(idxSeqSet),size(aveSuccessRatePlot,3)]);
    aa=aa(sum(aa,2)>eps,:);
    bb=mean(aa);
    switch rankingType
        case 'AUC'
            perf(idxTrk) = mean(bb);
        case 'threshold'
            perf(idxTrk) = bb(rankIdx);
    end
end

[tmp,indexSort]=sort(perf,'descend');

i=1;
AUC=[];

fontSize = 16;
fontSizeLegend = 10;

figure1 = figure;

axes1 = axes('Parent',figure1,'FontSize',14);
set(gca,'fontweight','bold'); %可以加粗圖例的字體
for idxTrk=indexSort(1:rankNum)

    tmp=aveSuccessRatePlot(idxTrk,idxSeqSet,:);
    aa=reshape(tmp,[length(idxSeqSet),size(aveSuccessRatePlot,3)]);
    aa=aa(sum(aa,2)>eps,:);
    bb=mean(aa);
    
    switch rankingType
        case 'AUC'
            score = mean(bb);
            tmp=sprintf('%.3f', score);
        case 'threshold'
            score = bb(rankIdx);
            tmp=sprintf('%.3f', score);
    end    
    
    tmpName{i} = [nameTrkAll{idxTrk} ' [' tmp ']'];
    h(i) = plot(thresholdSet,bb,'color',plotDrawStyle{i}.color, 'lineStyle', plotDrawStyle{i}.lineStyle,'lineWidth', 2,'Parent',axes1);
    set(gca,'fontweight','bold');%添加的增加橫縱坐標(biāo)軸粗細(xì)
    hold on
    i=i+1;
end

%可修改圖例標(biāo)注的位置(右下角),和字體,耶,SouthEast
legend1=legend('FontName','Times New Roman',tmpName,'Interpreter', 'none','fontsize',fontSizeLegend,'Location','SouthWest');
%可以加粗圖例的字體
title(titleName,'fontsize',fontSize,'FontName','Times New Roman','fontweight','bold');  
xlabel(xLabelName,'fontsize',fontSize,'FontName','Times New Roman');
ylabel(yLabelName,'fontsize',fontSize,'FontName','Times New Roman');

到了這里,關(guān)于matlab如何設(shè)置橫縱坐標(biāo)軸的字體粗細(xì)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包