Code covered by the BSD License  

Highlights from
arrange_subplots

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.46 KB File ID: #40024
image thumbnail

arrange_subplots

by Geng

 

28 Jan 2013

Automatically computes the #rows and #columns needed to show N subplots.

| Watch this File

File Information
Description

Automatically computes the #rows and #columns needed to show N subplots. This function takes the size of images into consideration.

Can be used to provide inputs for subplot or subplot_tight

function [nrow, ncol] = arrange_subplots(n,imagesz)

Purpose
Calculate how many rows and columns of sub-plots are needed to
neatly display n subplots. This function considers the size of each subplot.

Inputs
n - the desired number of subplots.
imagesz - [height, width] of each subplot. default([1,1])

Outputs
[nrow, ncol] - defining the number of rows and number of columns required to show n plots.

Example: [nrow, ncol] = arrange_subplots(26, [200,500])
           [nrow, ncol] = arrange_subplots(26)

Written by Geng Zhang. (www.bfcat.com). Jan. 2013

MATLAB release MATLAB 7.14 (R2012a)
Tags for This File  
Everyone's Tags
image processing, subplot, visualization
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us