AttributeError: Unknown property axisbg

Bug #1780668 reported by Nkululeko Qwabe
This bug affects 3 people
Affects Status Importance Assigned to Milestone

Bug Description MatplotlibDeprecationWarning: The function was deprecated in version 2.2. Use FigureCanvasTk.draw instead.
Traceback (most recent call last):
  File "", line 3017, in <module>
    myint = Interferometer(tkroot=root)
  File "", line 287, in __init__
    self.GUI() #makefigs=makefigs)
  File "", 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/", line 1239, in add_subplot
    a = subplot_class_factory(projection_class)(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/", line 77, in __init__
    self._axes_class.__init__(self, fig, self.figbox, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/", line 539, in __init__
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/", line 888, in update
    for k, v in props.items()]
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/", 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  Edit
Everyone can see this information.

Other bug subscribers