From: Omid on
Hi,

I want to add a series of boxes to an existing graph, something like a number of windows on the graph so that I can focus on the portions of the graph that falls in those windows. I want to be able to move the boxes together with each other such that the relative position of each box with respect to the others is maintained while it's being moved. I could add an axes to the plot, use "rectangle" repeatedly to plot desired boxes on this second axes and move the axes whenever needed. However I have a few callback functions for the main axes and I want that to be on top to receive mouse clicks which means that the secondary axes should go behind and I can't select it decently[!] from within the figure window. Another option may be using an hggroup object in the main axes as the parent of the boxes, but it seems that the hggroup can't be moved in the plot edit mode. Do you have any idea how
can I add those boxes on my graph?

Thanks,
Omid
From: Omid on
Well, my problem seems to be that neither the rectangle nor the hggroup objects can be dragged or moved. In fact I can't even select them, though MATLAB Help says that when hggroup Selected property is set to on ...

"MATLAB displays selection handles at the corners and midpoints of hggroup child objects"

I did as the documentation suggests but selection handles never appeared. I'm using MATLAB 2008a. So what do you think?

Omid