11 lines
246 B
Python
11 lines
246 B
Python
import matplotlib.pyplot as plt
|
|
import numpy as np
|
|
|
|
x = np.arange(0, 2, 0.2)
|
|
# print(x)
|
|
|
|
plt.plot(x, x, 'bo')
|
|
plt.plot(x, x**2, color='#e35f62', marker='*', linewidth=2)
|
|
plt.plot(x, x**3, color='forestgreen', marker='^', markersize=9)
|
|
plt.show()
|