Skip to content

Commit 0d633bd

Browse files
matthewturkneutrinoceros
authored andcommitted
Add masking for phase plots.
1 parent 84cb4b4 commit 0d633bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

yt/visualization/profile_plotter.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1130,10 +1130,12 @@ def _setup_plots(self):
11301130
else:
11311131
cmap = self._colormap_config[f]
11321132

1133+
masked_data = data.copy()
1134+
masked_data = np.ma.masked_array(data, ~self.profile.used)
11331135
self.plots[f] = PhasePlotMPL(
11341136
self.profile.x,
11351137
self.profile.y,
1136-
data,
1138+
masked_data,
11371139
x_scale,
11381140
y_scale,
11391141
z_scale,

0 commit comments

Comments
 (0)