graphorge.ioput.plots.tex_str¶
- tex_str(x, is_latex)[source]¶
Format string conveniently according with LaTeX rendering option.
- Parameters:
x ({str, None}) – String.
is_latex (bool) – If False, then remove any leading or trailing dollar signs from string. If True, then keep string unchanged.
- Returns:
new_x – Formatted string.
- Return type:
{str, None}