From 71216f284c1248efe6ad48a04d2c269d6b6e48e5 Mon Sep 17 00:00:00 2001 From: JT Date: Tue, 20 Aug 2024 15:13:11 +0200 Subject: [PATCH] Add as standard to recall graph --- .gitignore | 1 + asreviewcontrib/insights/plot.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b61dc58..f131fff 100644 --- a/.gitignore +++ b/.gitignore @@ -110,3 +110,4 @@ dmypy.json .pyre/ # End of https://www.gitignore.io/api/python +/env diff --git a/asreviewcontrib/insights/plot.py b/asreviewcontrib/insights/plot.py index 8b0ea58..ebf3215 100644 --- a/asreviewcontrib/insights/plot.py +++ b/asreviewcontrib/insights/plot.py @@ -35,6 +35,8 @@ def plot_recall( If False, the fraction of all included records found is on the y-axis. show_random: bool Show the random curve in the plot. + show_perfect: bool + Show the perfect curve in the plot. show_legend: bool If state_obj contains multiple states, show a legend in the plot. legend_values: list[str] @@ -62,7 +64,7 @@ def plot_recall( x_absolute=x_absolute, y_absolute=y_absolute, show_random=show_random, - show_perfect=True, + show_perfect=show_perfect, show_legend=show_legend, legend_values=legend_values, legend_kwargs=legend_kwargs,