Question
I want
neither
nor
Description
The first figure is what I want.
The second figure is obtained by
set terminal cairolatex pdf
set output 'cairolatex.pdf'
set xlabel '$sigma$'
set ylabel '$alpha$'
plot 'data' u 1:2 w l
For the third figure, first
set terminal cairolatex pdf
set output 'cairolatex.tex'
set xlabel '$sigma$'
set ylabel '$alpha$'
plot 'data' u 1:2 w l
Then
pdflatex plot.tex
where plot.tex
is
documentclass{article}
usepackage{graphics}
egin{document}
input{plot.tex}
end{document}
Edit:
Thanks to Ethan, I can reach
by
set term pdf size 10cm,7cm
set output 'term.pdf'
set xlabel '$sigma$'
set ylabel '$alpha$'
plot 'data' u 1:2 w l
But I want to use latex typesetting for xlabel
and ylabel
.
question from:
https://stackoverflow.com/questions/65867455/using-gnuplot-how-to-obtain-a-pdf-with-canvas-size-including-the-texts 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…