Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to use gnuplot 2d graphs in my LaTeX document. I need to have a LaTeX expression in the title of y-axis, for example $\langle \psi | \psi \rangle$ rotated vertically and centered at the axis.

What would be the best way to do it?

Can I use LaTeX expressions in gnuplot? I know one can use Greek symbols in gnuplot.

share|improve this question
    
2nd comment in this forum post helps old.nabble.com/… –  kirill_igum Nov 1 '10 at 3:54

2 Answers 2

A quick google search brought up this tutorial. Depending on what type of plot you intend to make, you may also be able to use pgf/tikz interface to gnuplot.

I see now after more careful reading of your question that you are interested in rotated and centered text. In that case, if you have a recent version of gnuplot, you can try the new tikz terminal. There is an example available here.

share|improve this answer
    
that's what i was using. but i want to take a png image (some of the graphs are contour plots). and put labels on the side for axis. –  kirill_igum Nov 1 '10 at 3:09
    
I did not notice that you want to rotate the labels, I just concentrated on the part of your question where you ask about using LaTeX expressions in gnuplot. You can rotate latex boxes using the graphicx package, but using the tikz terminal will give you more options. To produce a png image, you can start with pdf from pdflatex, and convert it to png. –  Jan Hlavacek Nov 1 '10 at 4:01

Think about using the pgfplots package for your plots. It uses Gnuplot as back-end.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.