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

 
 

bug #48572: Visual differences between Octave and Matlab

Submitted by:  Markus Mützel <mmuetzel>
Submitted on:  Wed 20 Jul 2016 06:40:37 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

I pushed both changesets.

Thanks!

John W. Eaton <jwe>
Project 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>
Project Member
Wed 20 Jul 2016 06:46:06 PM UTC, comment #1:

Attached please find the changeset.

(file #37961)

Markus Mützel <mmuetzel>
Project Member
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>
Project Member

 

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

Attach File(s):
   
   
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
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by avinoam (Updated the item)
  • -unavailable- added by mmuetzel (Submitted the item)
  • -unavailable- added by mmuetzel
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Jul 2016 04:45:07 PM UTCjweStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Thu 21 Jul 2016 12:44:32 PM UTCmmuetzelAttached File-=>Added visual_diffs2_isosurface.patch, #37972
    Wed 20 Jul 2016 09:05:05 PM UTCavinoamStatusNone=>Patch Submitted
    Wed 20 Jul 2016 06:46:06 PM UTCmmuetzelAttached File-=>Added visual_diffs1.patch, #37961
    Wed 20 Jul 2016 06:40:37 PM UTCmmuetzelCarbon-Copy-=>Added rik5

    Back to the top


    Powered by Savane 3.1-cleanup1