HotPlot, view a 2D variable as hue over 2D data

版本 1.1.0.0 (70.1 KB) 作者: tudor dima
pseudo-3D plot : superimpose a 2D variable or a subset as hue over 2D data used as gray intensity
860.0 次下载
更新时间 2009/9/15

查看许可证

I needed a way to visualize a subset of a 2D variable derived from a 2D dataset, _together_ with the original data and in its original coordinates. Since a plain 3D plot decouples all this info (and becomes illegible for data containing very noisy regions) I decided to show the calculated 2D descriptor as hue variation on the original 2D data (represented as gray level).

It is a suggestive way of visualizing data and especially effective when the 2D subset is a lot smaller than the original 2D data (for instance when the variable to plot is uninteresting for the most part and it would only skew the z-scaling).

Following the discussions on the FileExchange and Newsgroup it seemed to me that more people might benefit from this, so I decided to post it.

execute:
>> imgRGB = hotplot(BACKGND, FOREGND, POSITION, 1);
when FOREGND is an N-length list of values and POSITION is an N-by-2 list of coordinates (in the BACKGND referential) ;

or execute:
>> imgRGB = hotplot(BACKGND, FOREGND, MASK, 1);
when BACKGND and FOREGND are both [M x N] and MASK is a boolean, obtained for example as
>> MASK = FOREGND > SomeThreshold;

or run testHotPlot.m to visualise a sample data set; the physical meaning of this dataset is :
FOREGND - neural impulse energy
BACKGND - average neural potential

for ideas, suggestions, etc. mail me at
tudima at y a h o o dot com

引用格式

tudor dima (2024). HotPlot, view a 2D variable as hue over 2D data (https://www.mathworks.com/matlabcentral/fileexchange/25301-hotplot-view-a-2d-variable-as-hue-over-2d-data), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

v.02 : more flexible calls (it now accepts a full FOREGND), improved input handling

1.0.0.0