Answers for "matplotlib show grid for log or logit"

0

matplotlib show grid for log or logit

import numpy as np
from matplotlib import pyplot as plt

x = np.arange(0, 100, .5)
y = 2 * x**3

plt.loglog(x, y)
plt.grid(True, which="both")
plt.show()
Posted by: Guest on October-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language