Skip to content

Commit

Permalink
legend visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-evers committed Oct 15, 2023
1 parent 8b63748 commit bedd813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ celerybeat.pid
*.sage.py

# Environments
myenv/
.env
.venv
env/
Expand Down
5 changes: 2 additions & 3 deletions pybamm_tea/tea.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,8 @@ def plot_stack_breakdown(self, testing=False):
)

# Set up the figure and axis objects
fig = plt.figure(figsize=(8, 4), facecolor="white")
ax = fig.add_axes([0.1, 0.25, 0.8, 0.6])
fig = plt.figure(figsize=(12, 4), facecolor="white")
ax = fig.add_axes([0.1, 0.2, 0.6, 0.6])

# Initialize the x position
x_pos = -widths[0]
Expand Down Expand Up @@ -1055,7 +1055,6 @@ def plot_stack_breakdown(self, testing=False):
ax.legend(handles=legend_handles, loc="upper left", bbox_to_anchor=(1.05, 1))

# Display the chart
plt.tight_layout()
if testing is False:
plt.show()

Expand Down

0 comments on commit bedd813

Please sign in to comment.