Skip to content

Commit

Permalink
plots: change default legend location to the upper left corner of the
Browse files Browse the repository at this point in the history
plot

Automatic legend placement is not implemented for `Figures`, only
`Axes`.
  • Loading branch information
hagau committed Sep 18, 2024
1 parent 3fced8a commit cb6eecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def __init__(self, dataset_name:str
, bin_size:float = 10.
, title_template:Optional[str] = None
, bbox_inches:str = 'tight'
, legend_location:str = 'best'
, legend_location:str = 'upper left'
, legend_bbox:Optional[str] = None
, legend_labels:Optional[str] = None
, legend_title:Optional[str] = None
Expand Down Expand Up @@ -387,7 +387,7 @@ def set_label_defaults(self

def set_legend_defaults(self
, legend:bool = True
, legend_location:str = 'best'
, legend_location:str = 'upper left'
, legend_bbox:Optional[str] = None
, legend_labels:Optional[str] = None
, legend_title:Optional[str] = None
Expand Down

0 comments on commit cb6eecf

Please sign in to comment.