KnowledgeBoat Logo
|
LoginJOIN NOW

Informatics Practices

Assertion (A): import matplotlib.pyplot as plt is used to import pyplot module.

Reasoning (R): Matplotlib is a Python library and pyplot is a module that contains functions to create various plots.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

PyPlot

1 Like

Answer

Both A and R are true and R is the correct explanation of A.

Explanation
The command to import pyplot is import matplotlib.pyplot as plt. Matplotlib is a Python 2D plotting library for creating publication-quality figures. Pyplot is a module within the Matplotlib library that contains a collection of methods which allow users to create 2D plots and graphs easily and interactively.

Answered By

1 Like


Related Questions