René's URL Explorer Experiment


Title: Matplotlib cannot find default matplotlib fonts on Scientific linux · Issue #8427 · matplotlib/matplotlib · GitHub

Open Graph Title: Matplotlib cannot find default matplotlib fonts on Scientific linux · Issue #8427 · matplotlib/matplotlib

X Title: Matplotlib cannot find default matplotlib fonts on Scientific linux · Issue #8427 · matplotlib/matplotlib

Description: To help us understand and resolve your issue, please fill out the form to the best of your ability. You can feel free to delete the sections that do not apply. Bug report Bug summary Matplotlib cannot seem to find any of its own fonts on...

Open Graph Description: To help us understand and resolve your issue, please fill out the form to the best of your ability. You can feel free to delete the sections that do not apply. Bug report Bug summary Matplotlib can...

X Description: To help us understand and resolve your issue, please fill out the form to the best of your ability. You can feel free to delete the sections that do not apply. Bug report Bug summary Matplotlib can...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8427

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Matplotlib cannot find default matplotlib fonts on Scientific linux","articleBody":"To help us understand and resolve your issue, please fill out the form to the best of your ability. You can feel free to delete the sections that do not apply.\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nMatplotlib cannot seem to find any of its own fonts on my Scientific Linux system - I get all sorts of warnings like \"Font family ['STIXNonUnicode'] not found\" and \"findfont: Could not match :family=DejaVu Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=10.0. Returning /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf\".\r\n\r\n**Code for reproduction**\r\n\r\n- A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required\r\n\r\n```python\r\n#!/usr/bin/env python\r\n\r\nimport matplotlib\r\nmatplotlib.use('Agg')\r\n\r\nfrom matplotlib import pyplot as plt\r\nimport numpy as np\r\n\r\n\r\nif __name__ == '__main__':\r\n    x = np.linspace(0.0, 5.0, 100)\r\n    y = np.cos(2*np.pi*x) * np.exp(-x)\r\n    \r\n    plt.plot(x, y, 'k')\r\n    plt.title('Damped exponential decay')\r\n    #plt.text(2, 0.65, r'$\\cos(2 \\pi t) \\exp(-t)$', fontname='DejaVu Sans')\r\n    plt.text(2, 0.65, r'$\\cos(2 \\pi t) \\exp(-t)$') \r\n    plt.xlabel('time (s)')\r\n    plt.ylabel('voltage (mV)')\r\n    plt.savefig('output.png')\r\n```\r\n\r\n**Actual outcome**\r\n\r\n- The output produced by the above code, which may be a screenshot, console output, etc.\r\n\r\n```\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1307: UserWarning: findfont: Could not match :family=DejaVu Sans:style=normal:variant=normal:weight=400:stretch=normal:size=10.0. Returning /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf\r\n  UserWarning)\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['STIXGeneral'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1307: UserWarning: findfont: Could not match :family=DejaVu Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=10.0. Returning /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf\r\n  UserWarning)\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1307: UserWarning: findfont: Could not match :family=DejaVu Sans:style=italic:variant=normal:weight=normal:stretch=normal:size=10.0. Returning /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf\r\n  UserWarning)\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1307: UserWarning: findfont: Could not match :family=DejaVu Sans:style=normal:variant=normal:weight=700:stretch=normal:size=10.0. Returning /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf\r\n  UserWarning)\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['STIXNonUnicode'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['STIXSizeOneSym'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['STIXSizeTwoSym'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['STIXSizeThreeSym'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['STIXSizeFourSym'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['STIXSizeFiveSym'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['cmsy10'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['cmr10'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['cmtt10'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['cmmi10'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['cmb10'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['cmss10'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['cmex10'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family ['DejaVu Sans Display'] not found. Falling back to DejaVu Sans\r\n  (prop.get_family(), self.defaultFamily[fontext]))\r\n/home/pager/miniconda/envs/pager/lib/python3.6/site-packages/matplotlib/font_manager.py:1307: UserWarning: findfont: Could not match :family=DejaVu Sans:style=normal:variant=normal:weight=400:stretch=normal:size=12.0. Returning /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf\r\n  UserWarning)\r\n\r\n```\r\n\r\n**Expected outcome**\r\nOn my Mac, there are no warnings.\r\n**Matplotlib version**\r\nmatplotlib.__version__ =\u003e '2.0.0'\r\n\r\nPython 3.6.1 | packaged by conda-forge | (default, Mar 23 2017, 21:05:12) \r\n\r\nLinux localhost 3.10.0-514.10.2.el7.x86_64 #1 SMP Thu Mar 2 11:21:24 CST 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nScientific Linux release 7.3 (Nitrogen)\r\n\r\nPython and matplotlib were both installed using conda from conda-forge.\r\n\r\nAlso, I have made NO customizations in any matplotlibrc files, and there are no files under ~/.config/matplotlib.\r\n\r\nThe actual problem caused by all of this is of course in a much more complicated application, where a map I'm making has the wrong font (italicized, at that) in it when created on Linux.\r\n\r\nIncidentally, I could *really* use a workaround, as I was hoping to deploy some code on Linux this week.  Is there a way to tell matplotlib (perhaps in a matplotlibrc file) where to find the true type fonts that are included with the distribution?\r\n\r\n\r\n","author":{"url":"https://github.com/mhearne-usgs","@type":"Person","name":"mhearne-usgs"},"datePublished":"2017-04-04T13:27:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/8427/matplotlib/issues/8427"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ea4ef34a-6500-ff61-0d6c-7485c3d0ac65
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD8B8:2BD65D:7FCBF3:A9D4A0:6A51A720
html-safe-nonce0f60a758006c49e254d3264a45ced0703d7d564a5147e84ef2e3e3fe072d0a6b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEI4OjJCRDY1RDo3RkNCRjM6QTlENEEwOjZBNTFBNzIwIiwidmlzaXRvcl9pZCI6IjczMTE0MTg4MjY1Nzg1Njg5OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac758e7b0392f1c2a77af8db4f16c44abc40c441d3ba2b656566b3bfbe3d13f181
hovercard-subject-tagissue:219250045
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/8427/issue_layout
twitter:imagehttps://opengraph.githubassets.com/824c3d0ab69b35107bfa171bd79b81443ac242eafba66aa70b8d284c983f203d/matplotlib/matplotlib/issues/8427
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/824c3d0ab69b35107bfa171bd79b81443ac242eafba66aa70b8d284c983f203d/matplotlib/matplotlib/issues/8427
og:image:altTo help us understand and resolve your issue, please fill out the form to the best of your ability. You can feel free to delete the sections that do not apply. Bug report Bug summary Matplotlib can...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemhearne-usgs
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/8427#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F8427
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F8427
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/8427
Reloadhttps://github.com/matplotlib/matplotlib/issues/8427
Reloadhttps://github.com/matplotlib/matplotlib/issues/8427
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/8427
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/8427
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 409 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Matplotlib cannot find default matplotlib fonts on Scientific linuxhttps://github.com/matplotlib/matplotlib/issues/8427#top
https://github.com/mhearne-usgs
mhearne-usgshttps://github.com/mhearne-usgs
on Apr 4, 2017https://github.com/matplotlib/matplotlib/issues/8427#issue-219250045
#1https://github.com/matplotlib/matplotlib/pull/1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.