uilineshift

Version 1.0.0.0 (3.32 KB) by paul koch
function to shift a selected line (or all other outputs of the PLOT-function) in X and Y-direction
1.5K Downloads
Updated 25 Apr 2009

No License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

this function might be useful for quick and dirty visual inspection of multiple traces or timecourses with a timedelay between or arbitrary x/y-axes or illconditioned overlay of traces
- works for all outputs of the 'plot-function' (type is 'line').
- Note, plotet dots are also of type line.
- The function adds an icon in the menubar of a figure, which than
activates the shift-function
- if the function is active, a line can be selected and moved within the axis as long as the
mousebutton is not released
- right mouse button (contextmenu): get the original plot (as long as the icon in the menubar is
not deactivated)
=====================
HOW TO DO:
1]
plot(something);%plot something
uilineshift; %adds icon in menubar
OR 2]
uilineshift; %adds icon in menubar
now plot something
=====================
EXAMPLE:
uilineshift('test'); %3 examples
----------------------------------------------------------------------
Paul S. Koch, BNIC Berlin 2009
----------------------------------------------------------------------

Cite As

paul koch (2024). uilineshift (https://www.mathworks.com/matlabcentral/fileexchange/23899-uilineshift), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers
Acknowledgements

Inspired: plot_shift.m

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0