enthought / chaco

Chaco is a Python package for building interactive and custom 2-D plots.
http://docs.enthought.com/chaco/
Other
291 stars 101 forks source link

MAINT: fix depreciated formt usage in nonlinear_color_mapping #892

Closed homosapien-lcy closed 1 year ago

homosapien-lcy commented 1 year ago

After the update of the traitsui package, RangeEditor has deprecated the usage of format_str. Some code that didn't adapt to the change has raised error during the test such as mentioned in #888 . The error is located in https://github.com/enthought/chaco/blob/main/chaco/examples/demo/nonlinear_color_mapping.py#L198, and the current PR fixes it by updating the deprecated "format" to "format_str". Closes #888