Matlab的figure常用屬性設置


Matlab plot畫圖坐標字體、字號、范圍等設置-百度經驗
https://jingyan.baidu.com/article/ae97a646013e05bbfd461d0b.html

figure()

x=0:0.2:8;

plot(x,sin(x),'-k', 'LineWidth',2);

set(gca,'linewidth',2,'fontsize',30,'fontname','Times');  %% 線寬 字號 字體

legend('sinx'); %%圖例

xlabel('x','Fontname', 'Times New Roman','FontSize',12); %% x坐標,顯示內容,字號,字體

set(gca,'XTick',[0:2:8]) %¸ %改變x軸坐標間隔顯示

 

坐標區的外觀和行為 - MATLAB - MathWorks 中國
https://ww2.mathworks.cn/help/matlab/ref/matlab.graphics.axis.axes-properties.html

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM