import matplotlib.pyplot as plt
import numpy as np
new_ticks = np.linspace(-2,2,11)
print(new_ticks)
x = np.linspace(-1,1,100)
y1 = 2*x + 1
y2 = x**2
# 范围
plt
import matplotlib.pyplot as plt
import numpy as np
new_ticks = np.linspace(-2,2,11)
print(new_ticks)
x = np.linspace(-1,1,100)
y1 = 2*x + 1
y2 = x**2
# 范围
plt