Code covered by the BSD License  

Highlights from
Annotated cropping of data plots

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 6.69 KB File ID: #34450
image thumbnail

Annotated cropping of data plots

by Kevin Bartlett

 

04 Jan 2012

Makes a rectangular crop box in axes 1 with lines linking it to the corners of axes 2.

| Watch this File

File Information
Description

With the same data plotted in two sets of axes, cropbox.m draws a box in the first axes to indicate the cropping limits specified by the user. The second axes is cropped to the specified limits and lines are drawn linking the corners of the cropping box to the corners of the cropped axes.

Lines are broken into multiple line segments at the points where they intersect with any axes bounding boxes in the figure. This allows the user to customise the line properties, making them invisible where they pass in front of a ylabel, for instance, or making them white where they pass in front of a dark image.

Required Products MATLAB
MATLAB release MATLAB 7.12 (2011a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
graphics Kevin Bartlett 04 Jan 2012 15:16:37
plotting Kevin Bartlett 04 Jan 2012 15:16:37
lines Kevin Bartlett 04 Jan 2012 15:16:37
crop Kevin Bartlett 04 Jan 2012 15:16:37
cropping Kevin Bartlett 04 Jan 2012 15:16:37

Contact us at files@mathworks.com