Colorbar of a Contour Plot

Try this:

contourf(x, levels=1:10)
2 Likes