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

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

[Octave-bug-tracker] [bug #50466] makehgtform function missing


From: Gary E. Deschaines
Subject: [Octave-bug-tracker] [bug #50466] makehgtform function missing
Date: Tue, 18 Dec 2018 21:35:52 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Follow-up Comment #17, bug #50466 (project octave):

Rik,

I took the liberty of adding text transformation capability to hgtransform as
provided in the attached hgtransform.m script file.

The transformed text rendered by Octave 4.2.2 appears to be comparable to that
obtained in MATLAB R2018b.

To address the issue of passing hgtransform 'parent' property/value pairs in
RTB for MATLAB line(), plot() and plot3() functions, I've simply applied an
isOctave check function (attached) and wrapped the relevant code blocks in RTB
rvctools ./robot/trplot.m, ./robot/trplot2.m and ./common/plot2.m scripts
[see:
(https://github.com/gedeschaines/robotics-toolbox-python/tree/update1/Octave/rvctools)]
as shown in the following pseudo-code snippet:

++
    hgt = hgtransform(hax);
    if isOctave
        h = line(x[], y[], z[], options);
        set(h, 'parent', hgt);
    else
       line(x[], y[], z[], options, 'Parent', hgt);
    end
--  

This should provide a basic level of MATLAB/Octave compatibility with
hgtransform (note: RTB for MATLAB v9+ does not use the makehgtform function).

Gary 

(file #45696, file #45697)
    _______________________________________________________

Additional Item Attachment:

File name: hgtransform.m                  Size:6 KB
File name: isOctave.m                     Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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