Skip to content

More plotting updates#123

Merged
dbrakenhoff merged 11 commits into
devfrom
more-plotting-updates
Jun 2, 2026
Merged

More plotting updates#123
dbrakenhoff merged 11 commits into
devfrom
more-plotting-updates

Conversation

@dbrakenhoff
Copy link
Copy Markdown
Contributor

Alright, more work unifying the plotting between steady and transient.

  • Align methods between the two model types, ensure contours can be returned everywhere, ensure all methods by default return ax
  • Use generic functions for contouring under the hood
  • Add quiver plots
  • Add velocity_grid methods
  • rename vcontoursf1d to to vcontour_stream_function

- add helper method to conver window to xy arrays
- add generic contour_array and vcontour_array methods to gather contouring logic in one function
- add quiver_xy and quiver_z plotting methods for plotting quivers of velocity fields.
- Add stream_function method to steady model class
- add velocity_grid method
…, and deprecate legacy functions

- use contour_array behind the scenes for head contour plot
- make headalongline similar to transient headalongline plot
- ensure return_contours is available everywhere
- support cmap argument in contour functions
- rename vcontoursf1d to vcontour_stream_function
- more support for kwargs
- add quiver_xy and quiver_z methods
- align head_along_line between steady and transient implementations
- support colormaps in contour functions
- use contour_array functions behind the scenes
- ensure return_contours are returned everywhere
- add quiver_xy and quiver_z plot methods
- improve docstrings, indicate arrays are 1d
- use tqdm_check everywhere
- convert x,y,z,and t to 1d arrays
Copy link
Copy Markdown
Contributor

@mbakker7 mbakker7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice additions and improvements.
Are these included in some of the notebooks in the docs?

@dbrakenhoff
Copy link
Copy Markdown
Contributor Author

Are these included in some of the notebooks in the docs?

Not yet, if we come across any spots where it might be nice to showcase them that would be a good idea so that the methods are actually sort of tested :)

@dbrakenhoff dbrakenhoff merged commit d586ea3 into dev Jun 2, 2026
11 checks passed
@dbrakenhoff dbrakenhoff deleted the more-plotting-updates branch June 2, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants