Skip to content

Commit

Permalink
Merge pull request #669 from Sichao25/debug_l
Browse files Browse the repository at this point in the history
Update matplotlib `Colorbar.draw_all()` to `Colorbar._draw_all()`
  • Loading branch information
Xiaojieqiu committed Mar 11, 2024
2 parents f82116a + d8aeeba commit 72ade2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dynamo/plot/heatmaps.py
Expand Up @@ -463,7 +463,7 @@ def scale_func(x, X, grid_num):
)
cb = fig.colorbar(im, cax=axins)
cb.set_alpha(1)
cb.draw_all()
cb._draw_all()
cb.locator = MaxNLocator(nbins=3, integer=False)
cb.update_ticks()

Expand Down Expand Up @@ -1043,7 +1043,7 @@ def causality(
)
cb = fig.colorbar(im, cax=axins)
cb.set_alpha(1)
cb.draw_all()
cb._draw_all()
cb.locator = MaxNLocator(nbins=3, integer=False)
cb.update_ticks()

Expand Down
2 changes: 1 addition & 1 deletion dynamo/plot/networks.py
Expand Up @@ -307,7 +307,7 @@ def arcPlot(
cb.ax.set_title(cbar_title)

cb.set_alpha(1)
cb.draw_all()
cb._draw_all()
cb.locator = MaxNLocator(nbins=3, integer=True)
cb.update_ticks()

Expand Down
2 changes: 1 addition & 1 deletion dynamo/plot/utils.py
Expand Up @@ -795,7 +795,7 @@ def _matplotlib_points(
if show_colorbar:
cb = plt.colorbar(mappable, cax=set_colorbar(ax, inset_dict), ax=ax)
cb.set_alpha(1)
cb.draw_all()
cb._draw_all()
cb.locator = MaxNLocator(nbins=3, integer=True)
cb.update_ticks()

Expand Down

0 comments on commit 72ade2b

Please sign in to comment.