File Exchange

image thumbnail


version 1.0.0 (95.7 KB) by Nir Gutman
A tight Montage that also links the images with linkaxes()

1 Download

Updated 10 Oct 2020

From GitHub

View license on GitHub

# LinkedMontage
A tight Montage that also links the images with linkaxes()


[SubPlotHandleArray, options] = LinkedMontage( ImCell, TitleStrArray, options )


This function plots multiple images side by side like montage(),
but does it using subplot that are conneced with linkaxes() function. This
allows user to zoom into images and move around, while all images move together.
Function also returns the handles to all the subplots, so user can change properties later.


## Inputs:
* **ImCell**: Cell array of images to plot.
* **TitleStrArray**: optional. String array of names to each image. Must be of size of input ImCell.
* **options**: Name-Value Pairs. All optional.

* **FigureHandle**: Figure Handle on which the montage will be plotted.
* **LinkedAxes**: "on" (default) , "off".
* **Layout**: Number of rows and columns of images, specified as a 2-element vector of the
form [nrows ncols]. If you specify NaN or Inf for a particular dimension,
LinkedMontage calculates the value of the dimension to display all images
in the montage. For example, if 'Size' is [2 NaN], then the montage will have
two rows and the minimum number of columns to display all images.
Defaults to [2 , inf].
* **ImageRelativeSize**: A positive number LessOreEual to 1. Defaults to 1. The size of each indevidual image, where 1 fills the figure entirely.

## Output:
* **SubPlotHandleArray**: Array of axes objects. Each corresponds to the input image with the same index.
* **options**: The same as input options. Returns the configurations that the function used.

Cite As

Nir Gutman (2021). LinkedMontage (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2019b
Compatible with R2016a to R2020b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!