pyorc.CrossSection.plot_wetted_surface#

CrossSection.plot_wetted_surface(h: float, camera: bool = False, swap_y_coords=False, ax=None, **kwargs)[source]#

Plot the wetted surface for a given water level.

Parameters:
  • h (float, optional) – water level [m]. If not provided, the water level is taken from the camera config cross_section.camera_config.gcps[“h_ref”].

  • camera (bool, optional) – If set, return 2D projected polygon, by default False.

  • swap_y_coords (bool, optional) – if set, all y-coordinates are swapped so that they fit on a flipped version of the image. This is useful in case you plot on ascending y-coordinate axis background images (default: False)

  • ax (plt.axes, optional) – if not provided, axes is setup (Default: None). If provided, user must take care to provide the correct projection. If camera=False, an axes must be provided with projection=”3d”.

  • **kwargs (dict, optional) – keyword arguments used to make the polygon plot of the wetted surface.

Return type:

plt.axes