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

 
 

bug #31264: flipping image using x/ydata

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Wed 06 Oct 2010 01:42:34 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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>
Project MemberIn charge of this item.

 

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

Attach File(s):
   
   
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
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by bpabbott (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 13 Oct 2010 12:48:27 AM UTCbpabbottStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Fri 08 Oct 2010 12:54:04 AM UTCbpabbottAssigned toNone=>bpabbott
    Thu 07 Oct 2010 03:34:53 AM UTCjweAttached File-=>Added diffs, #21627
      StatusNone=>Patch Submitted

    Back to the top


    Powered by Savane 3.1-cleanup1