pdeitel/IntroToPython

New changes coming in Matplotlib 3.6

LMeinhardt opened this issue · 1 comments

Hello Paul,

I'm here just to provide you a new warning message I got when using Matplotlib - a DeprecationWarning to be more specific:

REF.: Chapter 6 - RollDieDynamic.py

  • ~/Programs/Python3/deitel/ch06/RollDieDynamic.py:34: MatplotlibDeprecationWarning: The resize_event function was deprecated in Matplotlib 3.6 and will be removed two minor releases later. Use callbacks.process('resize_event', ResizeEvent(...)) instead.

  • figure = plt.figure('Rolling a Six-Sided Die') # Figure for animation

  • ~/Programs/Python3/deitel/ch06/RollDieDynamic.py:43: MatplotlibDeprecationWarning: The resize_event function was deprecated in Matplotlib 3.6 and will be removed two minor releases later. Use callbacks.process('resize_event', ResizeEvent(...)) instead.

  • plt.show() # display window

I believe this was fixed by a more recent version of Matplotlib.