CommonNets#
- class pyedb.common.nets.CommonNets(_pedb)#
Overview#
Plot a Net to Matplotlib 2D Chart. |
Import detail#
from pyedb.common.nets import CommonNets
Method detail#
- CommonNets.plot(nets=None, layers=None, color_by_net=False, show_legend=True, save_plot=None, outline=None, size=(6000, 3000), plot_components=True, top_view=True, show=True, annotate_component_names=True, plot_vias=False, title=None, **kwargs)#
Plot a Net to Matplotlib 2D Chart.
- Parameters:
- nets
str,list,optional Name of the net or list of nets to plot. If
Noneall nets will be plotted.- layers
str,list,optional Name of the layers to include in the plot. If
Noneall the signal layers will be considered.- color_by_netbool,
optional If
Truethe plot will be colored by net. IfFalsethe plot will be colored by layer. (default)- show_legendbool,
optional If
Truethe legend is shown in the plot. (default) IfFalsethe legend is not shown.- save_plot
str,optional If a path is specified the plot will be saved in this location. If
save_plotis provided, theshowparameter is ignored.- outline
list,optional List of points of the outline to plot.
- size
tuple,int,optional Image size in pixel (width, height). Default value is
(6000, 3000)- top_viewbool,
optional Whether if use top view or bottom view. Components will be visible only for the highest layer in the view.
- plot_componentsbool,
optional If
Truethe components placed on top layer are plotted. IfFalsethe components are not plotted. (default). This may impact in the plot computation time. If nets and/or layers is specified, only the components belonging to the specified nets/layers are plotted.- annotate_component_names: bool, optional
Whether to add the component names to the plot or not. Default is
True.- plot_viasbool,
optional Whether to plot vias (circular and rectangular) or not. This may impact in the plot computation time. Default is
False.- title
str,optional Specify the default plot title. Is value is
Nonethe project name is assigned by default. Default value isNone.- showbool,
optional Whether to show the plot or not. Default is True.
- nets
- Returns:
- (
ax,fig) Matplotlib ax and figures.
- (