octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45473] imshow "Parent" property


From: Amro
Subject: [Octave-bug-tracker] [bug #45473] imshow "Parent" property
Date: Sat, 04 Jul 2015 13:46:41 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0

URL:
  <http://savannah.gnu.org/bugs/?45473>

                 Summary: imshow "Parent" property
                 Project: GNU Octave
            Submitted by: amro_octave
            Submitted on: Sat 04 Jul 2015 04:46:40 PM EEST
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Any

    _______________________________________________________

Details:

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:


h(1) = subplot(121);
h(2) = subplot(122);
for i=1:2
    imshow(rand(10), 'Parent',h(i))
end


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


for i=1:2
    axes(h(i))
    imshow(rand(10))
end






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45473>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]