Skip to content

Commit d30b2ac

Browse files
committed
chore: make plot title and labels optional
1 parent 68542d1 commit d30b2ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pyretailscience/plots/line.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
def plot(
4646
df: pd.DataFrame,
4747
value_col: str | list[str],
48-
x_label: str,
49-
y_label: str,
50-
title: str,
48+
x_label: str | None = None,
49+
y_label: str | None = None,
50+
title: str | None = None,
5151
x_col: str | None = None,
5252
group_col: str | None = None,
5353
ax: Axes | None = None,
@@ -61,9 +61,9 @@ def plot(
6161
Args:
6262
df (pd.DataFrame): The dataframe to plot.
6363
value_col (str or list of str): The column(s) to plot.
64-
x_label (str): The x-axis label.
65-
y_label (str): The y-axis label.
66-
title (str): The title of the plot.
64+
x_label (str, optional): The x-axis label.
65+
y_label (str, optional): The y-axis label.
66+
title (str, optional): The title of the plot.
6767
x_col (str, optional): The column to be used as the x-axis. If None, the index is used.
6868
group_col (str, optional): The column used to define different lines.
6969
legend_title (str, optional): The title of the legend.

0 commit comments

Comments
 (0)