FeatureSpacePlot [{example1,example2,…}]
plots features extracted from the examplei as a scatter plot.
FeatureSpacePlot
FeatureSpacePlot [{example1,example2,…}]
plots features extracted from the examplei as a scatter plot.
Details and Options
- FeatureSpacePlot can be used on many types of data, including numerical, textual, sounds and images, and combinations of these.
- Each examplei can be a single data element, a list of data elements, an association of data elements, or a Dataset object.
- FeatureSpacePlot [Tabular […]cspec] extracts and plots values from the tabular object using the column specification cspec.
- The following forms of column specifications cspec are allowed for plotting tabular data:
-
{col1,…,coln} form examples from the values in the column coli
- When possible, FeatureSpacePlot uses the examplei as the point marker in the scatter plot.
- The following forms can be used to specify alternative markers:
-
{example1marker1,…} examples and markers in a list of rules{example1,…}{marker1,…} examples and markers grouped together<|marker1example1,…|> association keys as markers
- Wrappers w can be applied at multiple levels:
-
{…,w[examplei],…} wrap the value exampleiw[{example1,example2,…}] wrap all the examplesw1[w2[…]] use nested wrappers
- The following wrappers w can be used for the examplei:
-
- Callout , Labeled , Placed and LabelingFunction can use the following positions pos:
-
Automatic automatically placed labelsCenter use the label as the point markerx near the data at a position x{pos,epos} epos in label placed at relative position pos of the data
- FeatureSpacePlot has the same options as Graphics , with the following additions and changes: [List of all options]
-
- LabelingFunction pos places the default labels at the position pos.
- LabelingFunction->f specifies that each point should have a label given by f[value,index,lbls], where value is the value associated with the point, index is its position in the data and lbls is the list of relevant labels.
- ColorData ["DefaultPlotColors"] gives the default sequence of colors used by PlotStyle .
- Possible settings for Method include:
-
Automatic automatically chosen method"LatentSemanticAnalysis" latent semantic analysis method"Linear" automatically choose the best linear method"LowRankMatrixFactorization" use a low-rank matrix factorization algorithm"PrincipalComponentsAnalysis" principal components analysis method"TSNE" t-distributed stochastic neighbor embedding algorithm"UMAP" uniform manifold approximation and projection
- Highlight options with settings specific to FeatureSpacePlot
-
AspectRatio 1 ratio of height to widthImageMargins 0. the margins to leave around the graphicPreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphicRandomSeeding 1234 how to seed random numbers
List of all options
Examples
open all close allBasic Examples (6)
Plot the features of the shapes of alphabets:
Plot the features extracted from images:
Change the size of images used as labels:
Use Callout to place labels:
Extract features from a simple dataset:
Provide labels for the data:
Scope (24)
Data (5)
Simple examples such as images and text are shown directly in the plot:
Plot features extracted from audio recordings:
Extract features on a mixed-type dataset:
Extract features from a dataset that contains missing values:
Extract features from a dataset formatted as a list of associations:
Tabular Data (1)
Get tabular data:
Plot features coming from one of the columns:
Plot multiple features per row as points, with tooltips using elements from multiple columns:
Use LabelingFunction Callout to use features as callouts for the points:
Wrappers (9)
Use wrappers on individual examples:
Use wrappers on the entire collection of examples:
Wrappers can be nested:
Use the value of each point as a tooltip:
Label points with automatically positioned text:
Use callouts to label points:
Add tooltips to each point:
Use PopupWindow to provide additional drilldown information:
Button can be used to trigger any action:
Labeling (5)
Simple examples such as images and text are shown directly in the plot:
Use the examples as tooltips:
Provide labels for the data:
Group all the labels together:
Association keys are used as labels:
Put the labels in tooltips:
Presentation (4)
Use a gray background for the plot:
Represent the examples as stars in the plot:
Use large purple points:
Use a plot theme with a frame and grid lines:
Combine the detailed theme with a theme that uses open shapes for the points:
Options (61)
AspectRatio (4)
By default, FeatureSpacePlot uses the same width and height:
Specify the height to width ratio:
AspectRatio Automatic determines the ratio from the plot ranges:
AspectRatio Full adjusts the height and width to tightly fit inside other constructs:
Axes (3)
By default, Axes are not drawn for FeatureSpacePlot :
Use Axes True to turn on axes:
Turn each axis on individually:
AxesLabel (3)
No axes labels are drawn by default:
Place a label on the axis:
Specify axes labels:
AxesOrigin (2)
The position of the axes is determined automatically:
Specify an explicit origin for the axes:
AxesStyle (4)
Change the style for the axes:
Specify the style of each axis:
Use different styles for the ticks and the axes:
Use different styles for the labels and the axes:
Background (2)
By default, plots do not have a background:
Use a light gray background:
FeatureExtractor (1)
By default, features are automatically chosen based on input type:
Use a different setting:
Use a random position as the feature:
Frame (3)
FeatureSpacePlot does not use a frame by default:
Draw a frame on the left and right edges:
Draw a frame on the left and bottom edges:
FrameLabel (4)
Place a label along the bottom frame of a plot:
Frame labels are placed on the bottom and left frame edges by default:
Place labels on each of the edges in the frame:
Use a customized style for both labels and frame tick labels:
FrameStyle (2)
Specify the style of the frame:
Specify the style for each frame edge:
LabelingFunction (5)
Simple examples such as images and text are shown directly in the plot:
Show the examples as points:
Show the examples as points with the original data in tooltips:
Center the labels at the corresponding points:
Use Callout to label the points automatically:
Specify the callout placements:
LabelingSize (4)
Size of labels are determined automatically:
Specify the size of labels:
Specify the size of callout:
Limit the display size for text:
LabelingTarget (7)
Labels are automatically placed to maximize readability:
Show all labels:
Use a denser layout for the labels:
Show the quarter of the labels that are easiest to read:
Only allow labels that are orthogonal to the points:
Only allow labels that are diagonal to the points:
Restrict labels to be above or to the right of the points:
Allow labels to obscure other points:
Allow labels to be clipped by the edges of the plot:
Method (2)
FeatureSpacePlot uses Method->"UMAP" by default:
Use different methods:
PerformanceGoal (1)
Generate a plot using flags for countries in Europe:
Use a faster method to position the flags:
PlotInteractivity (3)
By default, plots may contain interactive elements such as tooltips:
Turn off all the interactive elements:
Interactive elements provided as part of the input are disabled:
PlotLabel (1)
Add an overall label to the plot:
PlotMarkers (1)
Change the appearance of the plot markers:
PlotRangePadding (2)
Increase the padding around the contents of the plot:
Do not add any padding to the plot:
PlotStyle (2)
Use red points to represent the examples:
Make the points large and red:
PlotTheme (2)
By default, plots are shown with minimal extra detail:
Use a theme with a dark background and more styled points:
Show labels:
RandomSeeding (3)
FeatureSpacePlot gives reproducible results:
Use an automatic seed to get different results:
Use specific seeds for reproducible but varying results:
Applications (1)
Classify a spoken digit command dataset:
All recording labels:
Define a network structure:
Train the network:
Chop the last two levels of the network:
Plot audio features using the output of the chopped net as feature extractor:
Properties & Relations (1)
FeatureSpacePlot is a combination of DimensionReduce and ListPlot :
History
Introduced in 2017 (11.1) | Updated in 2017 (11.2) ▪ 2018 (11.3) ▪ 2021 (13.0) ▪ 2025 (14.2) ▪ 2025 (14.3)
Text
Wolfram Research (2017), FeatureSpacePlot, Wolfram Language function, https://reference.wolfram.com/language/ref/FeatureSpacePlot.html (updated 2025).
CMS
Wolfram Language. 2017. "FeatureSpacePlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/FeatureSpacePlot.html.
APA
Wolfram Language. (2017). FeatureSpacePlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FeatureSpacePlot.html
BibTeX
@misc{reference.wolfram_2025_featurespaceplot, author="Wolfram Research", title="{FeatureSpacePlot}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/FeatureSpacePlot.html}", note=[Accessed: 16-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_featurespaceplot, organization={Wolfram Research}, title={FeatureSpacePlot}, year={2025}, url={https://reference.wolfram.com/language/ref/FeatureSpacePlot.html}, note=[Accessed: 16-November-2025]}