Ubuntu

GNUPLOT doesn't work with TikZ due to deprecated table terminal

Reported by Muelli on 2010-11-04
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
texlive-base (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: texlive-base

I tried to compile the following example: http://www.texample.net/tikz/examples/gnuplot-basics/
But it fails with GNUPLOT complaining about an invalid terminal:

(./zettel2.out) (/usr/share/texmf-texlive/tex/latex/base/t1cmss.fd) [1{/var/lib
/texmf/fonts/map/pdftex/updmap/pdftex.map}]
set terminal table; set output "zettel2.x.table"; set format "%.5f"
             ^
"zettel2.x.gnuplot", line 1: unknown or ambiguous terminal type; type just 'set terminal' for a list

Package pgf Warning: Plot data file `zettel2.x.table' not found. on input line
210.

set terminal table; set output "zettel2.sin.table"; set format "%.5f"
             ^
"zettel2.sin.gnuplot", line 1: unknown or ambiguous terminal type; type just 'set terminal' for a list

Package pgf Warning: Plot data file `zettel2.sin.table' not found. on input lin
e 212.

set terminal table; set output "zettel2.exp.table"; set format "%.5f"
             ^
"zettel2.exp.gnuplot", line 1: unknown or ambiguous terminal type; type just 'set terminal' for a list

Package pgf Warning: Plot data file `zettel2.exp.table' not found. on input lin
e 214.

In the comments of that TikZ Example some guy writes that "set terminal table" is deprecated and "set table" should be used instead.

And voila, it works if I modify line 288 of /usr/share/texmf/tex/generic/pgf/modules/pgfmoduleplot.code.tex to read
  \xdef\pgf@gnuplot@head#1{set table; set output "#1.table"; set format "%.5f"}

as opposed to

  \xdef\pgf@gnuplot@head#1{set terminal table; set output "#1.table"; set format "%.5f"}

A quick grep shows that other files are affected, too.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: texlive-pictures 2009-10
ProcVersionSignature: Ubuntu 2.6.36-0.4-generic 2.6.36-rc7
Uname: Linux 2.6.36-0-generic x86_64
Architecture: amd64
Date: Thu Nov 4 17:06:50 2010
PackageArchitecture: all
SourcePackage: texlive-base

Håvard Berland (berland) wrote :

I tried the same thing on my Maverick system, using the tex-code from the webside, and then issuing
 $ pdflatex --shell-escape foo.tex

and it worked like a charm.

(latex to dvi also worked)

Heya,

On 08.11.2010 19:27, Håvard Berland wrote:
> I tried the same thing on my Maverick system, using the tex-code from the webside, and then issuing
> $ pdflatex --shell-escape foo.tex
>
> and it worked like a charm.
>
How do you know it worked?

It doesn't generate an error but rather a warning like I indicated in my
report.
And it can't work for you, unless you don't have gnuplot 4.4.0-1 and
texlive-pictures 2009-10 installed.

Hospik (jmhospers) wrote :

Confirmed using an old file that used to work on Ubuntu 10.04. Manually fixable but annoying.

Yves Delhaye (yves-delhaye) wrote :

I found here:
http://www.math.uiowa.edu/~kjwillia/pgf_tikz.php

this solution which I modified for ubuntu maverick 10.10:

  Open /usr/share/texmf/tex/generic/pgf/modules/pgfmoduleplot.code.tex and replace "set terminal table" with "set table

Sleft (sleft) wrote :

This bug is in 11.04.

Changed in texlive-base (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers