Skip to content

Commit fa573f9

Browse files
committed
Update: world plot
1 parent bdc73e9 commit fa573f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kaleidoscope/val/plots.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
from typing import Any
9+
from typing import Literal
910

1011
import dask.array as da
1112
import numpy as np
@@ -44,8 +45,8 @@ def plot(
4445
ylocs: tuple[Any, ...] | None = None,
4546
vmin: Any | None = None,
4647
vmax: Any | None = None,
47-
x: str = "lon",
48-
y: str = "lat",
48+
x: Literal["lon", "longitude"] | None = None,
49+
y: Literal["lat", "latitude"] | None = None,
4950
) -> Figure:
5051
if projection is None:
5152
projection = self.projection

0 commit comments

Comments
 (0)