from matplotlib import pyplot as plt import matplotlib.pyplot as plt1 print(dir(plt) == dir(plt1)) True