Skip to content

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 28, 2019

The internal backend_ps _print_figure and _print_figure_tex helpers get
passed both the orientation="portrait"/"landscape" and the
is_landscape=True/False kwargs.

Remove is_landscape and change orientation to be an enum.

Also deprecate dryrun from _print_figure_tex (this should have happened
at the same time as when it was deprecated from _print_figure (it's the
same public API).

Also remove unnecessary default parameters from _print_figure (these
arguments are always passed positionally to the helper, and not present
in _print_figure_tex).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

The internale backend_ps _print_figure and _print_figure_tex helpers get
passed both the orientation="portrait"/"landscape" and the
is_landscape=True/False kwargs.

Remove is_landscape and change orientation to be an enum.

Also deprecate dryrun from _print_figure_tex (this should have happened
at the same time as when it was deprecated from _print_figure (it's the
same public API).

Also remove unnecessary default parameters from _print_figure (these
arguments are always passed positionally to the helper, and not present
in _print_figure_tex).
@anntzer anntzer added this to the v3.2.0 milestone Aug 23, 2019
@anntzer anntzer added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Aug 23, 2019
@anntzer
Copy link
Contributor Author

anntzer commented Aug 23, 2019

At least the dryrun deprecation should go in to 3.2 to match #14134, so I'll label this as release-critical; but if the whole PR can't make it in time I can also split out the deprecation to a separate PR.

@tacaswell tacaswell closed this Aug 24, 2019
@tacaswell tacaswell reopened this Aug 24, 2019
@tacaswell
Copy link
Member

power-cycled because I can not read and did not see the codecov reports.

@tacaswell tacaswell merged commit 73ed43b into matplotlib:master Aug 25, 2019
@anntzer anntzer deleted the pslandscape branch February 15, 2020 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: ps Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants