gmt icon indicating copy to clipboard operation
gmt copied to clipboard

Weird behavior of transparent outlines for superscripts and subscripts

Open uleysky opened this issue 3 years ago • 3 comments

Test code:

#!/bin/bash
MAP="-R0/1/0/1 -JX10c"
echo -e "0 0\n1 0\n1 1\n0 1\n0 0" | gmt psxy $MAP -Gblack -P -K>test.ps
echo "0.5 0.6 0% transparency outline" | gmt pstext $MAP -F+jCM+f16p,Times-Bold,red=~4p,white -P -O -K>>test.ps
# Bug command
echo "0.5 0.5 a@+1@+b@+2@+c@+3@+d@+4@+e@+5@+f@+6@+g@+7@+h@+8@+i@+9@+j@+0@+" | gmt pstext $MAP -F+jCM+f16p,Times-Bold,red=~4p,white@90 -P -O -K>>test.ps
# What 90% transparency should look like
echo "0.5 0.4 90% transparency outline" | gmt pstext $MAP -F+jCM+f16p,Times-Bold,red=~4p,white@90 -P -O>>test.ps

Result: test

This is probably a ghostscript bug, not a GMT. Ghostscript is 9.54.0.

uleysky avatar Jul 14 '21 03:07 uleysky

Might be GMT bug, will have a look after vacation.

PaulWessel avatar Jul 14 '21 21:07 PaulWessel

Any progress?

uleysky avatar Feb 21 '22 05:02 uleysky

No, sorry, got forgotten. I will see if I can have a look tomorrow. Busy week then off traveling...But my theory is that the superscript pieces (which are set separately) somehow keeps adding up the transparency.

PaulWessel avatar Feb 21 '22 06:02 PaulWessel