Closed priyabiswas12 closed 5 months ago
Hi there,
May I know how to adjust the size and text font of the text on a screenshot? Thank you so much This is my code:
vp = Plotter(axes=0, offscreen=True) text = str(lab) vp.add(text) vp.show(item, interactive=False, at=0) screenshot(os.path.join(save_path,file_name))
You can create the text object explicitly eg:
txt = Text2D("some text", font="Kanopus", s=2.0) ... show(txt, ...)
there are many examples:
vedo --search Text2D
Ah ok thank you so much
Hi there,
May I know how to adjust the size and text font of the text on a screenshot? Thank you so much This is my code:
vp = Plotter(axes=0, offscreen=True) text = str(lab) vp.add(text) vp.show(item, interactive=False, at=0) screenshot(os.path.join(save_path,file_name))