Graphs
IFS criteria bar plot
- pyifdm.graphs.ifs_criteria_bar_plot.ifs_criteria_bar_plot(criteria_weights, criteria_names=None, ax=None)[source]
Visualize a list of Intuitionistic Fuzzy Sets (IFS) as stacked bars.
Parameters: - criteria_weights (list): A list of lists, where each inner list represents an IFS (membership, non-membership, uncertainty). - criteria_names (list, optional): A list of names for each criteria. If not provided, default names will be used. - ax (Axes or None): Axes object to draw on. If None, then the current axes are used.
- Returns:
ax
Example:
` # Example Usage: criteria_weights_example = [[0.6, 0.2, 0.2], [0.8, 0.1, 0.1], [0.5, 0.3, 0.2]] criteria_names_example = ['Criterion 1', 'Criterion 2', 'Criterion 3'] ifs_criteria_bar_plot(criteria_weights_example, criteria_names_example) `The stacked bar plot displays the degree of belief for membership, non-membership, and uncertainty of multiple criteria.
IFS heatmap plot
- pyifdm.graphs.ifs_heatmap_plot.ifs_heatmap_plot(ifs_matrix, cmap='Blues', labels=None, ax=None)[source]
Visualize a matrix plot for Intuitionistic Fuzzy Sets (IFS).
Parameters: - ifs_matrix (list of lists): A matrix of IFS values where each row represents an IFS. - labels (list of str, optional): labels for each row in the matrix. - ax (Axes or None): Axes object to draw on. If None, then the current axes are used.
- Returns:
ax
Example: ``` # Example Usage: ifs_matrix_example = [
[0.6, 0.2, 0.2], [0.8, 0.1, 0.1], [0.4, 0.3, 0.3]
] labels_example = [‘Set 1’, ‘Set 2’, ‘Set 3’] ifs_heatmap_plot(ifs_matrix_example, labels=labels_example) ```
The matrix plot displays the degree of belief for membership, non-membership, and uncertainty of multiple Intuitionistic Fuzzy Sets.
IFS radar plot
- pyifdm.graphs.ifs_radar_plot.ifs_radar_plot(ifses, labels=None, title=None, ax=None)[source]
Create a Spider/Radar Plot for Intuitionistic Fuzzy Sets (IFS).
Parameters: - ifses (list): A list of IFS, where each IFS is a list of three values (membership, non-membership, uncertainty). - labels (list, optional): Labels for each IFS. If not provided, numerical indices will be used. - title (str, optional): The title for the plot. - ax (Axes or None): Axes object to draw on. If None, then the current axes are used.
- Returns:
ax
Example:
` # Example Usage: ifses_example = [[0.6, 0.2, 0.2], [0.8, 0.1, 0.1], [0.4, 0.3, 0.3]] labels_example = ['IFS 1', 'IFS 2', 'IFS 3'] ifs_radar_plot(ifses_example, labels=labels_example, title='IFS Comparison') `The Spider/Radar Plot visually represents the degree of belief for membership, non-membership, and uncertainty in each IFS.
Single IFS bar plot
- pyifdm.graphs.single_ifs_bar_plot.single_ifs_bar_plot(ifs, title=None, ax=None)[source]
Visualize a single Intuitionistic Fuzzy Set (IFS) using a bar plot.
Parameters: - ifs (list): A list of three values representing the membership, non-membership, and uncertainty of the IFS. - title (str, optional): The title for the plot. - ax (Axes or None): Axes object to draw on. If None, then current axes is used.
- Returns:
ax
Example:
` # Example Usage: ifs_example = [0.6, 0.2, 0.2] single_ifs_bar_plot(ifs_example, title='Example IFS') `The bar plot displays the degree of belief for membership, non-membership, and uncertainty of an Intuitionistic Fuzzy Set.
Single IFS pie plot
- pyifdm.graphs.single_ifs_pie_plot.single_ifs_pie_plot(ifs, title=None, ax=None)[source]
Visualize a single Intuitionistic Fuzzy Set (IFS) using a pie plot.
Parameters: - ifs (list): A list of three values representing the membership, non-membership, and uncertainty of the IFS. - title (str, optional): The title for the plot. - ax (Axes or None): Axes object to draw on. If None, then current axes is used.
- Returns:
ax
Example:
` # Example Usage: ifs_example = [0.6, 0.2, 0.2] single_ifs_pie_plot(ifs_example, title='Example IFS') `The pie plot displays the degree of belief for membership, non-membership, and uncertainty of an Intuitionistic Fuzzy Set.