Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions examples/gallery/basemaps/ternary.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# %%
import pygmt
from pygmt.params import Position
from pygmt.params import Axis, Frame, Position

fig = pygmt.Figure()

Expand All @@ -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(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. This one is interesting. I don't want to add aaxis/baxis/caxis to Frame, but what else can do we?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about let users still pass xaxis/yaxis/zaxis, and we internally convert them to -Ba/-Bb/-Bc?

Copy link
Copy Markdown
Member

@Chuan1937 Chuan1937 Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modify:#4517

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
Expand Down
Loading