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

[MNT] swap xkcd script for humor sans #27299

Merged
merged 1 commit into from Nov 17, 2023

Conversation

story645
Copy link
Member

@story645 story645 commented Nov 9, 2023

This swaps xkcd-script for the Humor sans font b/c the way Humor sans handles the .notdef character is leading to dropped - without warning #27232
This is cherry picked out of #26854

I think we should fork a copy of the xkcd branch under matplotlib because I'm uncomfortable with relying on an unmaintained fork of an unmaintained project, but this is the most complete character set.

PR summary

PR checklist

@story645
Copy link
Member Author

story645 commented Nov 9, 2023

attn @ksunden why xkcd script>xkcd
image

lib/matplotlib/pyplot.py Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
lib/matplotlib/pyplot.py Outdated Show resolved Hide resolved

For best results, the "Humor Sans" font should be installed: it is
not included with Matplotlib.
For best results, install the `xkcd script <https://github.com/ipython/xkcd-font/>`_
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem to be the same link as what is used for CI, and the dependencies page.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think what I should probably do is see if the plain xkcd script works & if so use that and if not PR the xkcd branch (haven't heard back from author)

doc/devel/dependencies.rst Outdated Show resolved Hide resolved
@story645
Copy link
Member Author

So for this PR I can get away w/ the xkcd-font on ipython since no negative ticks, but I need to fix this PR cause it's not using that font right now

@story645 story645 force-pushed the remove-humorsans branch 3 times, most recently from e8b9dea to be9c90d Compare November 15, 2023 22:55
add xkcd-script font to doc build

Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>
@story645
Copy link
Member Author

story645 commented Nov 15, 2023

Ok, so docs now build w/ xckd-script font

@ksunden ksunden merged commit 3180c94 into matplotlib:main Nov 17, 2023
40 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 17, 2023
QuLogic added a commit that referenced this pull request Nov 17, 2023
…299-on-v3.8.x

Backport PR #27299 on branch v3.8.x ([MNT] swap xkcd script for humor sans)
@story645 story645 deleted the remove-humorsans branch May 2, 2024 15:59
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.

None yet

5 participants