pysdic.Plotter3D.set_bounds#

Plotter3D.set_bounds(bounds=None, *, grid=None, ticks=None, location=None, color=None, font_size=None, font_family=None, bold=False, fmt=None, title_x='X Axis', title_y='Y Axis', title_z='Z Axis', n_xlabels=5, n_ylabels=5, n_zlabels=5, show_xaxis=True, show_yaxis=True, show_zaxis=True, show_xlabels=True, show_ylabels=True, show_zlabels=True)[source]#

Show bounds on the plotter for visualizing the axes and grid.

Parameters:
  • bounds (Optional[Union[str, Tuple[Real, Real, Real, Real, Real, Real]]], optional) – The bounds of the plot as a tuple (xmin, xmax, ymin, ymax, zmin, zmax). If None, the bounds are determined automatically based on the plotted data.

  • grid (Optional[str], optional) – The type of grid to display. Must be one of "front", "back", "all", or "none". Default is "none".

  • ticks (Optional[str], optional) – The type of ticks to display. Must be one of "front", "back", "all", or "none". Default is "none".

  • location (Optional[str], optional) – The location of the axes. Must be one of "origin", "center", or "default". Default is "default".

  • color (Optional[Union[str, Tuple[Real, Real, Real]]], optional) – The color of the bounds and grid lines. Can be a string representing a color name (e.g., "black"), or an RGB tuple or hex string. Default is set by PyVista.

  • font_size (Optional[int], optional) – The font size of the axis labels and ticks. Default is set by PyVista.

  • font_family (Optional[str], optional) – The font type of the axis labels and ticks. Must be one of "arial", "courier", and "times". Default is set by PyVista.

  • bold (bool, optional) – Whether to display the axis labels and ticks in bold font. Default is False.

  • fmt (Optional[str], optional) – A format string for formatting the tick labels (e.g., "{:.2f}"). If None, default formatting is used.

  • title_x (str, optional) – The title for the X axis. Default is “X Axis”.

  • title_y (str, optional) – The title for the Y axis. Default is “Y Axis”.

  • title_z (str, optional) – The title for the Z axis. Default is “Z Axis”.

  • n_xlabels (Integral, optional) – The number of labels to display on the X axis. Default is 5.

  • n_ylabels (Integral, optional) – The number of labels to display on the Y axis. Default is 5.

  • n_zlabels (Integral, optional) – The number of labels to display on the Z axis. Default is 5.

  • show_xaxis (bool, optional) – Whether to show the X axis. Default is True.

  • show_yaxis (bool, optional) – Whether to show the Y axis. Default is True.

  • show_zaxis (bool, optional) – Whether to show the Z axis. Default is True.

  • show_xlabels (bool, optional) – Whether to show the labels on the X axis. Default is True.

  • show_ylabels (bool, optional) – Whether to show the labels on the Y axis. Default is True.

  • show_zlabels (bool, optional) – Whether to show the labels on the Z axis. Default is True.

Return type:

None