Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEPENDABOT]: Bump plotnine from 0.10.1 to 0.12.1 #263

Merged
merged 1 commit into from
May 15, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 15, 2023

Bumps plotnine from 0.10.1 to 0.12.1.

Release notes

Sourced from plotnine's releases.

v0.12.1

(2023-05-09)

New Features

  • A layout manager. Now you do not have to adjust spacing parameters to prevent objects around the panels from overlapping. Specifically, you can:

    1. Set the legend position to "top", "left" or "bottom"
    2. Use a large or multiline plot title
    3. Use a large or multiline plot caption
    4. Use facet_wrap with scales="free" scales="free_x" or `scales="free_y"

    You can now also align the plot_title, axis_title_x, axis_title_y and plot_caption with respect to the panels. Set these to "left", "right" & "center" for the horizontal flowing text. And "top", "right" & "center" for the vertical flowing text.

    Also, the size of the figure is exactly determined by the theme setting. For example, this:

    theme(figure_size=(8, 6), dpi=100)

    will create an 800px x 600px image.

  • You can create a subtitle using labs and style it using the plot_subtitle parameter to theme.

theme(plot_subtitle=element_text(size=8))

Enhancements

  • ggplot object gained a new method save_helper(). It gives you access to the matplotlib figure that will be saved to file.

  • When plotting with an ipython interactive backend (e.g. in a jupyter notebook). The default image output is retina. You do not need to run this command.

    %config InlineBackend.figure_format = "retina"

    Plotnine still respects any values set the user.

  • In an interactive setting, after drawing an image. The size of the figure (in pixels) is printed e.g. <Figure Size: (640 x 480)>. Previously, something like <ggplot: (336175301)> was printed.

API Changes

  • __add__() and __iadd__() now accept the same types of objects. In this change __iadd__() has gained the ability to accept a list of objects.
  • draw() no longer accepts the argument return_ggplot and the return value is always a matplolib figure.
  • Themeables strip_margin, strip_margin_x and strip_margin_y have been renamed to strip_align(), strip_align_x() strip_align_y() repectively.
  • subplots_adjust has been deprecated. You no longer need to use theme(subplots_adjust={"right": 0.85}) and the like to make space for the legend or text around the panels. In the future, this will through an error.
  • Changed default font-family (san-serif) from DejaVu Sans to Helvetica.

Bug Fixes

  • Fixed bug where a discrete position scale failed when mapping an empty variable. (#647)

... (truncated)

Changelog

Sourced from plotnine's changelog.

v0.12.1

(2023-05-09)

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.7919297.svg :target: https://doi.org/10.5281/zenodo.7919297

New Features


  • A layout manager. Now you do not have to adjust spacing parameters to prevent objects around the panels from overlapping. Specifically, you can:

    1. Set the legend position to "top", "left" or "bottom"
    2. Use a large or multiline plot title
    3. Use a large or multiline plot caption
    4. Use :class:~plotnine.facets.facet_wrap with :py:scales="free" :py:scales="free_x" or :py:scales="free_y"

    You can now also align the plot_title, axis_title_x, axis_title_y and plot_caption with respect to the panels. Set these to "left", "right" & "center" for the horizontal flowing text. And "top", "right" & "center" for the vertical flowing text.

    Also, the size of the figure is exactly determined by the theme setting. For example, this:

    .. code-block:: python

    theme(figure_size=(8, 6), dpi=100)

    will create an 800px x 600px image.

  • You can create a subtitle using :class:~plotnine.labels.labs and style it using the plot_subtitle parameter to :class:~plotnine.themes.theme.

    .. code-block:: python

    theme(plot_subtitle=element_text(size=8))

Enhancements


  • :class:~plotnine.ggplot object gained a new method :meth:~plotnine.ggplot.save_helper. It gives you access to the matplotlib figure that will be saved to file.

  • When plotting with an ipython interactive backend (e.g. in a

... (truncated)

Commits
  • 5ee0ed6 Prepare changelog for release
  • 914238c Prepare changelog for release
  • 043c205 Fix FutureWarning for GeoDataFrame
  • 2275198 TST: Expect a warning for removing rows
  • 92a63a9 Regenerate theme parameters
  • cac37d5 DOC: Small edits for the readme and index
  • e2ea6c9 rm dangling backtick in ggpy URL
  • 131a0f8 Regenerate readme & logo images
  • 709a92c Bump versions for pandas and statsmodels
  • 925ce1e Add missing exception to pytest.warns call
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [plotnine](https://github.com/has2k1/plotnine) from 0.10.1 to 0.12.1.
- [Release notes](https://github.com/has2k1/plotnine/releases)
- [Changelog](https://github.com/has2k1/plotnine/blob/main/doc/changelog.rst)
- [Commits](has2k1/plotnine@v0.10.1...v0.12.1)

---
updated-dependencies:
- dependency-name: plotnine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@Zethson Zethson merged commit a406958 into development May 15, 2023
@dependabot dependabot bot deleted the dependabot/pip/development/plotnine-0.12.1 branch May 15, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant