Title: MathTex Font error · Issue #5208 · matplotlib/matplotlib · GitHub
Open Graph Title: MathTex Font error · Issue #5208 · matplotlib/matplotlib
X Title: MathTex Font error · Issue #5208 · matplotlib/matplotlib
Description: Matplotlib 1.5.1rc1 (from conda repo) seaborn 0.6 Anaconda python 3.4 notebook 4.0.5 Mac OS X backend inline Plotting a figure with a bunch of mathtex formulas results in an error. Re-executing the same cell many times I get the error mo...
Open Graph Description: Matplotlib 1.5.1rc1 (from conda repo) seaborn 0.6 Anaconda python 3.4 notebook 4.0.5 Mac OS X backend inline Plotting a figure with a bunch of mathtex formulas results in an error. Re-executing the...
X Description: Matplotlib 1.5.1rc1 (from conda repo) seaborn 0.6 Anaconda python 3.4 notebook 4.0.5 Mac OS X backend inline Plotting a figure with a bunch of mathtex formulas results in an error. Re-executing the...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5208
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MathTex Font error","articleBody":"Matplotlib 1.5.1rc1 (from conda repo)\nseaborn 0.6\nAnaconda\npython 3.4 \nnotebook 4.0.5\nMac OS X\nbackend inline\n\nPlotting a figure with a bunch of mathtex formulas results in an error. Re-executing **the same** cell many times I get the error most of the time and the correct plot sometimes.\n\nThe stack trace is very long and termitates with:\n\n```\n\n/Users/anto/anaconda/envs/py3/lib/python3.4/site-packages/matplotlib/mathtext.py in __init__(self, default_font_prop, mathtext_backend)\n 567 \n 568 filename = findfont(default_font_prop)\n--\u003e 569 default_font = self.CachedFont(FT2Font(filename))\n 570 self._fonts['default'] = default_font\n 571 self._fonts['regular'] = default_font\n\nTypeError: First argument must be a path or file object reading bytes\n```\n\nThe plotting code is something like this:\n\n```\nlt, = plot(tt, res.eval(x=tt))\nplot(t, Ratio, 'o', color=lt.get_color())\nv = 0\nfor resG in resultsGauss:\n lf, = plot(tt, resG.eval(x=tt))\n plt.text(8.5, 0.7 - v, r\"$\\tau = %.2f s$\" % resG.values['tau'], fontsize=24)\n plt.text(3, 0.7 - v, resG.model.func.__doc__, fontsize=24)\n v += 0.2\nplot(t, RatioGauss, 'o', color=bpl.red)\n```\n\nAnd when it succeeds it generates a plot like this:\n\n\n\nI'll update the issue if I can create a standalone example.\n\nxref: maybe related to #3086\n","author":{"url":"https://github.com/tritemio","@type":"Person","name":"tritemio"},"datePublished":"2015-10-08T05:46:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/5208/matplotlib/issues/5208"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1aa034b4-4f8d-a097-11e5-538d11c6cf2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA84:220B9C:29CD09:38B052:6A522890 |
| html-safe-nonce | 6a2efae2dfaaa78a5384cd6767e63c68f137864c11682bd033c5d2fa4ddfb4a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTg0OjIyMEI5QzoyOUNEMDk6MzhCMDUyOjZBNTIyODkwIiwidmlzaXRvcl9pZCI6IjgxNDkwOTc0Nzk3ODAwNTEwODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3e3b17ebd72a6e1116d7803cab326d617cd551a8e58d5103fd042059fd64ce79 |
| hovercard-subject-tag | issue:110378179 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/5208/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d0f1e3dc355237ffbb1246985f6d8ab45ef48ed6cb935fdad466e25ddde21b5/matplotlib/matplotlib/issues/5208 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d0f1e3dc355237ffbb1246985f6d8ab45ef48ed6cb935fdad466e25ddde21b5/matplotlib/matplotlib/issues/5208 |
| og:image:alt | Matplotlib 1.5.1rc1 (from conda repo) seaborn 0.6 Anaconda python 3.4 notebook 4.0.5 Mac OS X backend inline Plotting a figure with a bunch of mathtex formulas results in an error. Re-executing the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tritemio |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width