The chaco example https://github.com/enthought/chaco/blob/ef7227706642f7d26042717ad9b60648d7572068/examples/demo/advanced/scalar_image_function_inspector.py makes use of `optparse` which we should replace with `argparse` at the least, if not `click`.
The chaco example https://github.com/enthought/chaco/blob/ef7227706642f7d26042717ad9b60648d7572068/examples/demo/advanced/scalar_image_function_inspector.py makes use of
optparsewhich we should replace withargparseat the least, if notclick.