Skip to content

MAP_FRAME_PEN affects the font color of the text added to the NaN box of a colorbar #9026

Closed

Description

@yvonnefroehlich

Description of the problem

MAP_FRAME_PEN can be used to change to frame of a colorbar.
It turns out that additionaly the font color of the text added to the NaN box is changed.

Full script that generated the error

gmt begin cb_frame_nan_color png
    gmt basemap -R-1/1/-1/1 -JX10c/2c -B
    gmt makecpt -Coslo -T-1/1/0.2
    gmt colorbar -C -DjMC+w6c+h+n -By+lpoints --MAP_FRAME_PEN=1p,magenta
gmt end show

Full error message

No error or warning messages occurs.

Actual outcome

Image

Expected outcome

The font color of the text added to the NaN box should be unchanged, e.g., here in black.

System information

  • Operating system: Windows 10
  • GMT version (gmt --version): GMT 6.6.0, dev 6.7.0_8931e47_2026.01.12

Activity

  1. added
    bug
    on May 18, 2026
  2. added this to the 6.7.0 milestone on May 24, 2026
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions