question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plot_emotion_matrix.py 'PolyCollection' has no attributes 'get_axes()'

See original GitHub issue

Hi. When I run the plot_emotion_matrix.py, I find an error: AttributeError: ‘PolyCollection’ object has no attribute ‘get_axes’. Below is the function concerning the error. I am wondering how to solve it def show_values(pc, fmt="%.2f", **kw): #from itertools import zip pc.update_scalarmappable() ax = pc.get_axes()

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
AdrienPlayeriumcommented, Mar 28, 2018

ax = pc.get_axes() to ax = pc.axes

0reactions
snowalalacommented, Jul 13, 2018

@KiwiTae Thanks a lot. It really works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'PolyCollection' object has no attribute 'get_axes' · Issue #76 ...
AttributeError: 'PolyCollection' object has no attribute 'get_axes' #76 ... main() File "main.py", line 246, in main nn.fit()
Read more >
Getting axes of matplotlib.collections.PolyCollection
Having a look at the documentation, axes is an existing property while get_axes is not. It should return the Axes instance as intended....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found