I am trying to include a set of Octave generated plots in a report, however I am constantly receiving the same error from pgf about it not recognizing \gpcolor

A MWE would be




\gpcolor{gp lt color border}


While this doesn't do anything in particular, it still produces the same error which is:

Package pgfkeys Error: I do not know the key '/tikz/global gp lt color border

This is even happening with other documents which have worked fine previously.

I'm using Debian Jessie, with the texlive-full package installed, along with texstudio

  • Could the answer here help: tex.stackexchange.com/questions/124850/… - perhaps your software is out of date? – bombcar Apr 11 '14 at 16:58
  • I tried the solution mentioned, to install texlive-full, but it doesn't work. Also, this was working at least a month to 2 months ago. – DiJuMx Apr 11 '14 at 17:00
  • That other example has \gpcolor{color=gp lt color border} - does that work? I can't run this example on my Mac. – bombcar Apr 11 '14 at 17:06
  • Ah, that seems to have fixed it, I'm also having problems with \gprgb and \gpfontsize, but the rgb one looks like an xcolor issue ( needs to be \gpcolor{rgb color={0,0,0}} rather than \gpcolor{\gprgb{0}{0}{0}} ), I'll look into \gp fontsize myself – DiJuMx Apr 11 '14 at 17:46

Okay: It appears that this is an issue with the way .tikz files are produced by gnuplot/octave.

In GNUPLOT 4.4 it uses \gpcolor{gp lt color border}, \gpcolor{\gprgbr{r}{g}{b}} and others

In GNUPLOT 4.6 is uses \gpcolor{color= gp lt color border}, \gpcolor{rgb color={r,g,b}} etc.

Essentially, I was using two different systems Ubuntu 12.04 with octave 3.6/gnuplot 4.4, and Debian Jessie with Octave 3.8/gnuplot 4.6

Thanks to bombcar for the assistance in the comments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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