XY 3D Density Plot (for two-class data)
Version 1.0.0.1 (55 KB) von
Jaspar Cahill
Visualize the density of points described by two variables X and Y, as a smoothed 3D surface plot.
XY3DDensityPlotView is used to visualize the density of points described by two variables X and Y, as a surface plot. This may be useful when points are densely packed and overlapping, as in this case a scatterplot may be limited in revealing their actual distribution.
The XY data must be labelled, each data point belonging to one of two classes (e.g. positive and negative). A surface is produced on the density of points in each class, and the two surfaces are shown together on the same axes.
Interface controls are provided to interactively refine smoothing parameters. Two smoothing methods are provided, Eiler and Filter, which give a slightly different effect in terms of the surface produced.
Usage:
XY3DDensityPlotView(x, y, removeOutliers, xLabels)
Example:
This example uses the demo data provided in the source files.
load('demo data.mat');
app = XY3DDensityPlotView(data.x, data.y, true, {'Var1', 'Var2'});
app.applySettings(500, 'Filter', 20);
Zitieren als
Jaspar Cahill (2024). XY 3D Density Plot (for two-class data) (https://www.mathworks.com/matlabcentral/fileexchange/30086-xy-3d-density-plot-for-two-class-data), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2010b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert von: usercolormap
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
XY3DDensityPlot/XY3DDensityPlot
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.1 | Bug fixes (on opening figure). |
||
1.0.0.0 |