Skip to content

Commit

Permalink
Use frame="a" in colorbars_multiple.py (GenericMappingTools#1650)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones authored and Josh Sixsmith committed Dec 21, 2022
1 parent 0e0e558 commit ff3f1a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/gallery/embellishments/colorbars_multiple.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@
pygmt.makecpt(cmap="geo", series=[-8000, 8000])
# "R?" means Winkel Tripel projection with map width automatically
# determined from the subplot width.
fig.grdimage(grid=grid_globe, projection="R?", region="g", frame=True)
fig.grdimage(grid=grid_globe, projection="R?", region="g", frame="a")
fig.colorbar(frame=["a4000f2000", "x+lElevation", "y+lm"])
# Activate the second panel so that the colormap created by the makecpt
# method is a panel-level CPT
with fig.set_panel(panel=1):
pygmt.makecpt(cmap="globe", series=[-6000, 3000])
# "M?" means Mercator projection with map width also automatically
# determined from the subplot width.
fig.grdimage(
grid=grid_subset, projection="M?", region=subset_region, frame=True
)
fig.grdimage(grid=grid_subset, projection="M?", region=subset_region, frame="a")
fig.colorbar(frame=["a2000f1000", "x+lElevation", "y+lm"])

fig.show()

0 comments on commit ff3f1a3

Please sign in to comment.