Skip to content

ovito-org/LaTeXTextOverlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaTeX Text Overlay

Render LaTeX text in the viewport

Description

Add LaTeX text labels to your OVITO Pro renders. Rendering is based on matplotlib's text labels.

Parameters

GUI name Python name Description Default Value
Text text Text to be rendered in LaTeX. "\exp^{i \pi} + 1 = 0"
Font font Font of the text. The list of available fonts is platform dependent / matplotlib version dependent. The (alphabetically) first font is used.
Font size font_size Font size of the text. 50
Text color text_color Color of the text. (0.0, 0.0, 0.0)
X position px X position of the text given in relative coordinates, where 0.0 corresponds to the left edge of the viewport and 1.0 to the right edge. 0.5
Y position py Y position of the text given in relative coordinates, where 0.0 corresponds to the bottom edge of the viewport and 1.0 to the top edge. 0.5

Example

Render latex text example

Installation

Technical information / dependencies

  • Tested on OVITO version 3.10.2

Contact

Daniel Utt [email protected]