reporting: @seriesElements: rename numElements to numSeriesElements to conform with other numClass methods
parent
7428ea2cc6
commit
965f54884d
|
@ -33,7 +33,7 @@ if ~isempty(o.figname)
|
|||
o.figname);
|
||||
end
|
||||
|
||||
if ~o.seriesElements.numElements()
|
||||
if ~o.seriesElements.numSeriesElements()
|
||||
warning('@graph.crepateGraph: no series to plot, returning');
|
||||
return;
|
||||
end
|
||||
|
@ -52,7 +52,7 @@ else
|
|||
dd = o.xrange;
|
||||
end
|
||||
|
||||
ne = o.seriesElements.numElements();
|
||||
ne = o.seriesElements.numSeriesElements();
|
||||
line_handles = zeros(ne, 1);
|
||||
for i=1:ne
|
||||
line_handles(i) = o.seriesElements(i).getLine(dd);
|
||||
|
|
|
@ -31,5 +31,5 @@ function lastIndex = end(o, k, n)
|
|||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
assert(k==1 && n==1, '@graph/end: graph only has one dimension');
|
||||
lastIndex = o.seriesElements.numElements();
|
||||
lastIndex = o.seriesElements.numSeriesElements();
|
||||
end
|
|
@ -18,7 +18,7 @@ function dd = getMaxRange(o)
|
|||
% You should have received a copy of the GNU General Public License
|
||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
ne = numElements(o);
|
||||
ne = numSeriesElements(o);
|
||||
ddmin = dynDate();
|
||||
ddmax = dynDate();
|
||||
for i=1:ne
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function n = numElements(o)
|
||||
% function n = numElements(o)
|
||||
function n = numSeriesElements(o)
|
||||
% function n = numSeriesElements(o)
|
||||
|
||||
% Copyright (C) 2013 Dynare Team
|
||||
%
|
|
@ -30,7 +30,7 @@ function o = write(o, fid)
|
|||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
assert(fid ~= -1);
|
||||
if ~o.seriesElements.numElements()
|
||||
if ~o.seriesElements.numSeriesElements()
|
||||
warning('@table.write: no series to plot, returning');
|
||||
return;
|
||||
end
|
||||
|
@ -122,7 +122,7 @@ fprintf(fid, '\\\\%%\n');
|
|||
fprintf(fid, '%%\n');
|
||||
|
||||
% Write Table Data
|
||||
ne = o.seriesElements.numElements();
|
||||
ne = o.seriesElements.numSeriesElements();
|
||||
for i=1:ne
|
||||
o.seriesElements(i).write(fid, dates, o.precision);
|
||||
if o.showHlines
|
||||
|
|
Loading…
Reference in New Issue