plot#

Stackup.plot(save_plot=None, size=(2000, 1500), plot_definitions=None, first_layer=None, last_layer=None, scale_elevation=True, show=True)[source]#

Plot current stackup and, optionally, overlap padstack definitions. Plot supports only ‘Laminate’ and ‘Overlapping’ stackup types.

Parameters:
save_plotstr, optional

If a path is specified the plot will be saved in this location. If save_plot is provided, the show parameter is ignored.

sizetuple, optional

Image size in pixel (width, height). Default value is (2000, 1500)

plot_definitionsstr, list, optional

List of padstack definitions to plot on the stackup. It is supported only for Laminate mode.

first_layerstr or pyedb.dotnet.edb_core.edb_data.layer_data.LayerEdbClass

First layer to plot from the bottom. Default is None to start plotting from bottom.

last_layerstr or pyedb.dotnet.edb_core.edb_data.layer_data.LayerEdbClass

Last layer to plot from the bottom. Default is None to plot up to top layer.

scale_elevationbool, optional

The real layer thickness is scaled so that max_thickness = 3 * min_thickness. Default is True.

showbool, optional

Whether to show the plot or not. Default is True.

Returns:
matplotlib.plt