Skip to content

psxy, psxyz: Fill -Sl text with the -C color - #9236

Merged
Esteban82 merged 1 commit into
masterfrom
fix-text-symbol-cpt-color
Sep 30, 2026
Merged

Esteban82 merged 1 commit into
masterfrom
fix-text-symbol-cpt-color

Conversation

@Esteban82

Copy link
Copy Markdown
Member

-Sl text symbol ignores -C colors in psxy/psxyz text comes out black instead of color.

Tested with:
printf -- '-2 -2 1\n2 2 2' | gmt plot -R-5/5/-5/5 -JX5c -B0 -Sl1c+tCPT -Ccategorical -png lixo

Output with this fix:
lixo_fixed

Without this fix, the text is black.

Written with Claude Opus 5.5.

With -C, fill_active stays false, so the -Sl text case ignored the CPT fill
already set via FS: without -W the text was painted with show in the current
PS color (black, or the -G color), and with -W the fill was switched off so
the text came out hollow. Treat a CPT fill as active and, without -W, paint
the text via fs (PSL_plottext mode 2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Esteban82 Esteban82 added bug Something isn't working add-changelog Add PR to the changelog labels Sep 29, 2026
@Esteban82
Esteban82 merged commit 0d203af into master Sep 30, 2026
16 of 19 checks passed
@Esteban82
Esteban82 deleted the fix-text-symbol-cpt-color branch September 30, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants