# HG changeset patch # User jwe # Date 1098116864 0 # Node ID ea74d76ff607e49e702fd5d78c97babc16b9a063 # Parent f09fd9e154e86003cb2a96394feedc3eab18ade4 [project @ 2004-10-18 16:27:43 by jwe] diff -r f09fd9e154e8 -r ea74d76ff607 src/ChangeLog --- a/src/ChangeLog Tue Oct 12 12:10:02 2004 +0000 +++ b/src/ChangeLog Mon Oct 18 16:27:44 2004 +0000 @@ -1,3 +1,8 @@ +2004-10-18 John W. Eaton + + * pt-plot.cc (handle_plot_data): If plotting data from file, + always use "using" clause. + 2004-10-12 David Bateman * pt-mat.cc (tm_row_const::tm_row_const_rep::do_init_element, diff -r f09fd9e154e8 -r ea74d76ff607 src/pt-plot.cc --- a/src/pt-plot.cc Tue Oct 12 12:10:02 2004 +0000 +++ b/src/pt-plot.cc Mon Oct 18 16:27:44 2004 +0000 @@ -731,9 +731,6 @@ } else { - // Eliminate the need for printing a using clause to - // plot_buf. - octave_value tmp_data = extract_plot_data (ndim, data); if (tmp_data.is_defined ()) @@ -757,7 +754,13 @@ if (file.length () > 0) { mark_for_deletion (file); - plot_buf << " '" << file << "'"; + + // Include the using clause so that plotting + // with timefmt will work. + + plot_buf << " '" << file << "' " + << Vgnuplot_command_using + << (ndim == 2 ? " 1:2" : " 1:2:3"); } } }