Skip to content

Commit 5571591

Browse files
spec: add scatter-text specification (#3484)
## New Specification: `scatter-text` Related to #3482 --- ### specification.md # scatter-text: Scatter Plot with Text Labels Instead of Points ## Description A scatter plot where data points are represented by text labels instead of markers. Each label is positioned at its corresponding coordinates, making the text itself the visual element. This visualization is particularly useful for displaying named entities in 2D space, such as word embeddings, dimensionality reduction outputs, or any scenario where identifying individual items by name is more important than seeing their relative density. ## Applications - Visualizing word embeddings or document embeddings after t-SNE or UMAP dimensionality reduction - Displaying product or brand positioning in a competitive landscape analysis - Showing author or journal relationships in bibliometric studies - Mapping company positions based on two business metrics where company names matter ## Data - `x` (numeric) - Horizontal coordinate for each text label - `y` (numeric) - Vertical coordinate for each text label - `label` (string) - The text to display at each coordinate position - Size: 20-100 points recommended to balance readability and visual density - Example: Named entities with 2D coordinates from dimensionality reduction ## Notes - Text labels should be legible with appropriate font size - Consider using alpha transparency when labels overlap - Font size may need adjustment based on the number of labels - For dense regions, consider rotating text or using smaller fonts - Color can encode additional categorical or numeric information --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20854521188)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ec98f7a commit 5571591

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# scatter-text: Scatter Plot with Text Labels Instead of Points
2+
3+
## Description
4+
5+
A scatter plot where data points are represented by text labels instead of markers. Each label is positioned at its corresponding coordinates, making the text itself the visual element. This visualization is particularly useful for displaying named entities in 2D space, such as word embeddings, dimensionality reduction outputs, or any scenario where identifying individual items by name is more important than seeing their relative density.
6+
7+
## Applications
8+
9+
- Visualizing word embeddings or document embeddings after t-SNE or UMAP dimensionality reduction
10+
- Displaying product or brand positioning in a competitive landscape analysis
11+
- Showing author or journal relationships in bibliometric studies
12+
- Mapping company positions based on two business metrics where company names matter
13+
14+
## Data
15+
16+
- `x` (numeric) - Horizontal coordinate for each text label
17+
- `y` (numeric) - Vertical coordinate for each text label
18+
- `label` (string) - The text to display at each coordinate position
19+
- Size: 20-100 points recommended to balance readability and visual density
20+
- Example: Named entities with 2D coordinates from dimensionality reduction
21+
22+
## Notes
23+
24+
- Text labels should be legible with appropriate font size
25+
- Consider using alpha transparency when labels overlap
26+
- Font size may need adjustment based on the number of labels
27+
- For dense regions, consider rotating text or using smaller fonts
28+
- Color can encode additional categorical or numeric information
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Specification-level metadata for scatter-text
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: scatter-text
5+
title: Scatter Plot with Text Labels Instead of Points
6+
7+
# Specification tracking
8+
created: 2026-01-09T14:09:51Z
9+
updated: null
10+
issue: 3482
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/reference/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- scatter
18+
- text
19+
data_type:
20+
- numeric
21+
- text
22+
domain:
23+
- general
24+
- machine-learning
25+
features:
26+
- annotated
27+
- 2d

0 commit comments

Comments
 (0)