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

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

[Octave-bug-tracker] [bug #43478] First plot in a multiplot figure does


From: Doug Stewart
Subject: [Octave-bug-tracker] [bug #43478] First plot in a multiplot figure does not "hold on" with in a loop
Date: Mon, 27 Oct 2014 12:46:56 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36

Follow-up Comment #1, bug #43478 (project octave):

This shows that the problem is with location 1, 3, 1  not the first subplot
that is drawn.

lf

for i=1:3

  if (i==1)
    mrk='r-';
  else
    mrk='b-';
  endif

  figure(1)
  hold on
  
  subplot (1, 3, 2)
  plot(1.2*i*[-10:10],i* sin(i*[-10:10]),mrk); hold on;

  subplot (1, 3, 1)
  plot(i*[-10:10], sin(i*[-10:10]),mrk); hold on;

  %print("ex", '-depsc2')

endfor

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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