Skip to content

Semi-transparency for pen (-W) affects also fill (-G) of symbols #8867

Closed

Description

@yvonnefroehlich

Description of the problem

Setting a semi-transparency for the pen color (-W) leads also to a semi-transparency of the fill color (-G).
For me, this occurs using GMT 6.5.0 - dev, but not for GMT 6.4.0.

Full script that generated the error

gmt begin pen_transparent png
	gmt basemap -R-5/5/-2/2 -JX10c/4c -B
	echo 0 0 | gmt plot -Ss1c -Gbrown -W1p,blue@50
gmt end show

Full error message

No error message occurs.

Actual outcome

Image

Expected outcome

Image

System information

  • Operating system: Windows 10
  • GMT version (gmt --version): 6.5.0 - dev

Activity

  1. added
    bug
    on Jan 19, 2026
  2. changed the title [-]Semi-transparency of pen affects fill[/-] [+]Semi-transparency for pen (-W) affects also fill (-G) of symbols[/+] on Jan 19, 2026
  3. ES-Solar commented on Jan 21, 2026

    @ES-Solar
    Collaborator

    Ran a few tests and determined that if the transparency is explicitly specified for the -W and -G options it will use the specified values. Also if just the -G transparency is specified the -W transparency is not impacted. so the problem only manifests when the pen transparency is specified but the fill transparency is not.

  4. yvonnefroehlich commented on Jan 21, 2026

    @yvonnefroehlich
    MemberAuthor

    Ran a few tests and determined that if the transparency is explicitly specified for the -W and -G options it will use the specified values. Also if just the -G transparency is specified the -W transparency is not impacted. so the problem only manifests when the pen transparency is specified but the fill transparency is not.

    Thanks for looking at this issue. This is what I also found. First found it in PyGMT; only posted the GMT code for the failing one.

  5. joa-quim commented on Jan 21, 2026

    @joa-quim
    Member

    Next step. The debugger 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions