Skip to content

Commit

Permalink
Plot for zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
student committed Apr 18, 2024
1 parent cdf8cf1 commit 581c813
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions etrago/tools/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,17 @@ def plot_grid(
"heat": 0.1,
"battery": 10,
},
ax=None, # Add this line to include ax as a parameter
):
# The body of the function...
# You will need to modify the function to use ax for plotting
# For example:
if ax is None:
fig, ax = plt.subplots() # If ax is not provided, create a new figure and axis

# Use the provided ax for plotting operations
# ... rest of the function

"""Function that plots etrago.network and results for lines and buses
Parameters
Expand Down

0 comments on commit 581c813

Please sign in to comment.