지금까지 하이퍼 텍스트의 글꼴 크기를 변경하는 방법에 대한 문서를 찾을 수 없습니다.
에서 help hypertext
어떤 글꼴 크기에 대해 아무 말도하지 않습니다.
plot 'data' using 1:2:0 with labels hypertext point pt 7 \ title 'mouse over point to see its order in data set'
그리고 다음 사용은 font ",30"
효과가 없습니다.
plot 'data' using 1:2:0 with labels font ",30" hypertext point pt 7
이 외에도 help labels
다음 구문의 가능성을 나열합니다.
sprintf("{/=30 %d}",$1**2)
그러나이 테스트와 모든 다음 테스트는 원하는 결과를 얻지 못합니다. 표준 크기의 레이블 및 틱이지만 더 큰 크기의 하이퍼 텍스트 만 있습니다.
마지막 테스트는 큰 하이퍼 텍스트와 작은 레이블 / 틱이지만 그래프의 비율이 좋지 않습니다. 이것에 대한 해결책이 있습니까?
암호:
### hypertext font size
# Test1:
reset session
set title "default terminal " # in my case wxt
plot '+' u 1:($1**2):($1**2) w labels font ",30" hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1
# Test2:
reset session
set term wxt font ",10"
set title "explicitely set wxt terminal" font ",10"
plot '+' u 1:($1**2):($1**2) w labels font ",30" hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1
# Test3:
reset session
set title "only labels without hypertext using {/=30 } syntax"
plot '+' u 1:($1**2):(sprintf("{/=30 %d}",$1**2)) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1
# Test4:
reset session
set term wxt font ",30"
set title "setting terminal font to 30"
plot '+' u 1:($1**2):($1**2) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
pause -1
# Test5:
reset session
set term wxt font ",30"
set title "setting terminal font to 30 and the labels to 10 again" font ",10"
set xlabel font ",10"
set ylabel font ",10"
set xtics font ",10"
set ytics font ",10"
plot '+' u 1:($1**2):($1**2) w labels hypertext point pt 7 ps 3 lc rgb "red" notitle
### end of code
다음은 기본 글꼴과 분리 된 하이퍼 텍스트 글꼴을 지정하기 위해 표시된대로 플롯 명령을 수정 한 후 배포 된 데모 "hypertext.dem"에서 qt 터미널의 디스플레이 스크린 샷입니다.
gnuplot> load 'hypertext.dem'
gnuplot> ^C
gnuplot> plot 'cities.dat' using 5:4:(City(1,3)):(Scale(3)) with labels hypertext \
point pt 7 ps var lc rgb "#ffee99" font "VladimirScript,20", \
'cities.dat' using 5:4:(strcol(1)) with labels font ",5"
wxt 터미널에서도 동일한 명령이 작동합니다.
이 명령은 svg 터미널에서도 어느 정도 작동하지만 변경된 글꼴 크기에 맞게 svg 하이퍼 텍스트의 경계 상자를 조정하는 방법을 알지 못했습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다