get_sources_for_plot#

Matrix.get_sources_for_plot(get_self_terms=True, get_mutual_terms=True, first_element_filter=None, second_element_filter=None, category='C')[source]#

Return a list of source of specified matrix ready to be used in plot reports.

Parameters:
get_self_termsbool

Either if self terms have to be returned or not.

get_mutual_termsbool

Either if mutual terms have to be returned or not.

first_element_filterstr, optional

Filter to apply to first element of equation. It accepts * and ? as special characters.

second_element_filterstr, optional

Filter to apply to second element of equation. It accepts * and ? as special characters.

categorystr

Plot category name as in the report. Eg. “C” is category Capacitance. Matrix CATEGORIES property can be used to map available categories.

Returns:
list

Examples

>>> from ansys.aedt.core import Q3d
>>> q3d = Q3d(project_path)
>>> q3d.matrices[0].get_sources_for_plot(first_element_filter="Bo?1",
...                                      second_element_filter="GND*", category="DCL")