[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41770] Some factory defaults don't conform to
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #41770] Some factory defaults don't conform to matlab values |
Date: |
Tue, 04 Mar 2014 12:45:28 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0 |
URL:
<http://savannah.gnu.org/bugs/?41770>
Summary: Some factory defaults don't conform to matlab values
Project: GNU Octave
Submitted by: pantxo
Submitted on: mar. 04 mars 2014 12:45:26 GMT
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
I have only investigated defaults returning empty matrices that shouldn't.
This is not a big issue as they are updated when an object is created but
querying their factory value doesn't return the expected value as in Matlab
(attached matlabfactory.mat file).
You may try the following in octave 3.8 or dev:
load ("-7", "matlabfactory.mat") #load factory defautlts for the following
properties
props = {'surfacexdata', 'surfaceydata', 'surfacezdata', ...
'surfacealphadata', 'surfacecdata', ...
'patchfaces', ...
'imagealphadata', ...
'axesview', 'axescameraupvector'};
factorydef = cellfun (@(x) get (0, ["factory" x]), props, "uniformoutput",
false);
assert (factorydefml, factorydef)
I also attached a patch that make this test script pass (and all tests in
graphics.cc still pass)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: mar. 04 mars 2014 12:45:26 GMT Name: matlabfactory.mat Size: 254 o
By: pantxo
<http://savannah.gnu.org/bugs/download.php?file_id=30769>
-------------------------------------------------------
Date: mar. 04 mars 2014 12:45:26 GMT Name: adjust_factorydefaults.patch
Size: 6 ko By: pantxo
<http://savannah.gnu.org/bugs/download.php?file_id=30770>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41770>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41770] Some factory defaults don't conform to matlab values,
Pantxo Diribarne <=