Bug report for Octave 2.1.73 in conjunction with gnuplot 4.2

Zidek, Herbert Herbert.Zidek at epcos.com
Wed Sep 3 06:42:08 CDT 2008


Description:
-----------

The following script fails with `fails_in_gnuplot42==true.'

  The error is "line 0: invalid command."

  It is working properly (but with an additional, undesired output,
in case

   fails_in_gnuplot42==false,
   if an explicit legend is supplied, e.g., plot( x,y, 'r-; ;' ), or
   if the number of curves is being reduced, e.g., 64 instead of 128.



Repeat-By:
---------

Run the script with fails_in_gnuplot42==true.



Script:
------

fails_in_gnuplot42 = true;

x = 1:500;
y = [];

for i = 1:128
  y = [ y; sin(x/(50+i)) ];
end

if ( fails_in_gnuplot42 )

  __gnuplot_set__ terminal postscript;
  __gnuplot_set__ output 'xx.ps';
  plot( x,y, 'r-' );

else

  plot( x,y, 'r-' );
  __gnuplot_set__ terminal postscript;
  __gnuplot_set__ output 'xx.ps';
  replot

end
--

  Best regards,
  Herbert Zidek
________________________________________________________________________

  Dr. Herbert P. Zidek
  EPCOS AG        Surface Acoustic Wave Components Division
  SAW RD BT IE   (R&D, Basics & Design Tools,
                  Integration & Electromagnetics)
  P.O. Box 80 17 09                    Phone:  ++49 / 89 636-23983
  D-81617 Munich                       Fax:    ++49 / 89 636-27304
  Germany                              mailto: herbert.zidek at epcos.com
________________________________________________________________________

  Headquarters: Munich
  Commercial register of the local court: Munich, HRB 127250
  Chairman of the Supervisory Board: Klaus Ziegler
  Management Board: Gerhard Pegam: President & CEO,
                    Helmut Koenig, Dr. Werner Faber
________________________________________________________________________


More information about the Bug-octave mailing list