[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',
false)(:)));
lims_max = max (cellfun ("max", cellfun ("max", data, 'uniformoutput',
false)(:)));
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:
<http://savannah.gnu.org/bugs/?35034>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Lukas Reichlin, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Lukas Reichlin, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Lukas Reichlin, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Rik, 2011/12/13
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/13
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/13
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly,
Rik <=
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/14
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Rik, 2011/12/15