Changelog

v0.9.2

2023-05-25

Bug Fixes

v0.9.1

2023-05-19

https://zenodo.org/badge/DOI/10.5281/zenodo.7951172.svg

Bug Fixes

  • Fixed but in date_format to handle datetime sequences within the same timezone but a mixed daylight saving state. (plotnine #687)

v0.9.0

2023-04-15

https://zenodo.org/badge/DOI/10.5281/zenodo.7951171.svg

API Changes

  • palettable dropped as a dependency.

Bug Fixes

  • Fixed bug in datetime_trans where a pandas series with an index that did not start at 0 could not be transformed.

  • Install tzdata on pyiodide/emscripten. #27

v0.8.1

2022-09-28

https://zenodo.org/badge/DOI/10.5281/zenodo.7120121.svg

Bug Fixes

  • Fixed regression bug in log_format for where formatting for bases 2, 8 and 16 would fail if the values were float-integers.

Enhancements

  • log_format now uses exponent notation for bases other than base 10.

v0.8.0

2022-09-26

https://zenodo.org/badge/DOI/10.5281/zenodo.7113103.svg

API Changes

  • The lut parameter of cmap_pal and cmap_d_pal has been deprecated and will removed in a future version.

  • datetime_trans gained parameter tz that controls the timezone of the transformation.

  • log_format gained boolean parameter mathtex for TeX values as understood matplotlib instead of values in scientific notation.

Bug Fixes

  • Fixed bug in zero_range where uint64 values would cause a RuntimeError.

v0.7.4

2022-04-02

https://zenodo.org/badge/DOI/10.5281/zenodo.6408007.svg

API Changes

  • comma_format is now imported automatically when using *.

  • Fixed issue with scale_discrete so that if you train on data with Nan and specify and old range that also has NaN, the result range does not include two NaN values.

v0.7.3

(2020-10-29)

https://zenodo.org/badge/DOI/10.5281/zenodo.4633364.svg

Bug Fixes

  • Fixed log_breaks for narrow range if base=2 (#76).

v0.7.2

(2020-10-29)

https://zenodo.org/badge/DOI/10.5281/zenodo.4633357.svg

Bug Fixes

  • Fixed bug in rescale_max() to properly handle values whose maximum is zero (#16).

v0.7.1

(2020-06-05)

https://zenodo.org/badge/DOI/10.5281/zenodo.3877546.svg

Bug Fixes

  • Fixed regression in mizani.scales.scale_discrete.train() when trainning on values with some categoricals that have common elements.

v0.7.0

(2020-06-04)

https://zenodo.org/badge/DOI/10.5281/zenodo.3876327.svg

Bug Fixes

  • Fixed issue with mizani.formatters.log_breaks where non-linear breaks could not be generated if the limits where greater than the largest integer sys.maxsize.

  • Fixed mizani.palettes.gradient_n_pal() to return nan for nan values.

  • Fixed mizani.scales.scale_discrete.train() when training categoricals to maintain the order. (plotnine #381)

v0.6.0

(2019-08-15)

https://zenodo.org/badge/DOI/10.5281/zenodo.3369191.svg

New

Enhancements

API Changes

v0.5.4

(2019-03-26)

https://zenodo.org/badge/DOI/10.5281/zenodo.62319878.svg

Enhancements

API Changes

v0.5.3

(2018-12-24)

https://zenodo.org/badge/DOI/10.5281/zenodo.2526010.svg

API Changes

  • Log transforms now default to base - 2 minor breaks. So base 10 has 8 minor breaks and 9 partitions, base 8 has 6 minor breaks and 7 partitions, ..., base 2 has 0 minor breaks and a single partition.

v0.5.2

(2018-10-17)

https://zenodo.org/badge/DOI/10.5281/zenodo.2525577.svg

Bug Fixes

  • Fixed issue where some functions that took pandas series would return output where the index did not match that of the input.

v0.5.1

(2018-10-15)

https://zenodo.org/badge/DOI/10.5281/zenodo.1464266.svg

Bug Fixes

  • Fixed issue with log_breaks, so that it does not fail needlessly when the limits in the (0, 1) range.

Enhancements

  • Changed log_format to return better formatted breaks.

v0.5.0

(2018-11-10)

https://zenodo.org/badge/DOI/10.5281/zenodo.1461621.svg

API Changes

  • Support for python 2 has been removed.

  • call() and

    meth:~mizani.breaks.trans_minor_breaks.call now accept optional parameter n which is the number of minor breaks between any two major breaks.

  • The parameter nan_value has be renamed to na_value.

  • The parameter nan_rm has be renamed to na_rm.

Enhancements

  • Better support for handling missing values when training discrete scales.

  • Changed the algorithm for log_breaks, it can now return breaks that do not fall on the integer powers of the base.

v0.4.6

(2018-03-20)

https://zenodo.org/badge/DOI/10.5281/zenodo.1204282.svg

v0.4.5

(2018-03-09)

https://zenodo.org/badge/DOI/10.5281/zenodo.1204222.svg

v0.4.4

(2017-12-13)

https://zenodo.org/badge/DOI/10.5281/zenodo.1115676.svg

v0.4.3

(2017-12-01)

https://zenodo.org/badge/DOI/10.5281/zenodo.1069571.svg
  • Changed date_breaks to have more variety in the spacing between the breaks.

  • Fixed date_format to respect time part of the date (#7).

v0.4.2

(2017-11-06)

https://zenodo.org/badge/DOI/10.5281/zenodo.1042715.svg
  • Fixed (regression) break calculation for the non ordinal transforms.

v0.4.1

(2017-11-04)

https://zenodo.org/badge/DOI/10.5281/zenodo.1041981.svg
  • trans objects can now be instantiated with parameter to override attributes of the instance. And the default methods for computing breaks and minor breaks on the transform instance are not class attributes, so they can be modified without global repercussions.

v0.4.0

(2017-10-24)

https://zenodo.org/badge/DOI/10.5281/zenodo.1035809.svg

API Changes

  • Breaks and formatter generating functions have been converted to classes, with a __call__ method. How they are used has not changed, but this makes them move flexible.

  • ExtendedWilkson class has been removed. extended_breaks() now contains the implementation of the break calculating algorithm.

v0.3.4

(2017-09-12)

https://zenodo.org/badge/DOI/10.5281/zenodo.890135.svg
  • Fixed issue where some formatters methods failed if passed empty breaks argument.

  • Fixed issue with log_breaks() where if the limits were with in the same order of magnitude the calculated breaks were always the ends of the order of magnitude.

    Now log_breaks()((35, 50)) returns [35,  40,  45,  50] as breaks instead of [1, 100].

v0.3.3

(2017-08-30)

https://zenodo.org/badge/DOI/10.5281/zenodo.854777.svg

API Changes

v0.3.2

(2017-07-14)

https://zenodo.org/badge/DOI/10.5281/zenodo.827406.svg

v0.3.1

(2017-06-22)

https://zenodo.org/badge/DOI/10.5281/zenodo.815721.svg
  • Fixed bug where using log_breaks() with Numpy 1.13.0 led to a ValueError.

v0.3.0

(2017-04-24)

https://zenodo.org/badge/DOI/10.5281/zenodo.557096.svg
  • Added xkcd_palette(), a palette that selects from 954 named colors.

  • Added crayon_palette(), a palette that selects from 163 named colors.

  • Added cubehelix_pal(), a function that creates a continuous palette from the cubehelix system.

  • Fixed bug where a color palette would raise an exception when passed a single scalar value instead of a list-like.

  • extended_breaks() and mpl_breaks() now return a single break if the limits are equal. Previous, one run into an Overflow and the other returned a sequence filled with n of the same limit.

API Changes

  • mpl_breaks() now returns a function that (strictly) expects a tuple with the minimum and maximum values.

v0.2.0

(2017-01-27)

https://zenodo.org/badge/DOI/10.5281/zenodo.260331.svg

v0.1.0

(2016-06-30)

https://zenodo.org/badge/doi/10.5281/zenodo.57030.svg

First public release