• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: AttributeError: ‘Figure’ object has no property ‘polar’

Resolved: AttributeError: ‘Figure’ object has no property ‘polar’

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’m having troubles to plot a spyder graph, I’m making it on pyside with matplotlib Here is my class(widget in a widget):
and the error is like the title
AttributeError: ‘Figure’ object has no property ‘polar’
in line
I guess the formatting on that line is not correct or maybe I should do it differently.

Answer:

Shouldn’t you pass the “polar” keyword in subplot_kw ? See here : https://matplotlib.org/3.5.0/api/_as_gen/matplotlib.pyplot.subplots.html
As for the error in itself, nor subplots nor figure have a “polar” argument, that’s what the error message is telling you (you can see in the link above that extra keyword arguments passed to pyplot.subplots get passed to the pyplot.figure call).

If you have better answer, please add a comment about this, thank you!

matplotlib pyside python
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: EntityFramework creates/runs migrations using parameterless DataContext instance

24/03/2023

Resolved: Visual Studio 2022 crashes when using breakpoints

24/03/2023

Resolved: How to get Union type from an array of objects in Flow?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.