[Top][All Lists]

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

[Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, ax

From: Rik
Subject: [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly
Date: Wed, 14 Dec 2011 02:43:19 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0

Follow-up Comment #7, bug #35034 (project octave):

The patch works for me.  I have one question about the complexity of the
cellfun expressions.

data = data (find (! cellfun ("isempty", data)));
if (! isempty (data))
  lims_min = min (cellfun ("min", cellfun ("min", data, 'uniformoutput',
  lims_max = max (cellfun ("max", cellfun ("max", data, 'uniformoutput',
  lims = [lims_min, lims_max];

In the first line, you can safely remove the call to find();  logical indexing
of cell arrays is just fine.

For the second bit, I think you are trying to find the minimum value across
all the datasets regardless of datset orientation.  Would the code below be
easier in that case?

lims_min = min (cellfun (@(x) min (x(:)), a(:)));


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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