labelling while using Sphere/ Spheres
See original GitHub issueHi @marcomusy
This is a follow up to the question posted here
Could you please explain how the labels have to be set while using Sphere/ Spheres?
For points, I do
pts = Points(nx_pts)
labs = pts.labels(list(label.values()), scale=5, font='VictorMono', c='k').addPos(0.05, 0, 0.5)
but when I try the same for Spheres
(sph = Spheres(nx_pts)
)the following error appears
txt_lab = str(arr[i])
IndexError: list index out of range
Also, I am not sure how to set the labels for Sphere
sph = [Sphere(r=radius[n]).color(color[n]).pos(pos[n]).alpha(alpha[n]) for n in nodes]
plt.show(
pts, # or sph
edg,
labs)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Label on a spherical surface - PTC Community
Hi all, Wonder if anyone can help. I have a common situation where I need a drawing of a label (so its flat),...
Read more >Labeling a triangulated sphere - MathOverflow
The labeling gives a piecewise linear map from Sn to a simplex Δ with n+1 vertices, where label k means the point is...
Read more >R and RGL: how to add labels to spheres? - Stack Overflow
I use RGL to create a set of spheres linked by segments. I would like to be able to add a label to...
Read more >How to Draw a Sphere with Labeled Shadows
Learn how to draw a sphere in this video art lesson. Learn to locate values and create smooth gradations of tone.
Read more >Round/Elliptical Objects - Sphere - Lighting Analysts
Partially circular spheres (i.e. hemispheres) may be open or closed as necessary. Open spherical objects may be reflective on the inside or outside,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ylim
only applies to thevedo.pyplot.plot()
shortcut. The syntax is passing toshow
a dictionary of options for axes. E.g.:check all possible options: https://vedo.embl.es/content/vedo/addons.html#axes or create a custom
Axes()
object, see example:examples/pyplot/customIndividualAxes.py
and https://github.com/marcomusy/vedo/blob/master/examples/pyplot/customAxes.pyHi @marcomusy Thanks so much!
Could you please help me with setting axis limits? While plotting with
Text
labels for spheres, sometimes the y-axis includes the y-values for which there is no dataSo I tried specifying the ylimits
but this doesn’t seem to work, unfortunately.