bugGNU Octave - Bugs: bug #45473, imshow "Parent" property

 
 

bug #45473: imshow "Parent" property

Submitted by:  Amro <amro_octave>
Submitted on:  Sat 04 Jul 2015 01:46:40 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 06 Jul 2015 04:34:37 AM UTC, comment #4:

Yes, quite right. I changed imshow.m to apply axes properties to the parent of the image object, whether that is gca() or not. I also added stricter input validation to make sure that any supplied "parent" property is indeed an axes. See this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/928e2c6f888e).

Rik <rik5>
Project Administrator
Mon 06 Jul 2015 03:10:12 AM UTC, comment #3:

btw, shouldn't all mentions of "gca()" in that file be replaced with the explicit axes handle in case it was specified?

Amro <amro_octave>
Mon 06 Jul 2015 03:00:44 AM UTC, comment #2:

Awesome, thanks.

Amro <amro_octave>
Sun 05 Jul 2015 08:57:05 PM UTC, comment #1:

This was easy. I fixed it on the development branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/eca5aa3225f4).

Rik <rik5>
Project Administrator
Sat 04 Jul 2015 01:46:40 PM UTC, original submission:

Both "image" and "imagesc" functions implement the "Parent" property. However it is currently missing from the "imshow" function. It shows a warning and ignores the argument...

Note that IMSHOW uses IMAGE/IMAGESC underneath, so I expect it wouldn't be difficult to add support for it.

This property is especially useful when showing images in different subplots inside a loop. Here is an example:

The workaround is to manually set the current axis before calling IMSHOW:

Amro <amro_octave>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by amro_octave (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 Jul 2015 08:57:05 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1