fig, ax = plt.subplots(figsize=(5, 2))
// Set image extent so hues go from 0 to 1 and the image is a nice aspect ratio.
ax.imshow(all_hues, extent=(0, 1, 0, 0.2))
ax.set_axis_off()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Notice how the colors at the far left and far right are the same. That
After Change
fig, ax = plt.subplots(figsize=(5, 2))
// Set image extent so hues go from 0 to 1 and the image is a nice aspect ratio.
ax.imshow(all_hues, extent=(0 - 0.5 / len(hue_gradient),
1 + 0.5 / len(hue_gradient), 0, 0.2))
ax.set_axis_off()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////