TAGS

Uses PEEKPLOT to show attributes of 2D data via mouseclick
707 Downloads
Updated 29 Jun 2006

No License

out = TAGS(X,Y,attr1,attr2,attr3,...) returns a 2D plot of X, Y, and enables you to peek at attributed data attr1, attr2,... via mouseklick.

TAGS only extends the functionality of PEEKPLOT to show any 2D data with additional attributes instead of just X and Y values. This is particularly useful for geographic information (or you name it...) where a coordinate pair may be associated with various parameters.

For example, say you have water samples from a number of wells with known geographic coordinates and associated data lined upp in a table:

X Y Z Depth pH Na
------------------------------------------------
1487015 6238640 101 1.7 5.5 0.22
1490308 6235131 99 5.6 5.7 0.12
1490370 6237609 29 3.2 5.3 0.24
1489339 6236778 122 5.4 8.0 0.44
1487292 6235131 78 7.3 2.3 0.21

then to use peeks:
x=[1487015 1490308 1490370 1489339 1487292];
y=[6238640 6235131 6237609 6236778 6235131];
z=[101 99 29 122 78];
pH=[5.5 5.7 5.3 8.0 2.3];
Na=[0.22 0.12 0.24 0.44 0.21];
Depth = [1.7 5.6 3.2 5.4 7.3];

WELLS=TAGS(x,y,z,pH,Na,N,Depth,Quality);

Use the mouse (left mouse button hold) near a data point.

Cite As

Jim Hedfors (2024). TAGS (https://www.mathworks.com/matlabcentral/fileexchange/11588-tags), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Peekplot

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