Skip to content

Commit

Permalink
Update to scalarbar3d example to scalarbar example with comparison of…
Browse files Browse the repository at this point in the history
… 2d vs 3d
  • Loading branch information
clemens-fricke authored and j042 committed Sep 7, 2023
1 parent 8f28e3b commit bcb2dc5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions examples/show_scalarbar3d.py → examples/show_scalarbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

0 comments on commit bcb2dc5

Please sign in to comment.