Skip to content

Commit

Permalink
Merge pull request #63 from NeuroML/feat/matplotlib-3.6
Browse files Browse the repository at this point in the history
feat: update for matplotlib 3.6
  • Loading branch information
pgleeson authored Oct 26, 2023
2 parents 417bc11 + 5795fa5 commit 59309c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neuromllite/MatrixHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def finalise_document(self):
title = "%s" % (proj_type)
title2 = "%s" % (proj_type)
plt.title(title)
fig.canvas.set_window_title(title2)
fig.canvas.manager.set_window_title(title2)

max_abs_weight = max(weight_array.max(), -1.0 * (weight_array.min()))
min_abs_weight = np.min(abs(weight_array[np.nonzero(weight_array)]))
Expand Down
2 changes: 1 addition & 1 deletion neuromllite/sweep/ParameterSweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def run(self):
plt.xlim([self.hm_x[0], self.hm_x[-1]])
plt.ylim([self.hm_y[0], self.hm_y[-1]])
title = "Values of %s" % self.vary.keys()
self.hm_fig.canvas.set_window_title(title)
self.hm_fig.canvas.manager.set_window_title(title)
plt.title(title)
# plt.axes().set_aspect('equal')

Expand Down

0 comments on commit 59309c2

Please sign in to comment.