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: Thu, 1 Apr 2021 15:04:14 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36

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

as discussed in a conversation over on the Octave Discourse page  [1], the
following code changes create an m_grid that runs in Octave:

add the following before the label blocks to remove any degree symbols and
just replace them with blank spaces:


labs = cellfun(@strrep, labs, {char(176)},{char(32)},"UniformOutput",false);


And replace the aspect ratio block with:

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


There are still some issues with label layout (rotation, and exact placement),
but it's fairly functional, and it produces the following:

Octave:
file Octave_m_grid.png

versus in Matlab 2020b with the original scripts:
file Matlab_m_grid.jpg

I've also attached the version of m_grid.m edited to work *only* in Octave.

[1] https://octave.discourse.group/t/a-problem-with-function-regexprep/981/5 

(file #51170, file #51171, file #51172)
    _______________________________________________________

Additional Item Attachment:

File name: Octave_m_grid.png              Size:36 KB
    <https://file.savannah.gnu.org/file/Octave_m_grid.png?file_id=51170>

File name: m_grid.m                       Size:33 KB
    <https://file.savannah.gnu.org/file/m_grid.m?file_id=51171>

File name: Matlab_m_grid.jpg              Size:38 KB
    <https://file.savannah.gnu.org/file/Matlab_m_grid.jpg?file_id=51172>



    _______________________________________________________

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]