Commit 5571591
authored
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments