Reputation: 599
Hello I am trying to add an error bar to the following scatter plot:
(x, y) = self.rig_parameters["image_size"]
disparity_image = np.array(image)
locations = np.where(disparity_image > error_bound)
values = disparity_image[locations]
plt.xlim(0, x)
plt.ylim(y, 0)
plt.scatter(locations[1], locations[0], values, vmin = error_bound, vmax = 256)
plt.colorbar()
plt.show()
But the colorbar is not scaled correctly, it doesn't look like the plot uses color as a scale either.
Upvotes: 0
Views: 50