Skip to content

Commit

Permalink
Fixes issue with show_values() mentioned in #76
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGiorgi authored Dec 7, 2017
1 parent 9ad7789 commit ca344ea
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 ca344ea

Please sign in to comment.