Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

fix: Subplot in Chapter 1 gives Matplotlib warning

Open kevinalh opened this issue 4 years ago • 0 comments

Fix a Matplotlib 3.3 deprecation warning in the beginning of the Chapter 1 notebooks.

The exact warning is:

MatplotlibDeprecationWarning: Passing non-integers as three-element position specification is deprecated since 3.3 and will be removed two minor releases later.

image

The simple fix is done by using floor division with // so that the type is int and not float. Since it's the first chapter it's particularly important to keep it clean.

kevinalh avatar Feb 24 '21 02:02 kevinalh