I'm hoping someone can help me with the following problem. I have a .p file for generating a .eps file using gnuplot. I want both the y-axis label and the y-axis tics to be formatted using LaTeX. Getting this done is no problem. The problem I am having is that having both of these options creates an unreasonable amount of white-space between the label and tics, which squashes the actual plot. Setting the offset for either the y label or the tics just moves them; the plot does not resize itself accordingly. Does anyone know how to fix this issue?(adsbygoogle = window.adsbygoogle || []).push({});

My .p file is

Thanks for any suggestions.Code (Text):

reset

set term epslatex standalone size 5 in, 3 in color colortext # 5 in, 3 in is default

set output "output.tex"

#set autoscale

set xrange [0:11]

set yrange [0:pi]

set key right bottom

set key spacing 1.3

set xtics 0,1,10

set ytics ('$0$' 0, '$\frac{\pi}{12}$' pi/12, '$\frac{\pi}{6}$' pi/6, '$\frac{\pi}{4}$' pi/4, '$\frac{\pi}{3}$' pi/3, '$\frac{5\pi}{12}$' 5*pi/12, '$\frac{\pi}{2}$' pi/2, '$\frac{7\pi}{12}$' 7*pi/12, '$\frac{2\pi}{3}$' 2*pi/3, '$\frac{3\pi}{4}$' 3*pi/4)

set style line 1 lt 1 lw 9 pt 0 ps 0

set style line 2 lt 3 lw 9 pt 0 ps 0

set xlabel 'Frequency $\omega$' #offset 0.0,0.5

set ylabel 'Phase $\varphi$' #offset 15,0.0

plot 'phasevomega.txt' u 1:(atan2($4,$3)) every ::(47*384)::(48*384-1) w lines ls 1 lc rgb"red" title 'Simulation data'

set output

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Gnuplot: ylabels + ytics + LaTeX causes too much whitespace

**Physics Forums | Science Articles, Homework Help, Discussion**