bugGNU Octave - Bugs: bug #48572, Visual differences between Octave...

 
 

bug #48572: Visual differences between Octave and Matlab

Submitter:  Markus Mützel <mmuetzel>
Submitted:  Wed 20 Jul 2016 06:40:37 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 22 Jul 2016 04:45:07 PM UTC, comment #3: 

I pushed both changesets.

Thanks!

John W. Eaton <jwe>
Group administrator
Thu 21 Jul 2016 12:44:32 PM UTC, comment #2: 

Attaches is a patch that changes isosurface to produce graphics that match Matlab more closely. It does not include the changes from file #37961.

Matlab seems to place a light by calling "camlight". At least the automatically placed light is a the exact same positon and of the same type like the one being places by "camlight". There is patch #9014 that adds this function to Octave. That should be used in isosurface when the changeset from patch #9014 has been pushed.
Matlab displays the isosurface without edges to the patches. Since gnuplot does not implement light, that would look odd. Therefore, I turned "EdgeColor" black for now.

The output with gnuplot looks wrong when the "FaceColor" of a patch is set to "flat". If I cannot find an open bug report I will file one on that.

(file #37972)

Markus Mützel <mmuetzel>
Group administrator
Wed 20 Jul 2016 06:46:06 PM UTC, comment #1: 

Attached please find the changeset.

(file #37961)

Markus Mützel <mmuetzel>
Group administrator
Wed 20 Jul 2016 06:40:37 PM UTC, original submission:  

There are several demos that give different visual results in Octave and in Matlab [1].

Rik just pushed a changeset to fix some of them. I was working on the same and have patches for "shrinkfaces" and "trisurf". Additionally, I think that a different change should be made to "datetick": It looks like "datetick" in Octave accepts "form" (=the date format) before "axis" as input arguments (unlike documented).

I will submit a patch for this three functions as soon as I have a bug number.

I am also working on a fix for "isosurface".

[1] http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html

Markus Mützel <mmuetzel>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #37961:  visual_diffs1.patch added by mmuetzel (4KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by avinoam (Updated the item)
  • -email is unavailable- added by mmuetzel (Submitted the item)
  • -email is unavailable- added by mmuetzel
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-22 jwe StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2016-07-21 mmuetzel Attached File- Added visual_diffs2_isosurface.patch, #37972
    2016-07-20 avinoam StatusNone Patch Submitted
    2016-07-20 mmuetzel Attached File- Added visual_diffs1.patch, #37961
    2016-07-20 mmuetzel Carbon-Copy- Added rik5

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code