signchart
signchart is a Python package for plotting sign charts for polynomial functions. It is designed to be simple to use to generate beautiful sign charts for polynomial functions.
Basic examples
Example 1
import signchart
f = "(x**2 + 1)**2 * (x - 1)**2 * (x + 1)"
signchart.plot(f=f, include_factors=True)
signchart.savefig(
dirname="dirname",
fname="fname",
)
signchart.show()
This will generate the following sign chart:
Example 2
import signchart
f = "x**2 - x - 6"
signchart.plot(
f=f,
include_factors=True,
color=True, # Includes colored lines.
fn_name="g(x)", # Names the function g(x)
)
signchart.savefig(
dirname="figures",
fname="example_2.svg",
)
signchart.show()
This will generate the following sign chart:
Example 3
import signchart
f = "-2 * x**2 + 2 * x + 12"
signchart.plot(
f=f,
include_factors=True,
color=True, # Includes colored lines.
fn_name="h(x)", # Names the function h(x)
)
signchart.savefig(
dirname="figures",
fname="example_3.svg",
)
signchart.show()
This will generate the following sign chart:
Example 4
import signchart
f = "-3 * (t - 1) * (t + 3)" # Uses 't' as variable in place of 'x'
signchart.plot(
f=f,
include_factors=False, # excludes linear factors in the polynomial
color=False, # sign lines are black (uncolored)
fn_name="x(t)", # Names the function x(t)
)
signchart.savefig(
dirname="figures",
fname="example_4.svg",
)
signchart.show()
This will generate the following sign chart:
Release files for signchart 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| signchart-0.2.2.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| signchart-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.4 kB
Release files / signchart-0.2.2.tar.gz
| Download URL | signchart-0.2.2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0f9e380a4418f0a7bba812fef010cb8499136694fe21e020a0405c749b50522
|
|
BLAKE2b-256 checksum How to use checksums |
2b3567899e6034eb4e446e3947427324eba1e4899bf68a82ea045fddebafb50e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / signchart-0.2.2-py3-none-any.whl
| Download URL | signchart-0.2.2-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd2b44f0ede1f7179e87fcd19139aeecd47659c3d2f645c572c5985e5d160eaf
|
|
BLAKE2b-256 checksum How to use checksums |
0de13e073f80742fae86632e9ebf798f1621166e492c0d02bb026d9917953d49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|