signchart-2 directive#
The signchart-2 directive generates an enhanced sign chart with broader function support — including trigonometric, rational, and transcendental functions. It also supports custom domains and styling.
Basic usage#
```{signchart-2}
---
function: sin(x)*cos(x), f(x)
domain: (-3.5, 3.5)
factors: true
width: 100%
---
```
Options#
Option |
Meaning |
Default |
|---|---|---|
|
Function expression and optional label |
(required) |
|
Show sign rows for individual factors |
|
|
Restrict the analysis to a domain, e.g. |
auto |
|
Customize sign colors |
default |
|
Use generic (\(+\)/\(-\)) labels instead of factor names |
|
|
Font size |
auto |
|
Matplotlib figure size |
auto |
|
Use a compact layout |
— |
|
Padding for labels |
auto |
|
CSS width |
— |
|
|
— |
|
Extra CSS classes |
— |
|
Stable anchor / reference name |
— |
|
Alt text |
— |
|
Force regeneration |
— |
|
Keep debug output |
— |
Notes#
Aliases:
signchart2For polynomial-only sign charts, the simpler
signchartmay suffice.