Hey, this might be the wrong place to ask this question but I have a few problems using gnuplot. The problem is that when using the epslatex terminal my labels on the axis dissapears.(adsbygoogle = window.adsbygoogle || []).push({});

This is the code I am using

And here are the results:Code (Text):

set terminal latex or epslatex color or wxt

set output "psifunc.tex"

h = 1.054571628E-34

psi(x) = 1/((pi*h)**(1.0/4.0))*exp(-1/(2*h)*x**2)

set title ''

set format xy '$%g$'

set ylabel 'Sannolikhetstathet'

set xlabel '$A$'

set xrange [-4*sqrt(h/2):4*sqrt(h/2)]

set xtics ('$-4\sqrt{\frac{\hbar}{2}}$' -4*sqrt(h/2),\

'$-2\sqrt{\frac{\hbar}{2}}$' -2*sqrt(h/2),\

'0' 0,\

'$2\sqrt{\frac{\hbar}{2}}$' 2*sqrt(h/2),\

'$4\sqrt{\frac{\hbar}{2}}$' 4*sqrt(h/2)) nomirror

plot psi(x)**2 title '$|\psi_1(A)|^2$'

unset output

http://i.imgur.com/rGW73.png

Don't really know why it is not working. It seems to work fine in the other terminals.

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

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

# Homework Help: Gnuplot problems (maybe wrong category)

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