Add option to change output stream/file.

This commit is contained in:
Teal Dulcet
2024-11-22 10:49:10 -08:00
parent 8fa05e23c8
commit ed5d06d08a
7 changed files with 157 additions and 112 deletions

View File

@@ -198,14 +198,18 @@ Default value: `False`
Option: `padding`\
Default value: `1`
#### Alignment
#### Format and Alignment
Option: `alignment`\
Values:
* `None` (default)
* `False` (left)
* `True` (right)
* `""` (default)
* `"<"` (left)
* `">"` (right)
* `"="` (internal, numeric types only)
* `"^"` (center)
See the [Python documentation](https://docs.python.org/3/library/string.html#formatspec) for the full available options.
#### Title
@@ -236,6 +240,16 @@ Values:
7. `style_types.heavy_dashed`: Heavy Dashed
![](../images/heavy%20dashed%20table.png)
#### Output file
Option: `file`\
Values:
* `sys.stdout` (default)
* `sys.stderr`
Any other text [file object](https://docs.python.org/3/glossary.html#term-file-object).
#### Check size
Option: `check`\
@@ -542,6 +556,16 @@ This option is only used when plotting a single array and when graphing a single
![](../images/graph%20colors.png)
#### Output file
Option: `file`\
Values:
* `sys.stdout` (default)
* `sys.stderr`
Any other text [file object](https://docs.python.org/3/glossary.html#term-file-object).
#### Check size
Option: `check`\