["python","matplotlib"]
Which is the recommended way to plot: matplotlib or pylab?

I can plot in Python using either: import matplotlib matplotlib.pyplot.plot(...) Or: import pylab pylab.plot(...) Both of these use matplotlib. Which is recommend as the correct method to plot? Why?
The official documentation clearly recommends to use matplotlib.pyplot. The API documentation still mentions the pylab module but advises against using it.1 Since heavily importing into the global namespace may result in unexpected behavior, the use of pylab is strongly discouraged. Use matplotlib.pyplot instead. The Quick start guide also disapproves using the pylab module. You may find older examples that use the pylab interface, via from pylab import *. This approach is strongly deprecated. 1. As far as I can see this recommendation was added on February 7th, 2020