from spotdesirability.plot.ccd import plotCCD
import matplotlib.pyplot as plt
# Simple plot
plotCCD(elev=20, azim=30, title="CCD Plot Example")
plot.ccd.plotCCD(
elev=20,
azim=30,
figsize=(10, 8),
filename=None,
title='Central Composite Design (CCD) for k=3',
)Plots a Central Composite Design (CCD) for k=3 with customizable viewpoint.
| Name | Type | Description | Default |
|---|---|---|---|
| elev | int | Elevation angle in the z-plane for the 3D plot. | 20 |
| azim | int | Azimuthal angle in the x,y-plane for the 3D plot. | 30 |
| figsize | tuple | Size of the figure (width, height) in inches. Defaults to (10, 8). | (10, 8) |
| filename | str | The name of the file to save the plot. If None, the plot will be shown instead. Supported formats: ‘pdf’, ‘png’. | None |
| title | str | Title of the plot. Defaults to “Central Composite Design (CCD) for k=3”. | 'Central Composite Design (CCD) for k=3' |
| Name | Type | Description |
|---|---|---|
| None | None |