Code covered by the BSD License  

Highlights from
dtmcursor

Be the first to rate this file! 37 Downloads (last 30 days) File Size: 5.99 KB File ID: #42675
image thumbnail

dtmcursor

by Jonathan Lister

 

18 Jul 2013 (Updated 31 Jul 2013)

DTMCURSOR implements a cross hair with the ability to set and measure values from x and/or y datums.

| Watch this File

File Information
Description

Datum Cursor (DTMCURSOR) provides a graphical evaluation tool that produces a crosshair that displays its location in a figure annotation for quick inspection of data values. The user can also define x and/or y datums and measurement lines to calculate differences quickly. The difference is displayed either above or to the right of each measurement line. All text objects, except for datum labels, can be re-positioned via mouse. Changing datum location causes all measurements to update. Delta_y text font and edge color is the color of the line that you added a measurement to. Datums and measurement lines are draggable. I've tried to blend all the best of what I've learned from the submissions that inspired me. Many great features... give it a try. I hope you will find it to be "the" tool for data exploration.

Acknowledgements

Plot Crosshairs, Dualcursor, Graphical Data Selection Tool, and Display Cursor Location inspired this file.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File  
Everyone's Tags
crosshair, cursor, data exploration, datum, gui, oop
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
24 Jul 2013 Jonathan Lister

Previous comment applies to the next revision...

24 Jul 2013 Jonathan Lister

When dtmcursor is on you can type Shift+n to toggle SnapToNearest on/off

19 Jul 2013 Jonathan Lister

Yet another update on the way...

18 Jul 2013 Jonathan Lister

A significant update has been submitted and should be available soon.

Updates
18 Jul 2013

Added labels to the X and Y datums. I had a dependency on a function called "draggable" that I eliminated. Cursor and delta value text can now be re-positioned by dragging with mouse.

19 Jul 2013

Added many new properties, all text except for datum labels can be re-positioned via mouse. SnapToNearest causes the crosshair to be constrained to the closest line value. Use set(obj,'SnapToNearest',false) to turn that feature off.

22 Jul 2013

corrected some comments in the file

31 Jul 2013

Added Keypress commands to control SnapToNearest and crosshair visability. Made datums and measurement lines draggable. Changed the default line and edge colors to red. Changed the default line style to solid.

Contact us