No BSD License  

Highlights from
showYs

5.0

5.0 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 15.92 KB File ID: #14228
image thumbnail

showYs

by Pablo Borruel

 

10 Mar 2007 (Updated 04 Mar 2009)

Shows y-values of time series in 2D plots by clicking on the axes.

| Watch this File

File Information
Description

Shows y-values of time series in 2D plots by clicking on the axes.

A quick test can be done by typing
showYs('example')
after the file is placed in the Matlab path

It works with one or multiple curves.
By clicking repeatedly on different x positions, the labels and reference line come and go.

After clicking on top of the reference line, it can be dragged together with the text boxes indicating the lines y values.

The selected x value is appended at the end of the x label when the y values are shown.

If the reference line is placed between invalid line points (NaN or +/- Inf values) or outside the data boundaries, the text box edges will be dashed and the value in the text box will be linearly interpolated or extrapolated using the closest valid data for the given line.

File has been tested with Matlab 2006a and 2008b

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
14 Mar 2007 Pablo Borruel

I have updated the file. The first one did not work properly due to a typo.

17 Dec 2007 M Imtiaz

Well written and very useful

11 Mar 2009 Jeremy Turner

Impressive utility. Any progress on the "TO DO" list from the m-file? I would like to implement something similar in my GUI, but would like to be able to use with two axes situation (similar to plotyy).

Please login to add a comment or rating.
Updates
13 Mar 2007

Updated picture and help.

14 Mar 2007

Olf file name used within function text. Text has been updated.

04 Apr 2007

Added functionallity:
 - after clicking on vertical cursor, it can be dragged left and right in real time while textboxes move accordingly
 - Any space in axes or over lines can be clicked to show y values

04 Mar 2009

 - Fixed multiple bugs
 - Added interpolation for NaN and Inf values
 - Added extrapolation for out of bound points
 - Increased speed

Tag Activity for this File
Tag Applied By Date/Time
data exploration Pablo Borruel 22 Oct 2008 09:03:44
yvalue Pablo Borruel 22 Oct 2008 09:03:44
2d Pablo Borruel 22 Oct 2008 09:03:44
graphics Pablo Borruel 22 Oct 2008 09:03:44
plot Pablo Borruel 22 Oct 2008 09:03:44
time series Pablo Borruel 04 Mar 2009 14:13:35
data exploration Byoung-Duk 08 Aug 2011 21:40:23

Contact us at files@mathworks.com