showYs(action,varargin)
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 2014a
Cite As
Pablo Borruel (2024). showYs(action,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/14228-showys-action-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.2.0.0 | Added ability to link axes |
||
1.1.0.0 | - Fixed multiple bugs
|
||
1.0.0.0 | Added functionallity:
|