From: <par...@us...> - 2011-12-11 19:46:12
|
Revision: 9368 http://octave.svn.sourceforge.net/octave/?rev=9368&view=rev Author: paramaniac Date: 2011-12-11 19:46:06 +0000 (Sun, 11 Dec 2011) Log Message: ----------- control: axis problem still not fixed Modified Paths: -------------- trunk/octave-forge/main/control/inst/__axis_margin__.m trunk/octave-forge/main/control/inst/bode.m Modified: trunk/octave-forge/main/control/inst/__axis_margin__.m =================================================================== --- trunk/octave-forge/main/control/inst/__axis_margin__.m 2011-12-11 19:05:54 UTC (rev 9367) +++ trunk/octave-forge/main/control/inst/__axis_margin__.m 2011-12-11 19:46:06 UTC (rev 9368) @@ -36,11 +36,11 @@ ## @end table ## @end deftypefn -function axvec = __axis_margin__ (axdata, left, right) +function axvec = __axis_margin__ (axdata) ## compute axis limits - minv = axdata(3); - maxv = axdata(4); + minv = axdata(1); + maxv = axdata(2); delv = (maxv-minv)/2; # breadth of the plot midv = (minv + maxv)/2; # midpoint of the plot axmid = [midv, midv]; @@ -58,6 +58,6 @@ endif endif - axvec = [left, right, axmid + axdel]; + axvec = axmid + axdel; endfunction Modified: trunk/octave-forge/main/control/inst/bode.m =================================================================== --- trunk/octave-forge/main/control/inst/bode.m 2011-12-11 19:05:54 UTC (rev 9367) +++ trunk/octave-forge/main/control/inst/bode.m 2011-12-11 19:46:06 UTC (rev 9368) @@ -72,14 +72,16 @@ subplot (2, 1, 1) semilogx (w, mag_db) - axis (__axis_margin__ (axis, w(1), w(end))) + axis ("tight") + ylim (__axis_margin__ (ylim)) grid ("on") title (["Bode Diagram of ", inputname(1)]) ylabel ("Magnitude [dB]") subplot (2, 1, 2) semilogx (w, pha) - axis (__axis_margin__ (axis, w(1), w(end))) + axis ("tight") + ylim (__axis_margin__ (ylim)) grid ("on") xlabel (xl_str) ylabel ("Phase [deg]") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |