diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/SIstyle/grphset.m')
-rw-r--r-- | Master/texmf-dist/source/latex/SIstyle/grphset.m | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/SIstyle/grphset.m b/Master/texmf-dist/source/latex/SIstyle/grphset.m new file mode 100644 index 00000000000..12ccdd16d07 --- /dev/null +++ b/Master/texmf-dist/source/latex/SIstyle/grphset.m @@ -0,0 +1,38 @@ + +%----- Beef up the graphics --------------------- + +function grphset(fHnd,PP) + +FntNme = 'Times New Roman'; +FntSze = 10; +FntAng = 'normal'; +GrfLnW = .01; + +set(fHnd,'PaperType','a4letter', ... + 'PaperOrientation','portrait', ... + 'PaperUnits','centimeters', ... + 'PaperPosition',PP); + +aHnd = get(fHnd,'Children'); + +for j = 1:length(aHnd) + set(aHnd(j), 'FontName',FntNme, 'FontSize',FntSze, 'FontAngle', FntAng); + set(get(aHnd(j),'Title' ), 'FontName',FntNme, 'FontSize',FntSze, 'FontAngle', FntAng); + set(get(aHnd(j),'XLabel'), 'FontName',FntNme, 'FontSize',FntSze, 'FontAngle', FntAng); + set(get(aHnd(j),'YLabel'), 'FontName',FntNme, 'FontSize',FntSze, 'FontAngle', FntAng); + set(get(aHnd(j),'ZLabel'), 'FontName',FntNme, 'FontSize',FntSze, 'FontAngle', FntAng); + + chHnd = get(aHnd(j),'Children'); + + for i=1:length(chHnd) + if get(chHnd(i),'Type')=='line' + set(chHnd(i),'LineWidth',GrfLnW); + end + if get(chHnd(i),'Type')=='text' + set(chHnd(i),'FontName',FntNme,'FontSize',FntSze, 'FontAngle', FntAng); + end + end +end + + + |