pycoastkit.plot¶
Figures for storms and beach response (pck.plot).
Every function draws on ax when given (for multi-panel figures) and
otherwise creates a new figure. They return the axis. Importing the package
does not change matplotlib settings; call :func:use_style for the compact
publication style.
use_style
¶
Compact style for journal figures, based on the SciencePlots 'nature' style.
Source code in src/pycoastkit/plot.py
plot_storm_timeline
¶
plot_storm_timeline(waves, storms, criteria=None, start=None, end=None, hs_column='hs', ax=None, figsize=(6, 2))
Hs time series with storms shaded (grey = individual, red = clustered) and the two thresholds as dashed lines.
Source code in src/pycoastkit/plot.py
plot_storm_counts
¶
Bar chart of storm counts per "year" or "month" (seasonality),
split into individual storms and storms that belong to clusters.
Source code in src/pycoastkit/plot.py
plot_profiles
¶
plot_profiles(profiles, start=None, end=None, water_level=None, shoreline=None, ax=None, figsize=(4.8, 2.0))
Overlay the beach profiles surveyed between start and end.
water_level draws the shoreline-defining level; shoreline (a
position in m, or a Series indexed like the profiles) marks the detected
shoreline. Handy for checking surveys flagged as outliers.
Source code in src/pycoastkit/plot.py
plot_beach_response
¶
Scatter of storm forcing (x) against beach change (y), coloured
by individual (grey) or clustered (red) events, with a zero line.
Source code in src/pycoastkit/plot.py
plot_density_scatter
¶
plot_density_scatter(observed, predicted, xlabel='Observed', ylabel='Predicted', gridsize=25, ax=None, figsize=(3.2, 2.8))
Observed vs predicted as a hexbin density (log colours) with the 1:1 line, matching percentiles (white circles) and a skill box.
Source code in src/pycoastkit/plot.py
plot_wave_rose
¶
Frequency rose of wave directions [degrees, coming from, clockwise from north].
Source code in src/pycoastkit/plot.py
plot_sandbars
¶
One profile with its detected bars: crest (triangle), troughs (dots) and the trough-to-trough line used for the bar height.
bars is the output of :func:pycoastkit.find_sandbars for this profile.