diff --git a/examples/gallery/basemaps/ternary.py b/examples/gallery/basemaps/ternary.py index 3900447cef7..6a7ab357570 100644 --- a/examples/gallery/basemaps/ternary.py +++ b/examples/gallery/basemaps/ternary.py @@ -14,7 +14,7 @@ # %% import pygmt -from pygmt.params import Position +from pygmt.params import Axis, Frame, Position fig = pygmt.Figure() @@ -34,11 +34,13 @@ blabel="Water", clabel="Air", cmap=True, - frame=[ - "aafg+lLimestone component+u %", - "bafg+lWater component+u %", - "cafg+lAir component+u %", - ], + frame=Frame( + aaxis=Axis( + annot=True, tick=True, grid=True, label="Limestone component", unit="%" + ), + baxis=Axis(annot=True, tick=True, grid=True, label="Water component", unit="%"), + caxis=Axis(annot=True, tick=True, grid=True, label="Air component", unit="%"), + ), ) # Add a colorbar indicating the values given in the fourth column of the input dataset