ADD_LABEL_TEXT
Add a text to an area in a phase diagram or a property diagram. The label is written starting from the specified coordinates. Optionally, you can also let the program automatically add the text by first calculating an equilibrium state at the specified coordinates and then making a label out of the stable phase names.
The label texts and coordinates, either added by this command or modified with MODIFY_LABEL_TEXT (or manually edited in the Console Results window), are stored in the workspace, and these may later be saved onto an *.EXP file (with MAKE_EXPERIMENTAL_DATAFILE).
In some cases such an optional calculation for automatic phase region labeling may not work. It is not possible to automatically add labels for certain sets of axes, like entropy, enthalpy, pH, Eh, etc.
Syntax |
ADD_LABEL_TEXT |
Prompts |
Give X coordinate in axis units: <Value of the X coordinate> Specify the value of the X coordinate where the label is to start. |
Give Y coordinate in axis units: <Value of the X coordinate> The labels disappear if any axis is changed after wards. Specify the value of the Y coordinate where the label is to start. |
|
Automatic phase labels? /Y/: By default the program automatically calculates the equilibrium at the given coordinates and generates a label with the names of the stable phases. However, the automatic calculation works only for phase diagrams that are mapped with two axes in the POLY module, and sometimes it may not work correctly especially for complex heterogeneous interaction systems; in such cases, a message displays. |
|
Text: <Text for the label> If you answer N enter text at the prompt. You can enter simple text, use LaTeX, rotate the text, as well as adjust the font size. LaTeX: You can use LaTeX commands to enter text and symbols. First enter the command followed by the expression or string, for example to display \latex Mole-fraction Al_2O_3 By default when using the LaTeX command, you are in math mode and Thermo‑Calc automatically interprets the entered text as math. The above link uses the dollar sign ($) in all the examples but this is NOT required. For example, if you enter To add a mixture of plain text and equation text, you can exit math mode using the string \textsf followed by the text to display enclosed in curly brackets. For example White space has to be entered in the text context and not outside in math mode. Rotate the text: If you want to rotate the label, start a text string with the rotation command (which is case sensitive and must be in lower case letters) then enter the number of degrees to rotate the label. For example, to rotate the label 45 degrees enter: \rotation 45 To rotate the text and use LaTeX, the rotation command must be used first. For example: \rotation 45 \latex Mole-fraction Al_2O_3 Rotates the text 45° and includes subscripts in the title Mole-fraction Al2O3. |
|
Text size: /.35/: <Size for the label> A smaller size of the text may be necessary to fit the label text into the diagram. A default size is given using the latest size in adding label texts, or .35 if the command is called for the first time. A recommended size is e.g. 0.25. These changes to plot labels can also be manually edited in the Console Results window. |
|
![]() To produce a label with the unit Celsius: \textsf{Temperature [}^\circ C\textsf{]} Text with white space, suitable for an axis label: \textsf{Text with space} Al_2O_3 |