Skip to content

Commit 075fedf

Browse files
committed
up streamline plot (remove warning)
1 parent e272d10 commit 075fedf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/cardiotensor/visualization/fury_plotting_streamlines.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,31 +218,31 @@ def show_streamlines(
218218
n_colors=256,
219219
)
220220
# Map scalar values to LUT indices
221-
lookup_colors = flat_colors
222-
223221
scene = fury.window.Scene()
222+
colors = flat_colors # per-vertex scalars
224223

225224
# --- Render according to mode
226225
if mode == "tube":
227226
actor = fury.actor.streamtube(
228227
streamlines_xyz,
229-
lookup_colors,
228+
colors=colors,
230229
linewidth=line_width,
231-
opacity=1,
230+
opacity=1.0,
232231
lookup_colormap=lut,
233232
)
234233
elif mode == "fake_tube":
235234
actor = fury.actor.line(
236235
streamlines_xyz,
237-
lookup_colors,
236+
colors=colors,
238237
linewidth=line_width,
239238
fake_tube=True,
240239
depth_cue=True,
240+
lookup_colormap=lut,
241241
)
242242
elif mode == "line":
243243
actor = fury.actor.line(
244244
streamlines_xyz,
245-
lookup_colors,
245+
colors=colors,
246246
linewidth=line_width,
247247
fake_tube=False,
248248
depth_cue=False,

0 commit comments

Comments
 (0)