From 7cac73bcb400021289350a52215083e88c337cd7 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 22 Sep 2025 19:25:39 -0700 Subject: [PATCH 1/2] [draw] add missing code for finalize --- gridlock/read.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gridlock/read.py b/gridlock/read.py index 600227d..4f39432 100644 --- a/gridlock/read.py +++ b/gridlock/read.py @@ -212,6 +212,9 @@ class GridReadMixin(GridPosMixin): mappable = ax.contour(xcmesh, ycmesh, grid_slice, levels=levels, **contour_args) + if finalize: + pyplot.show() + return fig, ax From 16a76e0122845d029c7a4a3c2896ab0606553576 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 22 Sep 2025 19:26:59 -0700 Subject: [PATCH 2/2] [read] make visualize_edges more friendly for overlay by default --- gridlock/read.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gridlock/read.py b/gridlock/read.py index 4f39432..28afdd2 100644 --- a/gridlock/read.py +++ b/gridlock/read.py @@ -182,7 +182,7 @@ class GridReadMixin(GridPosMixin): plane = Plane(**plane) if pcolormesh_args is None: - pcolormesh_args = {} + pcolormesh_args = dict(alpha=0.8, colors='gray') grid_slice = self.get_slice( cell_data = cell_data,