diff --git a/examples/show_scalarbar3d.py b/examples/show_scalarbar.py similarity index 95% rename from examples/show_scalarbar3d.py rename to examples/show_scalarbar.py index 39d16b670..f11b9b5b5 100644 --- a/examples/show_scalarbar3d.py +++ b/examples/show_scalarbar.py @@ -214,6 +214,12 @@ f.vertex_data["arange"] = np.arange(len(f.vertices)) f.show_options["data_name"] = "arange" - f.show_options["scalarbar3d"] = True - - f.show() + f_2d = f.copy() + f.show_options["scalarbar3d"] = { + "title": "scalarbar title", + "nlabels": 2, + } + f_2d.show_options["scalarbar"] = { + "nlabels": 12, + } + gus.show.show([f, "3D scalarbar"], [f_2d, "2D scalarbar"])