Mizani is a Python library that provides a comprehensive set of 'scales' for graphics systems, mirroring the functionality of Hadley Wickham's popular R Scales package. It offers tools for data transformation, calculating aesthetically pleasing breaks for axes, and generating color palettes. The current version is 0.14.4, with releases occurring periodically, often in conjunction with Python version updates or fixes.
pip install mizaniVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `mizani.breaks.breaks_log` to calculate visually appropriate logarithmic breaks for a given data range. This is a fundamental operation for creating readable plots with logarithmic scales.
Users on affected platforms may need to ensure `tzdata` is available, potentially by installing the `tzdata` PyPI package if `mizani` does not explicitly list it as a dependency, or by using environments where `tzdata` is provided by default.
For direct plotting, consider using a library that integrates Mizani, such as `plotnine`, which leverages Mizani's capabilities internally. If building a custom graphics system, refer to Mizani's documentation for integrating its scale components.
Install the `tzdata` package: `pip install tzdata`
Install the library using pip: `pip install mizani`
Check the version requirements of any libraries using `mizani` (e.g., `plotnine`). Install a compatible version of `mizani` and its dependencies. For example, if using `plotnine`, you might need to pin specific versions like `pip install mizani==0.9.2 plotnine==0.10.1`.