From bug-request at octave dot org Tue Feb 28 10:25:50 2006 Subject: Re: subplot From: Ben Arthur To: bug at octave dot org Date: Tue, 28 Feb 2006 10:23:23 -0600 ahah! martin hit it spot on: a "hold on" which i had previously executed was at fault. but now with further playing around i believe there is still a bug, but this time in "hold on": figure(1); clf; subplot(2,2,1); plot([1 2 3]); subplot(2,2,3); hold on % try w/ and w/o this line plot([5 5 5]); plot([4 5 6]); i don't know to what extent you guys want/pursue matlab compatability, but the behavior exhibited by the above script either with or without the "hold on" statement does not mimic matlab. more importantly, the behavior *with* the hold on statement is clearly not desirable, as it plots the data from all three plots in the current subplot. interestingly, when i run this script, either with or without the hold on, i get the following warnings: warning: in graw near line 10, column 2: warning: graw is deprecated and will be removed from a future warning: version of Octave. warning: You should use the higher-level plot functions warning: ("plot", "mesh", "semilogx", etc.) instead warning: of the low-level plotting commands. warning: If you absolutely must use this function, use the warning: internal version __gnuplot_raw__ instead. warning: gset is deprecated and will be removed from a future warning: version of Octave. warning: You should use the higher-level plot functions warning: ("plot", "mesh", "semilogx", etc.) instead warning: of the low-level plotting commands. warning: If you absolutely must use this function, use the warning: internal version __gnuplot_set__ instead. as a reminder, this is with a standard fink install of 2.1.71 on OS X 10.4.5 using X11. thanks for the quick reply to my last query. it's good to know octave is being actively maintained. ben > Works correctly here with Fink-installed octave-2.1.71. Ben, you didn't > run "hold on" and forgot or something? ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------