octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31522] Flickering movies


From: David Bateman
Subject: [Octave-bug-tracker] [bug #31522] Flickering movies
Date: Wed, 03 Nov 2010 21:16:00 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010 Iceweasel/3.0.14 (Debian-3.0.14-1)

Follow-up Comment #4, bug #31522 (project octave):

Currently only one axes is really used with the gnuplot backend (see the
recent comments in the bug report https://savannah.gnu.org/bugs/?30461).
However in the frontend there is an undrawn access containing the legend. It
would be easy to fix this bug report with something like

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
@@ -302,8 +302,12 @@
     fputs (plot_stream, "unset multiplot;n");
     flickering_terms = {"x11", "windows", "wxt", "dumb"};
     if (! any (strcmp (term, flickering_terms))
-        || numel (findall (h, "type", "axes")) > 1
+        || (numel (findall (h, "type", "axes")) -
+            sum (strcmp (get (findall (h, "type", "axes"), "tag"),
"legend"))) > 1
         || numel (findall (h, "type", "image")) > 0)
+
+
+
       fprintf (plot_stream, "%sn", term_str);
       if (nargin == 5)
         if (! isempty (file))

Though if I add the additional axis for the legend I was proposing to add to
allow legend to work properly with the plotyy function, then the above won't
be possible in generally. What I therefore propose is to apply something like
the above patch, and limit the creation of an additional gnuplot axis for the
legend to the cases where the legend refers to plot from different axes; a
case that would already be broken for this bug report in any case.

D.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31522>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]