[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 19:24:46 -0500 |
On Jan 19, 2014, at 5:42 PM, byron.hawkins <address@hidden> wrote:
> Sorry, I don't understand. I tried to set the graphics toolkit to gnuplot
> like this, but got the same result:
>
> graphics_toolkit("gnuplot")
> 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 point.tex
>
> 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 20, column 1
>
> It is still trying to print with fltk. Might there be different toolkit
> settings for "plot" and "print"? Thanks for your help.
Try ...
close all
graphics_toolkit gnuplot
... or ...
graphics_toolkit (gcf (), "gnuplot")
... and then render the plot and use print() to produce the tikz file.
plot (rand (3))
print -ptikz foo.tex
Ben