From fedd5dacbeaa2a113e3a7fc560ef774754c87cc7 Mon Sep 17 00:00:00 2001 From: holl- Date: Mon, 13 Nov 2023 13:25:38 +0100 Subject: [PATCH] [vis] Fix stream plot component order --- phi/vis/_matplotlib/_matplotlib_plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phi/vis/_matplotlib/_matplotlib_plots.py b/phi/vis/_matplotlib/_matplotlib_plots.py index 098174793..698e2ced3 100644 --- a/phi/vis/_matplotlib/_matplotlib_plots.py +++ b/phi/vis/_matplotlib/_matplotlib_plots.py @@ -439,7 +439,7 @@ def plot(self, data: Field, figure, subplot, space: Box, min_val: float, max_val x, y = reshaped_numpy(data.points, [vector, *data.shape.without('vector')]) x = x[:, 0] y = y[0, :] - u, v = reshaped_numpy(data.values, [vector, *data.shape.without('vector')]) + u, v = reshaped_numpy(data.values.vector[vector.item_names[0]], [vector, *data.shape.without('vector')]) if (color == None).all: col = reshaped_numpy(math.vec_length(data.values), [*data.shape.without('vector')]).T else: