Title: Too small axis arrow when savefig to png · Issue #7489 · matplotlib/matplotlib · GitHub
Open Graph Title: Too small axis arrow when savefig to png · Issue #7489 · matplotlib/matplotlib
X Title: Too small axis arrow when savefig to png · Issue #7489 · matplotlib/matplotlib
Description: Hello! My code: import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.axislines import SubplotZero fig = plt.figure() ax = SubplotZero(fig, 111) _ = fig.add_subplot(ax) for direction in ["xzero", "yzero"]: ...
Open Graph Description: Hello! My code: import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.axislines import SubplotZero fig = plt.figure() ax = SubplotZero(fig, 111) _ = fig.add_subplot(a...
X Description: Hello! My code: import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.axislines import SubplotZero fig = plt.figure() ax = SubplotZero(fig, 111) _ = fig.add_subplot(a...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7489
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Too small axis arrow when savefig to png","articleBody":"Hello!\r\n\r\nMy code:\r\n\r\n```python\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\nfrom mpl_toolkits.axes_grid.axislines import SubplotZero\r\n\r\nfig = plt.figure()\r\nax = SubplotZero(fig, 111)\r\n_ = fig.add_subplot(ax)\r\n\r\nfor direction in [\"xzero\", \"yzero\"]:\r\n ax.axis[direction].set_visible(True)\r\n ax.axis[direction].set_axisline_style(\"-\u003e\")\r\nfor direction in [\"top\", \"bottom\", \"left\", \"right\"]:\r\n ax.axis[direction].set_visible(False)\r\nax.axis[\"yzero\"].set_axis_direction(\"left\")\r\nax.grid(True)\r\nax.minorticks_on()\r\n\r\nplt.plot([0,1], [0,1], c=\"blue\", lw=2)\r\n_ = plt.title(\"График\")\r\n_ = plt.xlabel(\"Ось x\")\r\n_ = plt.ylabel(\"Ось y\")\r\n\r\nfor ext in ['png', 'svg', 'pdf']:\r\n plt.savefig(\"test_chart.\"+ext)\r\nplt.show()\r\nplt.close()\r\n```\r\n\r\nMy matplotlibrc file in `MPLCONFIGDIR`:\r\n\r\n```\r\nxtick.labelsize: 14.0 \r\nytick.labelsize: 14.0 \r\naxes.titlesize: 20.0 \r\naxes.labelsize: 16 \r\nlegend.fontsize: 12 \r\naxes.grid: True \r\nfont.family: Roboto # I copied roboto font to matplotlib font folder\r\nfont.style: italic\r\nfont.size: 14 \r\nfigure.figsize: 12, 8 \r\n\r\nsavefig.dpi: 300 \r\nsavefig.format: png\r\nsavefig.bbox: tight \r\n\r\nanimation.writer : ffmpeg_file\r\nanimation.ffmpeg_path: ffmpeg \r\nanimation.codec: h264 \r\n# animation.html : html5 \r\n```\r\n\r\nI works on Windows 8.1 64bit. I use `Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32` in environmet, created with conda.\r\nMatplotlib version is 1.5.3\r\n\r\nWhen I see files created with matplotlib I see that arrows on axis ends are normal in svg and pdf files but too small in png file.\r\n\r\nIn svg file:\r\n\r\n\r\n\r\nIn png file:\r\n\r\n\r\n\r\nMaybe it's bug.\r\n\r\nBest regards, Andrey.","author":{"url":"https://github.com/AndreWin","@type":"Person","name":"AndreWin"},"datePublished":"2016-11-20T13:04:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/7489/matplotlib/issues/7489"}
| 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:f79b971f-c1cd-9937-2dcd-4ec988c4b40d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E168:29B748:1FDB808:2BBA0A2:6A541693 |
| html-safe-nonce | 4b39dc713e6b7935e5eeb0b53f4099f15ec7bbae3d5f4d8a4475ffe1c1ea6932 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTY4OjI5Qjc0ODoxRkRCODA4OjJCQkEwQTI6NkE1NDE2OTMiLCJ2aXNpdG9yX2lkIjoiNDcwMTI5NjI5MDg4OTQ3MTYzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab18f04850fc6dd6dfd1833e428ff24c9545ecabb2051d4473d699a0db67d71f |
| hovercard-subject-tag | issue:190557078 |
| 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/7489/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1da63d55c930891ad1bf1026aa3cc11534f7780fb7c7e0f25c0b846a66dccfcb/matplotlib/matplotlib/issues/7489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1da63d55c930891ad1bf1026aa3cc11534f7780fb7c7e0f25c0b846a66dccfcb/matplotlib/matplotlib/issues/7489 |
| og:image:alt | Hello! My code: import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.axislines import SubplotZero fig = plt.figure() ax = SubplotZero(fig, 111) _ = fig.add_subplot(a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AndreWin |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width