Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add storm track plotting #633

Merged
merged 5 commits into from
Nov 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add basic style input option
mandli committed Oct 29, 2024
commit 63f7b7f883ff9c688e845f80a51723b25eb30307
4 changes: 2 additions & 2 deletions src/python/geoclaw/surge/storm.py
Original file line number Diff line number Diff line change
@@ -1164,7 +1164,7 @@ def write_tcvitals(self, path, verbose=False):
# ================
# Track Plotting
# ================
def plot(self, ax, t_range=None, categorization=None,
def plot(self, ax, *args, t_range=None, categorization=None,
cat_colors={}, plot_swath=False, radius=None,
coordinate_system=2, fill_alpha=0.25, fill_color='red',
**kwargs):
@@ -1205,7 +1205,7 @@ def plot(self, ax, t_range=None, categorization=None,
# Plot track
if categorization is None:
# Plot the track as a simple line with the given style
ax.plot(x, y, **kwargs)
ax.plot(x, y, *args, **kwargs)
else:
if self.max_wind_speed is None:
raise ValueError("Maximum wind speed not available so "