[Top][All Lists]

[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):


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
as shown in the following pseudo-code snippet:

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

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


(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:


  Message sent via Savannah

reply via email to

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