help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't print a simple example with tikz in Octave 3.8.0


From: byron.hawkins
Subject: Can't print a simple example with tikz in Octave 3.8.0
Date: Sun, 19 Jan 2014 11:51:52 -0800 (PST)

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




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Can-t-print-a-simple-example-with-tikz-in-Octave-3-8-0-tp4661174.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]