dev.docs.format
#
Formatting and display utilities.
Module Contents#
Functions#
Display objects with names above them. |
|
Display free symbols. |
|
Display equation. |
|
Represent expression as LaTeX math. |
|
Context manager that allows custom spacing of subplots. |
|
Wrap column titles in LaTeX flags if they contain underscores ($). |
|
Wrap everything after the first underscore and replace others with commas. |
|
Append units to a quantity. |
|
Split a quantity and its units. |
API#
- dev.docs.format.disp_free(
- title,
- eqn,
- **kwargs,
Display free symbols.
- dev.docs.format.disp(
- title,
- *exprs,
- **kwargs,
Display equation.
- dev.docs.format.math_mod(
- expr,
- long_frac_ratio=3,
- **kwargs,
Represent expression as LaTeX math.
- dev.docs.format.manual_subplot_spacing()#
Context manager that allows custom spacing of subplots.
- dev.docs.format.tex_wrap(
- df: pandas.DataFrame,
Wrap column titles in LaTeX flags if they contain underscores ($).
- dev.docs.format.handle_subscript(
- val: str,
Wrap everything after the first underscore and replace others with commas.