Skip to content

v0.5.0 2018-09-27

Compare
Choose a tag to compare
@alcarney alcarney released this 27 Sep 19:17
· 450 commits to master since this release
84f3a74

Added

Users

  • New Image object LayeredImage object that can now draw more
    than one object
  • Added an introductory tutorial for first time users to the documentation
  • Functions from the stylo.domain.transform package can now be applied
    to shapes, meaning that most images can now be made without handling domains
    directly.

Contributors

  • Added a Drawable class, this allows a domain, shape and colormap to
    be treated as a single entity.
  • Added a render_drawable function that takes a drawable and some
    existing image data and applies it to the data.
  • Added a get_real_domain function that given a width, height and scale
    returns a RectangularDomain with appropriate aspect ratio,
    :math:(0, 0) at the centre of the image and the scale corresponding to the
    interval :math:[ymin, ymax]
  • We now make use of the [scripts] section of Pipfile so
    running common commands is now easier to remember
    • pipenv run test: to run the test suite
    • pipenv run lint: to lint the codebase
    • pipenv run docs: to run a full build of the documentation
    • pipenv run docs_fast: to run a less complete but faster build of
      the documentation.

Changed

Users

  • Altered SimpleImage to no longer take a domain, reducing the
    cognitive load on first time users. It now instead takes an optional
    scale variable to control the size of the domain underneath. This
    also means that the domain now automatically matches the aspect ratio of the
    image so no more distortion in non-square images.

Contributors

  • The tests now take advantage of multi-core machines and should now run much
    faster
  • Building the docs now takes advantage of multi-core machines and should now
    run much faster.

Fixed

Contributors

  • Fixed crashes in exampledoc.py and apidoc.py for first time
    users
  • Fixed issue with sed on a Mac for people running the
    devenv-setup.sh script

This release of stylo was brought to you thanks to contributions from
the following awesome people!