New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actor.label not working anymore #1551

Closed
wasserth opened this Issue Jun 6, 2018 · 2 comments

Comments

Projects
2 participants
@wasserth
Copy link
Contributor

wasserth commented Jun 6, 2018

Description

When running the minimal example from the Actor.label documentation is results in a black window without any text.

Way to reproduce

from dipy.viz import window, actor
ren = window.Renderer()
l = actor.label(text='Hello')
ren.add(l)
window.show(ren)
@wasserth

This comment has been minimized.

Copy link
Contributor

wasserth commented Jun 6, 2018

Seems like changing one line will fix the issue:

textm.SetInputData(atext.GetOutput())

to

textm.SetInputConnection(atext.GetOutputPort())
@Garyfallidis

This comment has been minimized.

Copy link
Member

Garyfallidis commented Jun 6, 2018

Makes sense @wasserth they were changes from vtk 5 to 6 and beyond. And it seems we missed that. Can you make a PR with the change?

@dmreagan dmreagan added this to Issues in Viz Module Jun 7, 2018

@dmreagan dmreagan moved this from Issues to Done in Viz Module Jun 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment