numpy
numpy
import numpy as np
import matplotlib.pyplot as plt
#plt.axis([0, 6, 0, 20])
xvalues = np.array([1,2,3,4]);
yvalues = np.array([5,6,7]);
xx, yy = np.meshgrid(xvalues, yvalues)
print(xx)
print(yy)
plt.plot(xx, yy, marker='.', color='k', linestyle='none')
plt.show()
[[1 2 3 4] [1 2 3 4] [1 2 3 4]] [[5 5 5 5] [6 6 6 6] [7 7 7 7]]
沒有留言 :
張貼留言