Skip to content

Commit

Permalink
Merge pull request #79 from JohnGiorgi/patch-2
Browse files Browse the repository at this point in the history
Fixes issue with `show_values()` mentioned in #76
  • Loading branch information
tompollard authored Jan 24, 2019
2 parents fd90d5c + ca344ea commit 96b525e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def show_values(pc, fmt="%.2f", **kw):
By HYRY
'''
pc.update_scalarmappable()
ax = pc.get_axes()
ax = pc.axes
for p, color, value in zip(pc.get_paths(), pc.get_facecolors(), pc.get_array()):
x, y = p.vertices[:-2, :].mean(0)
if np.all(color[:3] > 0.5):
Expand Down

0 comments on commit 96b525e

Please sign in to comment.