File python-mizani.changes of Package python-mizani
-------------------------------------------------------------------
Sun Mar 15 20:23:44 UTC 2026 - Dirk Müller <dmueller@suse.com>
- update to 0.14.4:
* Fixed handling of null types so that we can recognise as null
whatever pandas sees as null. This resolves (plotnine #1021).
* Fixed bug in :func:`~mizani.palettes.hue_pal` where drawing
24 or more colors broke the palette and you got colors from a
very narrow hue band close to the first color.
* Fixed but in :func:`~mizani._colors.to_rgba` used by plotnine
to recognise numpy integers and floats as alpha values. And
also to recognise None and and an empty string to also mean
"none", which is recognised by Matplotlib.
* Changed :class:`~mizani.palettes.hue_pal` to use HCL color
space from HSL (or HSLuv) space. The previous functionality
is now available with :class:`~mizani.palettes.hls_pal`.
* :class:`~mizani.breaks.breaks_date` now only accepts
parameter n, the desired number of breaks. To generate breaks
by the width, use :class:`~mizani.breaks.breaks_date_width`.
* Added tableau color in the "tab:*" colorname space. e.g.
"tab:red".
* :class:`~mizani.breaks.breaks_width` to generate numeric
breaks by specifying the width (interval between the breaks).
* :class:`~mizani.breaks.breaks_timedelta_width` to generate
timedelta breaks by specifying the width (interval between
the breaks).
* Added name "gray" aliases to all XKCD colors partially named
"grey".
* New algorithms to calculate datetime breaks by either n the
desired number of breaks or width the interval between the
breaks. When using the new
:class:`~mizani.breaks.breaks_date_width`, you can align the
dates by using an offset. (:issue:`58`)
* Fixed using a discrete palette and requesting less colours
than than the smallest swatch in the palette. Among the
affected palettes are category10, category20, category20b,
category20c.
* Added aliases to the vega colormaps for the names used in
matplotlib. plotnine issue
* Make it possible to train discrete data that is a sequence of
tuples. plotnine issue
* For python >=3.13 ~mizani.bounds.squish_infinite and
~mizani.bounds.squish do not warning about invalid values
when passed arrays with dtype=uint64 and a range with
negative values.
* Type checking pass with numpy 2.2.
* Support for numpy timedelta64 has been removed. It was not
well supported in the first place, so removing it should be
of consequence.
* mizani.transforms.trans_new function has been deprecated.
* ~mizani.breaks.breaks_date has been slightly improved for the
case when it generates monthly breaks.
* :class:`~mizani.transforms.trans` gained new method
diff_type_to_num that should be helpful with some arithmetic
operations for non-numeric domains.
-------------------------------------------------------------------
Mon Sep 9 13:07:33 UTC 2024 - Markéta Machová <mmachova@suse.com>
- update to 0.12.2
* mizani now requires python 3.9 and above
* Renamed "husl" color palette type to "hsluv". "husl" is the old
name but we still work although not part of the API.
* Fixed squish and squish_infinite to work for non writeable
pandas series. This is broken for numpy 2.1.0.
-------------------------------------------------------------------
Thu Jun 6 15:13:24 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.11.4:
* Fixed :class:`~mizani.bounds.squish` and
:class:`~mizani.bounds.squish_infinite` so that they do not
reuse numpy arrays. The users object is not modified.
* Fixed bug when calculating monthly breaks where when the limits
are narrow and do not align with the start and end of the
month, there were no dates returned.
* Added the ability to create reversed colormap for
:class:`~mizani.palettes.cmap_pal` and
:class:`~mizani.palettes.cmap_d_pal` using the matplotlib
convention of `name_r`.
-------------------------------------------------------------------
Wed Apr 3 07:46:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.11.1:
* Fix :class:`mizani.palettes.brewer_pal` to return exact colors
in the when the requested colors are less than or equal to
those in the palette.
* Add all matplotlib colormap and make them avalaible from
:class:`~mizani.palettes.cmap_pal` and
:class:`~mizani.palettes.cmap_d_pal` (:issue:`39`).
* Added :class:`~mizani.breaks.breaks_symlog` to calculate
breaks for the symmetric logarithm transformation.
* The default `big_mark` for :class:`~mizani.labels.label_number`
has been changed from a comma to nothing.
-------------------------------------------------------------------
Fri Mar 22 20:55:59 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.11.0:
* Removed FutureWarnings when using pandas 2.1.0
* Added :class:`~mizani.breaks.breaks_symlog` to calculate
breaks for the symmetric logarithm transformation.
* The default `big_mark` for :class:`~mizani.labels.label_number`
has been changed from a comma to nothing.
-------------------------------------------------------------------
Sun Feb 4 11:24:11 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.10.0:
* :class:`~mizani.formatters.mpl_format` has been removed,
:class:`~mizani.formatters.number_format` takes its place.
* :class:`~mizani.breaks.mpl_breaks` has been removed,
:class:`~mizani.breaks.extended_breaks` has always been
the default and it is sufficient.
* matplotlib has been removed as a dependency of mizani.
* mizani now requires python 3.9 and above.
* The units parameter for of :class:`~mizani.formatters.timedelta_format`
now accepts the values `"min", "day", "week", "month"`,
instead of `"m", "d", "w", "M"`.
* The naming convention for break formatting methods has changed
from `*_format` to `label_*`.
* The naming convention for break calculating methods has changed
from `*_breaks` to `breaks_*`. Specifically these methods have
been renamed.
* `log_breaks` is now :class:`~mizani.breaks.breaks_log`
* `trans_minor_breaks` is now :class:`~mizani.breaks.minor_breaks_trans`
* `date_breaks` is now :class:`~mizani.breaks. breaks_date`
-------------------------------------------------------------------
Mon Mar 6 16:30:10 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Disable broken test in i586 mizani.breaks.log_breaks, it's broken
because it expect:
array([ 1000, 10000, 100000, 1000000])
but got:
array([ 1000, 10000, 100000, 1000000], dtype=int32)
-------------------------------------------------------------------
Tue Feb 14 03:46:39 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.8.1:
* Fixed regression bug in mizani.formatters.log_format for
where formatting for bases 2, 8 and 16 would fail if the values were
float-integers.
* mizani.formatters.log_format now uses exponent notation
for bases other than base 10.
* The lut parameter of mizani.palettes.cmap_pal and
mizani.palettes.cmap_d_pal has been deprecated and will
removed in a future version.
* mizani.transforms.datetime_trans gained parameter tz
that controls the timezone of the transformation.
* mizani.formatters.log_format gained boolean parameter
mathtex for TeX values as understood by matplotlib instead of
values in scientific notation.
* Fixed bug in mizani.bounds.zero_range where uint64
values would cause a RuntimeError.
-------------------------------------------------------------------
Fri Feb 4 23:06:09 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 0.7.3
* Fixed log_breaks for narrow range if base=2 (:issue:`76`).
-------------------------------------------------------------------
Thu Feb 18 09:14:28 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to version 0.7.2
* Fixed bug in :func:`~mizani.bounds.rescale_max` to properly
handle values whose maximum is zero.
- Skip python36 build: NumPy 1.20 in Tumbleweed dropped support
for Python 3.6 (NEP 29)
- SciPy is not a runtime requirement
-------------------------------------------------------------------
Fri Jul 10 09:01:26 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to version 0.7.1
* Fixed issue with :class:`mizani.formatters.log_breaks` where non-linear
breaks could not be generated if the limits where greater than the largest
integer sys.maxsize.
* Fixed :func:`mizani.palettes.gradient_n_pal` to return nan for nan values.
* Fixed :func:`mizani.scales.scale_discrete.train` when training categoricals
to maintain the order.
-------------------------------------------------------------------
Tue Dec 3 21:09:44 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Initial version