Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the following Python codes will produce a plot with logarithmic scales on both axes (using Matplotlib)?
import numpy as npimport matplotlib.pyplot as pltX = np.arange(1, 11)Y = np.log(X)plt.plot(X, Y)plt.xscale("log")plt.show()
None of the above
import numpy as npimport matplotlib.pyplot as pltX = np.log(np.arange(1, 11))Y = np.log(X)plt.plot(X, Y)plt.show()
import numpy as np
plt.show()
import numpy as npimport matplotlib.pyplot as pltX = np.arange(1, 11)Y = np.log(X)plt.plot(X, Y)plt.xscale("log")plt.yscale("log")plt.show()
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!