File: markers.py

package info (click to toggle)
vedo 2025.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,404 kB
  • sloc: python: 64,792; javascript: 1,932; xml: 437; sh: 139; makefile: 6
file content (13 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Markers set, analogous to matplotlib"""
from vedo import Plotter, Marker, Text3D

symbols = ['.','o','O', '0', 'p','*','h','D','d','v','^','>','<','s', 'x', 'a']

plt = Plotter(size=(1500,300))
plt += __doc__

for i,s in enumerate(symbols):
    plt += Marker(s, filled=True).x(i*0.6).backcolor('blue5')
    plt += Text3D(s, pos=[i*0.6,-0.6,0], s=0.12, literal=True, font="Calco")

plt.show(zoom='tight').close()