我想在我的图表上绘制一个点,但似乎他们都需要绘制为列表或方程式.
我需要绘制像ax.plot(x,y)的图,并且我的图上的x,y坐标上会出现一个点.
这是我的代码
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
import numpy
fig = plt.figure()
plt.xlabel('Width')
plt.ylabel('Height')
ax = fig.gca()
ax.set_xticks(numpy.arange(0,grid[0] + 20,20))
ax.set_yticks(numpy.arange(0,grid[1] + 20,20))
ax.plot(105, 200)
plt.grid()
plt.show()
Run Code Online (Sandbox Code Playgroud)