Skip to content

Commit

Permalink
Fixing pre-commit errors2
Browse files Browse the repository at this point in the history
  • Loading branch information
FloraSauerbronn committed Aug 30, 2024
1 parent 91f2bd0 commit 305cf81
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gliderpy/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


@register_dataframe_method
def plot_track(df: pd.DataFrame) -> tuple(plt.Figure, plt.Axes):
def plot_track(df: pd.DataFrame) -> tuple[plt.Figure, plt.Axes]:
"""Plot a track of glider path coloured by temperature.
:return: figures, axes
Expand All @@ -53,7 +53,7 @@ def plot_transect(
var: str,
ax: plt.Axes = None,
**kw: dict,
) -> tuple(plt.Figure, plt.Axes):
) -> tuple[plt.Figure, plt.Axes]:
"""Make a scatter plot of depth vs time coloured by a user defined
variable.
Expand Down Expand Up @@ -103,7 +103,7 @@ def plot_ctd(
var: str,
ax: plt.Axes = None,
color: str | None = None,
) -> tuple(plt.Figure, plt.Axes):
) -> tuple[plt.Figure, plt.Axes]:
"""Make a CTD profile plot of pressure vs property
depending on what variable was chosen.
Expand Down Expand Up @@ -133,8 +133,9 @@ def plot_ctd(
def plot_ts(
df: pd.DataFrame,
profile_number: int,
) -> tuple(plt.Figure, plt.Axes):
""" Make a TS - Diagram from a chosen profile number.
) -> tuple[plt.Figure, plt.Axes]:
"""Make a TS diagram from a chosen profile number.
:param profile_number: profile number of CTD
:return: figure, axes
"""
Expand Down

0 comments on commit 305cf81

Please sign in to comment.