Skip to content

Commit

Permalink
Call get_matplotlib()
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedfgad committed Feb 6, 2025
1 parent fd0e18f commit 22b579f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pygad/visualize/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def plot_genes(self,
self.logger.error("The plot_genes() method can only be called after completing at least 1 generation but ({self.generations_completed}) is completed.")
raise RuntimeError("The plot_genes() method can only be called after completing at least 1 generation but ({self.generations_completed}) is completed.")

matplt = get_matplotlib()

if type(solutions) is str:
if solutions == 'all':
if self.save_solutions:
Expand Down

0 comments on commit 22b579f

Please sign in to comment.