def run(): plt.ion() laser = HokuyoLX(tsync = False) laser.convert_time = False ax = plt.subplot(111, projection='polar') plot = ax.scatter([0, 1], [0, 1], s=5, c=[IMIN, IMAX], cmap=plt.cm.Reds, lw=0) text = plt.text(0, 1, '', transform=ax.transAxes) ax.set_rmax(DMAX) ax.grid(True) plt.show() while plt.get_fignums(): update(laser, plot, text) laser.close()
def run(): plt.ion() laser = HokuyoLX(tsync=False) laser.convert_time = False ax = plt.subplot(111, projection='polar') plot = ax.scatter([0, 1], [0, 1], s=10, c='b', lw=0) text = plt.text(0, 1, '', transform=ax.transAxes) ax.set_rmax(DMAX) ax.grid(True) images.append((plot, )) plt.show() while plt.get_fignums(): update(laser, plot, text) laser.close()