Allow customisation of the plot utilities in the realisation module#104
Merged
lispandfound merged 5 commits intomasterfrom May 7, 2025
Merged
Allow customisation of the plot utilities in the realisation module#104lispandfound merged 5 commits intomasterfrom
realisation module#104lispandfound merged 5 commits intomasterfrom
Conversation
…realisation` module
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enables customisation of plot styling in the realisation module by allowing users to override default plotting parameters using additional keyword arguments.
- plot_stations, plot_sources, and plot_domain now accept **kwargs for custom styles.
- plot_rrup_polygon adds optional parameters to customize both the polygon and label styles.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request introduces enhancements to the plot utility functions in the realisation module, allowing researchers to customise the styling of plots in their outputs.
- Added **kwargs parameters to plot_stations, plot_sources, and plot_domain for user-defined style customisations.
- Added optional style arguments (rrup_polygon_args and label_args) to plot_rrup_polygon for more flexible plotting of RRup bounding polygons.
joelridden
approved these changes
May 6, 2025
AndrewRidden-Harper
approved these changes
May 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following functions can now be customised to allow different plotting styles:
plot_stationsplot_sourcesplot_domainplot_rrup_polygonThis is so researchers can create custom styles for plots in papers.