Skip to content

plot_genes() missing matplt() #315

Open
@tlint101

Description

@tlint101

Hello,

I noticed in PyGAD 3.4.0, calling the plot_genes() method brings the following error:

in Plot.plot_genes(self, title, xlabel, ylabel, linewidth, font_size, plot_type, graph_type, fill_color, color, solutions, save_dir)
    274     ax.set_xlabel(0, fontsize=font_size)
    275 else:
--> 276     fig, axs = matplt.subplots(num_rows, num_cols)
    278     if num_cols == 1 and num_rows == 1:
    279         fig.set_figwidth(5 * num_cols)

NameError: name 'matplt' is not defined

I think the method is missing the following function (which is present in the other plot methods):

matplt = get_matplotlib()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions