Skip to content

Colorbar annotation size does not change #3041

@bjmarfito

Description

@bjmarfito

Description of the problem

I set the FONT_ANNOT_PRIMARY and FONT_LABEL to 20 but the annotation on the colorbar does not change

Minimal Complete Verifiable Example

import pygmt

pygmt.config(FONT_LABEL = 20)
pygmt.config(FONT_ANNOT_PRIMARY = 20)

fig = pygmt.Figure()
fig.colorbar(position="x+3.68i/0.38i+w1.9i/0.090i+ef+mul+h", frame="a100f50", cmap=cptFileSlip)
fig.show()

Full error message

No response

System information

PyGMT information:
  version: v0.10.0
System information:
  python: 3.11.7 (main, Dec 10 2023, 14:13:07) [Clang 15.0.0 (clang-1500.0.40.1)]
  executable: /opt/local/bin/python
  machine: macOS-14.3-arm64-arm-64bit
Dependency information:
  numpy: 1.26.2
  pandas: 2.1.1
  xarray: 2022.12.0
  netCDF4: 1.6.5
  packaging: 23.2
  contextily: None
  geopandas: None
  IPython: 8.14.0
  rioxarray: None
  ghostscript: 10.02.1
GMT library information:
  binary version: 6.5.0
  cores: 10
  grid layout: rows
  image layout: 
  library path: /opt/local/lib/gmt6/lib/libgmt.dylib
  padding: 2
  plugin dir: /opt/local/lib/gmt6/lib/gmt/plugins
  share dir: /opt/local/lib/gmt6/share/gmt
  version: 6.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageUnsure where this issue fitsupstreamBug or missing feature of upstream core GMT

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions