dsScatterPlot

Scatter plot of the first 2 dimensions of the given dataset

Contents

Syntax

Description

dsScatterPlot(DS) give a 2D scatter plot of the dataset stored in DS.

dsScatterPlot(DS, opt) use the info in opt to show annotation or legend.

Example

dataCount=100;
DS.input=2*rand(2, dataCount)-1;
DS.output=1+(DS.input(1,:)+DS.input(2,:)>0);
DS.dataName='Test Data (Move to a data point to show its index)';
for i=1:length(DS.output)
	DS.annotation{i}=sprintf('Data point %d\n(%f, %f)', i, DS.input(1,i), DS.input(2,i));
end
opt=dsScatterPlot('defaultOpt');
opt.showAnnotation=1;
dsScatterPlot(DS, opt);
Warning: Ignoring extra legend entries. 

See Also

dsScatterPlot3, dsProjPlot1, dsProjPlot2, dsProjPlot3.


Top page   Next: dsRangePlot.m   Prev:dsScatterPlot3.m