File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77
88[project ]
99name = " spotpython"
10- version = " 0.28.13 "
10+ version = " 0.28.14 "
1111authors = [
1212 { name =" T. Bartz-Beielstein" , email =" tbb@bartzundbartz.de" }
1313]
Original file line number Diff line number Diff line change @@ -137,11 +137,12 @@ def plot_mo(
137137 plt .ylabel (target_names [j ])
138138 plt .grid ()
139139 plt .title (title )
140- plt .legend ()
140+ # Move the legend outside the plot
141+ plt .legend (loc = "center left" , bbox_to_anchor = (1 , 0.5 ))
141142 # Save or show the plot
142143 if filename :
143144 if filename .endswith (".pdf" ) or filename .endswith (".png" ):
144- plt .savefig (filename , format = filename .split ("." )[- 1 ])
145+ plt .savefig (filename , format = filename .split ("." )[- 1 ], bbox_inches = "tight" )
145146 else :
146147 raise ValueError ("Filename must have a valid suffix: '.pdf' or '.png'." )
147148 else :
You can’t perform that action at this time.
0 commit comments