def angle_v_sensor_plot(self, x0=0.5, y0=0.5, title="Contour Plot of Q(s,a)"):
#
# Show a contour plot of how Q varies as we change car rotation
# and sensor strength at a fixed position (x0,y0) in the game area.
#
x,y,z = self.angle_v_sensor_contours(x0, y0)
plt.figure(facecolor='white')
plt.hot()
plt.xlabel('Orientation')
plt.ylabel('Signal strength')
im = plt.imshow(z, interpolation='bilinear', origin='lower', cmap=cm.inferno)
CBI = plt.colorbar(im, orientation='horizontal', shrink=0.8)
plt.title(title)
plt.show()
评论列表
文章目录