Skip to content

Commit

Permalink
update draw_all to _draw_all
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichao25 committed Mar 1, 2024
1 parent 54c95c1 commit d8aeeba
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,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
Original file line number Diff line number Diff line change
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 d8aeeba

Please sign in to comment.