Skip to content

Commit a6a2e6c

Browse files
authored
Add plot_legend_loc parameter to settings (#698)
Closes #685
1 parent cc9ba39 commit a6a2e6c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

evo/tools/plot.py

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def apply_settings(settings: SettingsContainer = SETTINGS):
7171
palette=settings.plot_seaborn_palette)
7272

7373
mpl.rcParams.update({
74+
"legend.loc": settings.plot_legend_loc,
7475
"lines.linewidth": settings.plot_linewidth,
7576
"text.usetex": settings.plot_usetex,
7677
"font.family": settings.plot_fontfamily,

evo/tools/settings_template.py

+5
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ def get_default_plot_backend() -> str:
104104
False,
105105
"Invert the y-axis of plots."
106106
),
107+
"plot_legend_loc": (
108+
"best",
109+
"Plot legend location. See here for the available 'loc' options:\n"
110+
"https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.legend.html"
111+
),
107112
"plot_linewidth": (
108113
1.5,
109114
"Line width value supported by matplotlib."

0 commit comments

Comments
 (0)