From 5bc14baa3339e42054cfbf8b6ac1f2a250a65fa6 Mon Sep 17 00:00:00 2001 From: Chengyu Liu Date: Mon, 8 May 2023 10:34:41 +0900 Subject: [PATCH] MAINT: fix depreciated formt usage in nonlinear_color_mapping --- chaco/examples/demo/nonlinear_color_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaco/examples/demo/nonlinear_color_mapping.py b/chaco/examples/demo/nonlinear_color_mapping.py index 492bec86c..569e4bf9e 100644 --- a/chaco/examples/demo/nonlinear_color_mapping.py +++ b/chaco/examples/demo/nonlinear_color_mapping.py @@ -195,7 +195,7 @@ class DataGridView(HasTraits): Item("colormap_scale"), Item( "power", - editor=RangeEditor(low=0.1, high=3.0, format="%4.2f"), + editor=RangeEditor(low=0.1, high=3.0, format_str="%4.2f"), visible_when='colormap_scale.startswith("power")', springy=True, ),