mpltools icon indicating copy to clipboard operation
mpltools copied to clipboard

'AxesSubplot' object has no attribute 'set_axis_bgcolor' in hinton.py

Open lehoangh opened this issue 6 years ago • 0 comments

I am using QInfer to do my teleportation example in Python 3.7.4 and matplotlib 3.1.1. I faced with the problem within the hinton.py of mpltools.special. The error is AttributeError with 'AxesSubplot' object has no attribute 'set_axis_bgcolor' in line 56: ax.set_axis_bgcolor('gray') and I changed it into: ax.set_facecolor('gray'). After that, it run successfully with jupyter notebook of Quantum Teleportation written by the interoperability between Python and Q#.

lehoangh avatar Sep 26 '19 19:09 lehoangh