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 am trying to use the epslatex terminal in gnuplot, using the example code from this site.

Copying and pasting this example and running the gnuplot script produces the following output: naked plot

No labels! This happens under Ubuntu 11.10 using gnuplot 4.4.4 and under Arch using gnuplot 4.6.0.

Looking at the output .tex file it seems that the label text is there in the file, but might be put outside the plot area:

\begin{picture}(5040.00,3772.00)%
  \gplgaddtomacro\gplbacktext{%
    \csname LTb\endcsname%
    \put(860,1122){\makebox(0,0)[r]{\strut{}$-1$}}%
    \put(860,2086){\makebox(0,0)[r]{\strut{}$0$}}%
    \put(860,3049){\makebox(0,0)[r]{\strut{}$1$}}%
    \put(980,440){\makebox(0,0){\strut{}$-2\pi$}}%
    \put(1875,440){\makebox(0,0){\strut{}$-\pi$}}%
    \put(2770,440){\makebox(0,0){\strut{}$0$}}%
    \put(3665,440){\makebox(0,0){\strut{}$\pi$}}%
    \put(4560,440){\makebox(0,0){\strut{}$2\pi$}}%
    \put(160,2085){\rotatebox{-270}{\makebox(0,0){\strut{}$y$}}}%
    \put(2770,140){\makebox(0,0){\strut{}$x$}}%
  }%  
  \gplgaddtomacro\gplfronttext{%
    \csname LTb\endcsname%
    \put(3725,3238){\makebox(0,0)[r]{\strut{}$\sin(x)$}}%
  }%  
  \gplbacktext
  \put(0,0){\includegraphics{terminal_epslatex-inc}}%
  \gplfronttext
\end{picture}

Any ideas as to why there would be no label text visible here?

share|improve this question

closed as too localized by Martin Scharrer Jan 25 '13 at 13:07

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
The linked example works for me. Indeed, I get other positions for the label with gnuplot 4.4 patchlevel 3 on OpenSuse 12.1. Here is my tex file. Don't know why you get a faulty tex file, though... Are there any gnuplot configuration files? –  sebschub May 25 '12 at 8:11
    
Try to delete the line \gplfronttext. –  user24968 Jan 25 '13 at 2:32

1 Answer 1

up vote 0 down vote accepted

PEBKAC. I thought the generated .eps file was supposed to be the final (standalone) output, but it is necessary to run pdflatex on the generated .tex file to properly render the plot with labels.

share|improve this answer

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