Scalar3D.plot_y_midplane

Scalar3D.plot_y_midplane(self, mesh, title='', colormap='viridis', vmin=None, vmax=None):


Description

Plots the y midplane of a 3D field.

This method plots the x midplane of a 3D field using the provided mesh. It uses the midpoint of the x-axis to generate a 2D plot of the field values at that plane.

Parameters

  • mesh (object): The mesh object containing the coordinates.

  • title (str, optional): The title of the plot. Default is an empty string.

  • colormap (str, optional): The colormap to use for the plot. Default is 'viridis'.

  • vmin (float, optional): The minimum value for the color scale. Default is None.

  • vmax (float, optional): The maximum value for the color scale. Default is None.

Returns

  • None

Last updated