No BSD License  

Highlights from
SETPOS 1.2 - GETPOS 1.2

4.5

4.5 | 2 ratings Rate this file 1 Download (last 30 days) File Size: 5.45 KB File ID: #13927
image thumbnail

SETPOS 1.2 - GETPOS 1.2

by Jerome Briot

 

12 Feb 2007 (Updated 21 Feb 2007)

Two flexible wrappers to manage graphics object position.

Editor's Notes:

This was a File Exchange Pick of the Week

| Watch this File

File Information
Description

SETPOS/GETPOS are two flexible wrappers to set/get the "Position" property of graphics objects (figure, axes, uicontrol).

SETPOS(H,POS) works as SET(H,'Position',POS) and GETPOS(H) works as GET(H,'Position') but :

Both can set/get data using different unit for each element of the 'Position' vector.

Both can manage each element [Left,Bottom,Width,Height] individually without the others.

Both can use any graphics object HREF as position reference, instead of the parent of H. (Added in V1.1)

SETPOS contains a +/- feature that increase/decrease the corresponding value in the 'Position' vector.

Please contact me directly by email for bug report or enhancement request.

##################################################
Versions:

 (Both) 1.0 (12-Feb-2007)

 (Both) 1.1 (14-Feb-2007)
 Third input argument HREF added.
 Minor corrections in the help section.

 (Both) 1.2 (21-Feb-2007)
 Bug fixed if HREF is the Root object.
 Examples removed from the help section.
 Third file containing examples added.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
GETINUNITS

MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
12 Feb 2007 Peter (PB) Bodin

Very useful utility. H1-line, error checking, cleanly written and well commented code. Well done.

17 Feb 2007 Jos x@y.z

Quite usefull. Well done. Good help, albeit what long.
There is a possible name class with setpos in the signal toolbox.

22 Feb 2007 Jos x@y.z

I have to take back my comment about the naming conflict: setpos is a private function of the SP toolbox.

Please login to add a comment or rating.
Updates
15 Feb 2007

Third input argument HREF added.
Some minor corrections in the help section

16 Feb 2007

Add in the description

21 Feb 2007

Bug fixed and examples moved from the help sections to a third M-file.

Tag Activity for this File
Tag Applied By Date/Time
development environment Jerome Briot 22 Oct 2008 09:00:21
position setpos getpos units Jerome Briot 22 Oct 2008 09:00:21
potw Shari Freedman 21 Apr 2009 13:49:21
pick of the week Jiro Doke 11 Feb 2011 20:16:13

Contact us at files@mathworks.com