desc.plotting.plot_coils
- desc.plotting.plot_coils(coils, grid=None, ax=None, return_data=False, **kwargs)Source
Create 3D plot of coil geometry.
- Parameters:
coils (Coil, CoilSet) – Coil or coils to plot
grid (Grid, optional) – Grid to use for evaluating geometry
ax (matplotlib AxesSubplot, optional) – Axis to plot on return_data : bool
return_data (bool) – if True, return the data plotted as well as fig,ax
**kwargs (dict, optional) –
Specify properties of the figure, axis, and plot appearance e.g.:
plot_X(figsize=(4,6),label="your_label")
Valid keyword arguments are:
figsize: tuple of length 2, the size of the figure (to be passed to matplotlib)lw: float, linewidth of plotted coilsls: str, linestyle of plotted coilscolor: str, color of plotted coilscmap: str, name of colormap
- Returns:
fig (matplotlib.figure.Figure) – Figure being plotted to
ax (matplotlib.axes.Axes or ndarray of Axes) – Axes being plotted to
plot_data (dict) – dictionary of the data plotted, only returned if
return_data=True