import matplotlib.pyplot as plt is shorter but no less clear. · import matplotlib.pyplot as plt gives an unfamiliar reader a hint that pyplot is ... ... <看更多>
In [2]: import matplotlib.pyplot as plt. At this point, any plt plot command will cause a figure window to open, and further commands can be run to update ... ... <看更多>