AttributeError: Unknown property axisbg

Bug #1780668 reported by Nkululeko Qwabe
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
APSYNSIM
New
Undecided
Unassigned

Bug Description

APSYNSIM.py:319: MatplotlibDeprecationWarning: The FigureCanvasTk.show function was deprecated in version 2.2. Use FigureCanvasTk.draw instead.
  self.canvas.show()
Traceback (most recent call last):
  File "APSYNSIM.py", line 3017, in <module>
    myint = Interferometer(tkroot=root)
  File "APSYNSIM.py", line 287, in __init__
    self.GUI() #makefigs=makefigs)
  File "APSYNSIM.py", line 331, in GUI
    self.UVPlot = self.figUV.add_subplot(232,aspect='equal',axisbg=(0.4,0.4,0.4))
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/figure.py", line 1239, in add_subplot
    a = subplot_class_factory(projection_class)(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_subplots.py", line 77, in __init__
    self._axes_class.__init__(self, fig, self.figbox, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 539, in __init__
    self.update(kwargs)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 888, in update
    for k, v in props.items()]
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 881, in _update_property
    raise AttributeError('Unknown property %s' % k)
AttributeError: Unknown property axisbg

Revision history for this message
Nkululeko Qwabe (smallq) wrote :

Can you please help me with the error above. I run Ubuntu 18.04 LTS, 64bit. Python 2.7.15rc1, matplotlib version 2.2.2.

Revision history for this message
Chiara D'Eugenio (chiarad) wrote :

I have the same problem.

I'm using Python 2.7.16
matplotlib version 2.2.3

Revision history for this message
Galefang Allycan Mapunda (allymap) wrote :

Were you guys able to solve this error? If so, kindly assist.
My system is running on Ubuntu 20.04.2 LTS 64bit.
I am using Python 3.8.5 and matplotlib 3.1.2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.