octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #32497] Matlab differences when using abbrevia


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #32497] Matlab differences when using abbreviated PROPERTY names
Date: Fri, 2 Apr 2021 19:43:59 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36

Follow-up Comment #15, bug #32497 (project octave):

yes, that version of m_grid avoids the encoding issue.  it still has the
'disappearing figure' issue when he turns axes visibility off. 

since he has an MAP_PROJECTION.IsOctave flag, should be straightforward to
edit that block of code to: 

starting at line 594:


if isempty(strfind(version,'R2013b'))  % 27/Sept/13 - Handling for 2013b
provided by CB.
    set(ax,'visible','off',...
            'dataaspectratio',[1 1 1],...
            'xlim',MAP_VAR_LIST.xlims,...
            'ylim',MAP_VAR_LIST.ylims);
else
    set(ax,'visible','off',...
            'dataaspectratio',[1 1 1e16],...
            'xlim',MAP_VAR_LIST.xlims,...
            'ylim',MAP_VAR_LIST.ylims);
end


to something like:


if (MAP_PROJECTION.IsOctave)
    set(ax,'xcolor','none',...
    'ycolor','none',
    'dataaspectratio',[1 1 1e16],...
    'xlim',MAP_VAR_LIST.xlims,...
    'ylim',MAP_VAR_LIST.ylims);
else

  if isempty(strfind(version,'R2013b'))  % 27/Sept/13 - Handling for 2013b
provided by CB.
      set(ax,'visible','off',...
            'dataaspectratio',[1 1 1],...
            'xlim',MAP_VAR_LIST.xlims,...
            'ylim',MAP_VAR_LIST.ylims);
  else
      set(ax,'visible','off',...
            'dataaspectratio',[1 1 1e16],...
            'xlim',MAP_VAR_LIST.xlims,...
            'ylim',MAP_VAR_LIST.ylims);
 end
end


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?32497>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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