plot_compare_four#
- plot_compare_four(
- data_a: DataSet,
- data_b: DataSet,
- data_c: DataSet,
- data_d: DataSet,
- *,
- display_kwargs: dict[str, Any] | None = None,
- plotter_kwargs: dict[str, Any] | None = None,
- show_kwargs: dict[str, Any] | None = None,
- screenshot: str | bool = False,
- camera_position: Any = None,
- outline: DataSet | None = None,
- outline_color: ColorLike = 'k',
- labels: Sequence[str] = ('A', 'B', 'C', 'D'),
- link: bool = True,
- notebook: bool | None = None,
Plot a 2 by 2 comparison of data objects.
Deprecated since version 0.49: Use
plot_compare()instead, which supports any number of data objects::plot_compare([data_a, data_b, data_c, data_d])
- Parameters:
- data_a
pyvista.DataSet The data object to display in the top-left corner.
- data_b
pyvista.DataSet The data object to display in the top-right corner.
- data_c
pyvista.DataSet The data object to display in the bottom-left corner.
- data_d
pyvista.DataSet The data object to display in the bottom-right corner.
- display_kwargs
dict, default:None Additional keyword arguments to pass to the
add_meshmethod.- plotter_kwargs
dict, default:None Additional keyword arguments to pass to the
Plotterconstructor.- show_kwargs
dict, default:None Additional keyword arguments to pass to the
showmethod.- screenshot
str| bool, default:False File name or path to save screenshot of the plot, or
Trueto return a screenshot array.- camera_position
list, default:None The camera position to use in the plot.
- outline
pyvista.DataSet, default:None An outline to plot around the data objects.
- outline_color
str, default: ‘k’ The color of the outline.
- labels
tuple[str,str,str,str], default: (‘A’, ‘B’, ‘C’, ‘D’) The labels to display for each data object.
- linkbool, default:
True If
True, link the views of the subplots.- notebookbool, default:
None If
True, display the plot in a Jupyter notebook.
- data_a
- Returns:
tupleSee the returns of
pyvista.Plotter.show().