enthought / enthought/mayavi

scatter plot with labels

Open
#1,143 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

Hi Prabhu and all,

I come back to work on my own app using Mayavi after many years using Chaco.

And thus, I have a few questions.

I would like to display labeled scatter, ie with a list/array of string.

I could use Text module but it requires to add it for each point, that I don't want.

I would like to use something like Labels module and its mapper LabeledDataMapper, but it only works for points ids or scalars or so on.

I read a few hints here:
https://kitware.github.io/vtk-examples/site/Cxx/Visualization/LabelPlacementMapper/
and here:
https://stackoverflow.com/questions/15048553/vtk-put-label-text-near-points-in-the-3d-plot

but I can't seem how to code it for my own purpose.

Any idea?

Thanks in advance.

Regards

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.