helper method to add text to the corner or center of a graphic#738
helper method to add text to the corner or center of a graphic#738kushalkolar wants to merge 4 commits intomainfrom
Conversation
|
I think this could be super useful. Even in the kmeans example, I was thinking about how nice it would be to have a label for each centroid point. Although, that would be giving a label to each point in a scatter, as opposed to a single label for a graphic. Should we support both? The only potential issue that I see is if the graphics were super close to each other and the labels overlapped. How to reconcile potential readability issues. I guess making it easy to change what corner or position on the graphic the text is would be easiest. |
In that case a user can easily create
This can come later. |
|
Let's wait for this PR which adds lots of MultiText functionality! pygfx/pygfx#834 @clewis7 for example: https://pygfx--834.org.readthedocs.build/834/_gallery/feature_demo/text_multiple_labels.html#sphx-glr-gallery-feature-demo-text-multiple-labels-py |
very simple, API subject to change later, text moves if the graphic offset changes, or if the data changes in the case of lines and scatters