[read] more fixup for visualize_edges
This commit is contained in:
parent
f4818fd554
commit
32b6c207dc
@ -147,6 +147,7 @@ class GridReadMixin(GridPosMixin):
|
|||||||
cell_data: NDArray,
|
cell_data: NDArray,
|
||||||
plane: PlaneProtocol | PlaneDict,
|
plane: PlaneProtocol | PlaneDict,
|
||||||
which_shifts: int = 0,
|
which_shifts: int = 0,
|
||||||
|
sample_period: int = 1,
|
||||||
finalize: bool = True,
|
finalize: bool = True,
|
||||||
contour_args: dict[str, Any] | None = None,
|
contour_args: dict[str, Any] | None = None,
|
||||||
ax: 'matplotlib.axes.Axes | None' = None,
|
ax: 'matplotlib.axes.Axes | None' = None,
|
||||||
@ -207,7 +208,7 @@ class GridReadMixin(GridPosMixin):
|
|||||||
fig, ax = pyplot.subplots()
|
fig, ax = pyplot.subplots()
|
||||||
else:
|
else:
|
||||||
fig = ax.figure
|
fig = ax.figure
|
||||||
xc, yc = (self.shifted_exyz(which_shifts)[a] for a in surface)
|
xc, yc = (self.shifted_xyz(which_shifts)[a] for a in surface)
|
||||||
xcmesh, ycmesh = numpy.meshgrid(xc, yc, indexing='ij')
|
xcmesh, ycmesh = numpy.meshgrid(xc, yc, indexing='ij')
|
||||||
|
|
||||||
mappable = ax.contour(xcmesh, ycmesh, grid_slice, levels=levels, **contour_args)
|
mappable = ax.contour(xcmesh, ycmesh, grid_slice, levels=levels, **contour_args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user