mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
move legend outside image
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
This commit is contained in:
parent
6b03287d52
commit
8bc434a67d
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ class Universe(UniverseBase):
|
|||
key_patch = mpatches.Patch(color=color, label=key.name)
|
||||
patches.append(key_patch)
|
||||
|
||||
axes.legend(handles=patches)
|
||||
axes.legend(handles=patches, bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.0)
|
||||
|
||||
# Plot image and return the axes
|
||||
return axes.imshow(img, extent=(x_min, x_max, y_min, y_max), **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue