Hello, I want to disable the label/coordinate but still keep the frame. Can you give me a suggestion with following code,
grid = pygmt.datasets.load_earth_relief( resolution="30s", region=[122, 123.5, -8.8, -8], registration="gridline" ) fig = pygmt.Figure() fig.grdimage(grid=grid, projection="M15c", frame=True, cmap="oleron") fig.colorbar(frame=["a1000", "x+lElevation", "y+lm"]) fig.show()
I solved the problem using frame=“f”
Am not a pygmt user, but I guess it works the same way GMT CLI does :
a = annotation (automatic) f = ticks (automatic) g = gridline (automatic) a10f5 = annotation every 10 and ticks every 5 and so on… “True” must mean “afg”
Hi @arapks ,
to extend @PlanetGus list, we have a PyGMT tutorial on adjusting the map frame at Frames, ticks, titles, and labels — PyGMT.