This module provides basic writing Mulitple-image Network Graphics files.
It only supports RGB888 images of the same shape stored as MNG-VLC (very low complexity) format.
Convert RGB images to MNG-VLC format.
See http://www.libpng.org/pub/mng/spec/ See http://www.libpng.org/pub/png/book/ See http://www.libpng.org/pub/png/spec/1.2/
| Parameters: |
|
|---|---|
| Returns: | An iterator of MNG chunks as bytes |
This module implements labels layout on graph axes.
Returns the number of digits to display for text label.
| Parameters: | tickSpacing (float) – Step between ticks in data space. |
|---|---|
| Returns: | Number of digits to show for labels. |
| Return type: | int |
Returns tick positions.
This function implements graph labels layout using nice numbers by Paul Heckbert from “Graphics Gems”, Academic Press, 1990. See C code.
| Parameters: |
|
|---|---|
| Returns: | min, max, increment value of tick positions and number of fractional digit to show |
| Return type: | tuple |
Returns tick positions and labels using nice numbers algorithm.
This enforces ticks to be within [vMin, vMax] range. It returns at least 2 ticks.
| Parameters: |
|
|---|---|
| Returns: | tick positions and corresponding text labels |
| Return type: | 2-tuple: list of float, list of string |
Returns tick positions using niceNumbers() and a density of ticks.
axisLength and tickDensity are based on the same unit (e.g., pixel).
| Parameters: |
|
|---|---|
| Returns: | min, max, increment value of tick positions and number of fractional digit to show |
| Return type: | tuple |
Return tick positions for logarithmic scale
| Parameters: |
|
|---|---|
| Returns: | log10 of min, max and increment value of tick positions |
| Return type: | tuple of int |