Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Set clip path for PostScript texts. #18933

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

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 11, 2020

PR Summary

The clip path/clip box were simply not set at all before.

Also move _convert_path/_get_clip_cmd (previously _get_clip_path)
above the block where all draw_foos are defined, rather than being in
the middle of them.

Closes #4321.

Goes on top of #18894.

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

@jklymak jklymak marked this pull request as draft November 13, 2020 21:26
@tacaswell tacaswell added this to the v3.4.0 milestone Nov 21, 2020
@tacaswell tacaswell marked this pull request as ready for review November 21, 2020 20:23
@tacaswell tacaswell closed this Nov 21, 2020
@tacaswell tacaswell reopened this Nov 21, 2020
@tacaswell
Copy link
Member

Power-cycled to re-run the tests after #18894 was merged.

The clip path/clip box were simply not set at all before.

Also move `_convert_path`/`_get_clip_cmd` (previously `_get_clip_path`)
above the block where all `draw_foo`s are defined, rather than being in
the middle of them.
@jklymak
Copy link
Member

jklymak commented Jan 5, 2021

This looks fine to me (ahem, or at least the test looks reasonable and passes).... Does it need a change log entry though since postscrtip files will have changed?

@timhoffm
Copy link
Member

timhoffm commented Jan 5, 2021

I would not write a change note in the sense that outputs change.

This is either a bug fix or a new feature. If somebody wants to write a note then as a new feature. But IMHO that's optional.

I'll leave this briefly open if somebody want to add a note.

Anybody can merge after a day or two.

@jklymak
Copy link
Member

jklymak commented Jan 5, 2021

I think I agree that it can just be merged. Just wanted to double check....

@jklymak jklymak merged commit 796dbf4 into matplotlib:master Jan 5, 2021
@anntzer anntzer deleted the psct branch January 5, 2021 22:35
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.

clabel ticks and axes limits with eps zoom output
5 participants