2015-02-02 2 views
2

PDF 형식의 이미지가 있으며 기존 gnuplot 플롯에 추가하고 싶습니다.gnuplot 플롯에 pdf 이미지를 추가하는 방법은 무엇입니까?

내 현재 코드는 같다 :

set terminal postscript eps enhanced color solid font "Nimbus Roman No9 L" 35 
set output '|epstopdf --filter > Patterns.pdf' 
set size 1.8,1.8 
set style data histogram 
set style histogram cluster gap 1 
plot 'Patterns.dat' using ($2/2.90):xtic(1) title col fs pattern 3 

과 pdf 파일은 image.pdf에 저장됩니다.

답변

5

최소한 epslatex 터미널에서 수행 할 수 있습니다.

set term epslatex standalone 
set output "plot1.tex" 
plot sin(x) 

지금 외부의 gnuplot, 나는 (plot1.pdf 이름) PDF 파일을 생성합니다 :

pdflatex plot1.tex 
첫째, 내 예를 들어, 나는의 gnuplot 생성 그림되는 PDF 파일을 생성하기 위하여려고하고있다

이렇게 보이는 :

enter image description here

는 그래프의 gnuplot 이것을 포함하려면 I 다시 epslatex 단말기를 사용 다시 pdflatex을 실행

set term epslatex standalone 
set output "plot2.tex" 
set label at graph 0.75,0.25 '\includegraphics[width=2cm]{plot1.pdf}' 
plot x 

그리고 : 나는의 gnuplot label과 함께 \includegraphics[]{} 환경을 사용하여, 라텍스 설명서의 PDF 파일과 함께 할 것 같은 plot1.pdf을 포함, plot2.pdf를 생성

pdflatex plot2.tex 

을하는 다음과 같습니다 :

enter image description here

label의 위치를 ​​변경하면 포함 된 pdf의 위치를 ​​변경할 수 있습니다. width을 변경하면 포함 된 pdf의 너비를 변경할 수 있습니다.

관련 문제