Code covered by the BSD License  

Highlights from
expandAxes

4.85714

4.9 | 7 ratings Rate this file 20 Downloads (last 30 days) File Size: 3.39 KB File ID: #18291
image thumbnail

expandAxes

by

 

10 Jan 2008 (Updated )

Click any axes to expand it in a separate figure. Right-click expanded axes to export contents!

| Watch this File

File Information
Description

FUNCTION EXPANDAXES(HNDLS)

Allows you to click on any axes (or child thereof) in the list of input handles. Left-clicking will popup a new window in the position of the original, filled with the single axes and all its children. Clicking on that figure closes the popup window. (Right-clicking restores non-expanding status to the axis.)

SYNTAX:
expandAxes
     Sets the current axes to expand on buttondown.
  
expandAxes(hndls)
     Sets all axes in the input list of handles to expand on buttondown.

NOTE: This function modifies the BUTTONDOWNFCN of axes in the input list, and their children. However, it will not modify any object whose buttondownfcn is nonempty.
 
MOTIVATION:
In real estate, there's a saying: "Location, location, location." In computer graphics, the saying is (or ought to be): "Real estate, real estate, real estate." This function allows you to show a lot more plots, graphics, etc. in a single figure without sacrificing the ability to see larger versions of same.

Acknowledgements

This file inspired Segment Tool: An Interactive Gui For Segmenting Images and Explore Rgb.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
02 Jan 2013 Jurgen  
11 Apr 2012 Brett Shoelson

NOTE: Maryam also asked me if she could modify the tick marks on the pop-up axis. That, too, is easily done. Just make whatever changes you want to customize new_ax at the appropriate place in the code. For instance:

set(new_ax,'units','normalized',...
'position',[0.1 0.1 0.8 0.8],...
'xtickmode','auto','ytickmode','auto');

Cheers,
Brett

10 Apr 2012 Brett Shoelson

Maryam, it's very easy to make expandAxes do what you want. Just modify the single line in subfunction "exapandIt" where I create the figure. Change 'menubar','none' to 'menubar','figure'. Let me know if that works for you.
Cheers,
Brett

10 Apr 2012 Maryam Vareth

This function is very useful. Thank you!! I was just wondering whether there is an easy way to also add an option to have a full functioning popup plots (meaning, to click into one of the interesting thumbnail images and be able to look at the values, intensities, (things that we can do in regular plot window)? ...

18 Feb 2011 Brett Shoelson

Thanks, Adi. For users of older versions of MATLAB, please note the single quotes around 'isempty' in Adi's comments.

14 Feb 2011 Adi

Great gizmo.
Justa little remark. For those still using old Matlab 7.0 R14 I found that " @isempty " needs to be changes to " 'isempty' " in order to work. Good job, thanks.

27 May 2008 Sergey Karpov

Thank u!

15 Jan 2008 John D'Errico

A creative way to turn a whole mess of plots into thumbnail images. Then you can click on only the ones you want to see to bring them up.

11 Jan 2008 Bob Rooney

Perfect! Thanks alot.

11 Jan 2008 Olivier B.

Simple but very usefull when managing lot of subplots !

Updates
04 May 2010

added copyright

21 Jun 2010

updated license text file to The MathWorks, Inc.

21 Jun 2010

Updated M file and license text file copyright to The MathWorks, Inc.

28 Mar 2013

Now supports automatic export of images by right-clicking an expanded axes! (If the axes contains a non-image, a snapshot of the axes is exported, using |getframe|.)

28 Mar 2013

Right click on any expanded axes to automatically save contents to base workspace!

Contact us