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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use the following GnuPlot commands:

set terminal latex size 12cm, 7cm
set output "4Kalibratie.tex"
set nokey
set xlabel "kanaal $k$"
set ylabel "$E$ (MeV)"
plot [0:2000] [0:10] 0.00261937*x+4.14561558, "4Kalibratie.txt" using 2:1

However where the function is a linear fit, first LaTeX complained about \Diamond so I included \usepackage{amssymb}, now it can render the PDF, but the diamonds aren't centered on the datapoints: the left corner is positioned exactly there... Either I gave it the wrong package, or I am doing things wrong again!

share|improve this question

Specifying point type 2 by

plot [0:2000] [0:10] 0.00261937*x+4.14561558, "4Kalibratie.txt" using 2:1 pt 2

solved my problem (crosshairs are centered correctly and give more precision).

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.