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

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

[Octave-bug-tracker] [bug #53955] In Matlab first argument to axes funct


From: Richard
Subject: [Octave-bug-tracker] [bug #53955] In Matlab first argument to axes function can be a container for the axes, e.g. a figure handle
Date: Mon, 21 May 2018 08:24:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/65.0.3325.181 Chrome/65.0.3325.181 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?53955>

                 Summary: In Matlab first argument to axes function can be a
container for the axes, e.g. a figure handle
                 Project: GNU Octave
            Submitted by: crobar
            Submitted on: Mon 21 May 2018 12:24:29 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Richard Crozier
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: Any

    _______________________________________________________

Details:

In Matlab first argument to axes function can be a container for the axes,
e.g. a figure handle, so that the axes is created in that figure (rather than
the current figure).

In octave this syntax result in an error. Example:

in Matlab r2018a:


>> hfig = figure;
>> hax = axes (hfig)

hax = 

  Axes with properties:

             XLim: [0.0000e+000 1.0000e+000]
             YLim: [0.0000e+000 1.0000e+000]
           XScale: 'linear'
           YScale: 'linear'
    GridLineStyle: '-'
         Position: [130.0000e-003 110.0000e-003 775.0000e-003 815.0000e-003]
            Units: 'normalized'

  Show all properties


in Octave:


>> hfig = figure;
>> hax = axes (hfig)
error: axes: H must be a scalar axes handle
error: called from
    axes at line 90 column 7
stopped in /usr/local/share/octave/4.4.0/m/plot/util/axes.m at line 90
90:       error ("axes: H must be a scalar axes handle");





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53955>

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




reply via email to

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