
Continued from: Add a Figure.contour method · Issue #8360 · bokeh/bokeh · GitHub
The initial proof of concept is here:
What should the API look like? Should it look like figure.image, and take an image, a x-coordinate, a y-coordinate (for the anchor), a x-width, and y-height?
Or should it look closer to the matplotlib API: An optional X matrix/vector, and Y matrix/vector, and then the image.
The advantage of the Matplotlib API is that the X and Y points do not need to be constantly spaced… though skimage contours will be on an evenly spaced X and Y dimension, so it adds some difficulty in mapping the contours from the skimage space back to the X and Y space of the input.
For thresholds, do we want it to default to 10 or so? or require an int (for evenly spaced contours), or an iterable (for a given set of contours).

