Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix issue with empty line in ps backend#23964

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 1 commit intomatplotlib:mainfromoscargus:emprypsline
Sep 24, 2022

Conversation

oscargus
Copy link
Member

@oscargusoscargus commentedSep 20, 2022
edited
Loading

PR Summary

Closes#23954

(Identical to#23910 which I forgot existed. This has a test though...)

PR Checklist

Tests and Styling

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • [N/A] New features are documented, with examples if plot related.
  • [N/A] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [N/A] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • [N/A] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

johnthagen reacted with thumbs up emoji
@oscargusoscargus added this to thev3.6.1 milestoneSep 20, 2022
@oscargusoscargusforce-pushed theemprypsline branch 2 times, most recently from4aef735 to0c53446CompareSeptember 20, 2022 13:50
@tacaswell
Copy link
Member

Approving your PR is easier than adding a test to mine :)

# append the last entry
stream.append(curr_stream)
# append the last entry if exists
if curr_stream:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

On consideration, I think the looser check here is better than what I had because I suspect other falsy things (like empty lists) would also break the consumer code.

figure = Figure()
ax = figure.add_subplot(111)
ax.set_title('\nLower title')
ax.annotate(text='\nLower label', xy=(0, 0))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Would a figtext (fig.text(...), no axes at all) be enough?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It is. I've changed it.

@oscargus
Copy link
MemberAuthor

Updated the test and seems to have lost the co-authorship from@tacaswell ... Not sure what you changed, but Ithink that it should be included here (since I pulled the PR to another computer before updating the test).

@QuLogic
Copy link
Member

You can click the commit links on the 'force-pushed' annotation line here. Looks like just a rebase to me.

@QuLogicQuLogic merged commitcada8fb intomatplotlib:mainSep 24, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestSep 24, 2022
@oscargusoscargus deleted the emprypsline branchSeptember 25, 2022 15:04
oscargus added a commit that referenced this pull requestSep 28, 2022
…964-on-v3.6.xBackport PR#23964 on branch v3.6.x (Fix issue with empty line in ps backend)
@ksundenksunden mentioned this pull requestFeb 20, 2023
6 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@anntzeranntzeranntzer left review comments

@dopplershiftdopplershiftdopplershift approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.6.1
Development

Successfully merging this pull request may close these issues.

[Bug]: Text label with empty line causes a "TypeError: cannot unpack non-iterable NoneType object" in PostScript backend
5 participants
@oscargus@tacaswell@QuLogic@dopplershift@anntzer

[8]ページ先頭

©2009-2025 Movatter.jp