CBSE Class 12 Informatics Practices
Question 28 of 73
Data Visualization using Matplotlib — Question 5
Back to all questionsimport matplotlib.pyplot as plt
Reason — The correct command to import Matplotlib for coding is import matplotlib.pyplot as plt. This is the standard way to import Matplotlib, where matplotlib.pyplot is the module that provides the plotting functions, and as plt assigns the alias plt to the pyplot module.