Skip to content

Commit

Permalink
Do not use variable for colorbar position
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Apr 7, 2022
1 parent a5aaea4 commit adb1cfc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/tutorials/advanced/grid_equalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
pygmt.config(FORMAT_GEO_MAP="ddd.x", MAP_FRAME_TYPE="plain")
# Define the colormap for the figure
pygmt.makecpt(series=[500, 3540], cmap="turku")
# Define the position of the colormap
cmap_position = "JMR+o1c/0c+w3c/0.3c"
# Setup subplots with two panels
with fig.subplot(
nrows=1, ncols=2, figsize=("13.5c", "4c"), title="Digital Elevation Model"
Expand All @@ -54,7 +52,7 @@
histtype=1,
pen="1p,black",
)
fig.colorbar(position=cmap_position, frame=True)
fig.colorbar(position="JMR+o1c/0c+w3c/0.3c", frame=True)
fig.show()

###############################################################################
Expand Down Expand Up @@ -116,7 +114,7 @@
histtype=1,
pen="1p,black",
)
fig.colorbar(position=cmap_position, frame=True)
fig.colorbar(position="JMR+o1c/0c+w3c/0.3c", frame=True)
fig.show()

###############################################################################
Expand Down Expand Up @@ -161,7 +159,7 @@
histtype=1,
pen="1p,black",
)
fig.colorbar(position=cmap_position, frame=True)
fig.colorbar(position="JMR+o1c/0c+w3c/0.3c", frame=True)
fig.show()

###############################################################################
Expand Down Expand Up @@ -219,5 +217,5 @@
histtype=1,
pen="1p,black",
)
fig.colorbar(position=cmap_position, frame=True)
fig.colorbar(position="JMR+o1c/0c+w3c/0.3c", frame=True)
fig.show()

0 comments on commit adb1cfc

Please sign in to comment.