# HG changeset patch # User Ben Abbott # Date 1317330240 14400 # Node ID e0ef7a3f35d979865d285a65ad8788739a0493f4 # Parent f6bbdea030b22b54c8b195210e1bd4898d0a41a0 Fix bug introduced by 105c72254967. diff --git a/scripts/plot/__gnuplot_drawnow__.m b/scripts/plot/__gnuplot_drawnow__.m --- a/scripts/plot/__gnuplot_drawnow__.m +++ b/scripts/plot/__gnuplot_drawnow__.m @@ -149,7 +149,7 @@ ## Generate gnuplot title string for plot windows. if (output_to_screen (term) && ~strcmp (term, "dumb")) fig.numbertitle = get (h, "numbertitle"); - fig.name = strrep ("\"", "\\\"", get (h, "name")); + fig.name = strrep (get (h, "name"), "\"", "\\\""); if (strcmpi (get (h, "numbertitle"), "on")) title_str = sprintf ("Figure %d", h); else diff --git a/scripts/plot/private/__patch__.m b/scripts/plot/private/__patch__.m --- a/scripts/plot/private/__patch__.m +++ b/scripts/plot/private/__patch__.m @@ -289,7 +289,7 @@ if (ndims (c) == 3) fvc = reshape (c, size (c, 1) * size (c, 2), size(c, 3)); else - fvc = c(:).'; + fvc = c.'; endif args = {"faces", faces, "vertices", vert, "facevertexcdata", fvc, args{:}};