bugGNU Octave - Bugs: bug #31264, flipping image using x/ydata

 
 

bug #31264: flipping image using x/ydata

Submitter:  Ben Abbott <bpabbott>
Submitted:  Wed 06 Oct 2010 01:42:34 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 07 Oct 2010 03:34:53 AM UTC, comment #1: 

The attached patch fixes the problem for me.  Note that no change to the fltk backend was needed, but swapping xlim and ylim in image.m was.  I'm not sure why the extra work is needed in the gnuplot backend.  Is there a simpler way we could be displaying images there?

I think that setting xlim and ylim in increasing order is the correct thing to do for compatibility with Matlab, but can you check that to be sure?

(file #21627)

John W. Eaton <jwe>
Group administrator
Wed 06 Oct 2010 01:42:34 PM UTC, original submission:  

For compatibility with Matlab, the following should produce two images with the second flipped left-right

xdata = [-5, 5];
ydata = [-5, 5];
cdata = 1 ./ hilb (11);
figure (1)
clf
image (xdata, ydata, cdata)
figure (2)
clf
image (fliplr (xdata), ydata, cdata)

The image in figure(2) should be the same as ...

figure (3)
clf
image (x, y, fliplr (cdata))


Ben Abbott <bpabbott>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21627:  diffs added by jwe (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by bpabbott (Submitted the item)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-13 bpabbott StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2010-10-08 bpabbott Assigned toNone bpabbott
    2010-10-07 jwe Attached File- Added diffs, #21627
        StatusNone Patch Submitted

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code