Arbitrary Line Cut

Version 1.0.0.0 (1.83 KB) by Patrick
Dynamically plot arbitrary linecuts in 2D data with mouse control
438 Downloads
Updated 17 Aug 2015

Mouse-controlled method for creating linecuts in an arbitrary direction through 2D data
ARBLINECUT(H) enables mouse selection of an arbitrary line through a pcolor or image plot. Data along this line is interpolated and plotted in a new figure. H is the handle to a valid plot object. Once ARBLINECUT is called, click on the plot at one endpoint of the desired linecut and drag to the other endpoint, then release. Each mouse click will produce a new linecut.

With the main plot figure in focus, press the backspace key to delete all drawn lines and open linecut windows. Press the x or y key to set the bottom axis of all ensuing linecut plots to x or y. Press the return key or right click on the main figure in order to stop ARBLINECUT.

Cite As

Patrick (2024). Arbitrary Line Cut (https://github.com/pmaher86/arblinecut), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Surfaces, Volumes, and Polygons in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.