diff scripts/plot/__gnuplot_drawnow__.m @ 13252:e0ef7a3f35d9

Fix bug introduced by 105c72254967.
author Ben Abbott <bpabbott@mac.com>
date Thu, 29 Sep 2011 17:04:00 -0400
parents 105c72254967
children 3f3aa11aca41 b265b592c796
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_drawnow__.m	Thu Sep 29 14:16:58 2011 -0400
+++ b/scripts/plot/__gnuplot_drawnow__.m	Thu Sep 29 17:04:00 2011 -0400
@@ -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