Skip to content

Commit

Permalink
Replace mutable default logo position argument with None
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
Frix-x and sourcery-ai[bot] authored Nov 23, 2024
1 parent 0c52ee6 commit 167bcb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shaketune/graph_creators/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def __init__(self):
image_path = os.path.join(current_dir, 'klippain.png')
self.logo_image = plt.imread(image_path)

def add_logo(self, fig, position=[0.001, 0.894, 0.105, 0.105]): # noqa: B006
def add_logo(self, fig, position=None): # noqa: B006
if position is None:
position = [0.001, 0.894, 0.105, 0.105]
ax_logo = fig.add_axes(position, anchor='NW')
ax_logo.imshow(self.logo_image)
ax_logo.axis('off')
Expand Down

0 comments on commit 167bcb3

Please sign in to comment.