[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't print a simple example with tikz in Octave 3.8.0
From: |
Ben Abbott |
Subject: |
Re: Can't print a simple example with tikz in Octave 3.8.0 |
Date: |
Sun, 19 Jan 2014 16:04:16 -0500 |
On Jan 19, 2014, at 2:51 PM, byron.hawkins <address@hidden> wrote:
> I'm trying to print this simple example to tex using tikz, and I keep getting
> a strange error:
>
> X = [ 1 ];
> data = rand (1, 1);
> c.standalone = '1';
> c.axistype = 'semilogyaxis';
> c.xlabel = 'X Axis';
> c.ylabel = 'Y Axis';
> c.title = 'Plot title';
> c.runtex = 1;
> p.x = X;
> p.y = data;
> p.color = 'red';
> p.mark = 'o';
> p.legend = 'Data';
> P{1} = p;
> print -dtikz point.tex
>
> Octave says:
>
> error: __fltk_print__: A(I,J): column index out of bounds; value 2 out
> of bound 0
> error: called from:
> error:
> /usr/local/share/octave/3.8.0/m/plot/util/private/__fltk_print__.m at line
> 157, column 8
> error: /usr/local/share/octave/3.8.0/m/plot/util/print.m at line 422,
> column 14
> error: /mnt/urba/workspace/temp/octave/test.m at line 17, column 1
>
> But it works fine if I use the printpgf package instead, by replacing the
> last line with:
>
> c.filename = 'point.pgf';
> printpgf(c, P)
>
> This generates a very nice pdf. Now I just need to get the corresponding tex
> file.
>
> I built octave from source (tarball download) and am using it for the first
> time, so there may be something wrong with the configuration. Searching
> online about this particular error hasn't helped me find an answer so far.
> Please let me know if someone can help me get this working. Thanks!
>
> Byron
I faintly recall that TikZ isn't working for the FLTK toolkit. Have you tried
the gnuplot toolkit? If your gnuplot supports the lua/tikz terminal than that
should work.
Ben