From 4930790ebce2baa83936642681e7658e13d68787 Mon Sep 17 00:00:00 2001 From: "clemens.fricke" Date: Thu, 7 Sep 2023 13:47:16 +0200 Subject: [PATCH] Update to scalarbar3d example to scalarbar example with comparison of 2d vs 3d --- examples/{show_scalarbar3d.py => show_scalarbar.py} | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) rename examples/{show_scalarbar3d.py => show_scalarbar.py} (95%) 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"])