René's URL Explorer Experiment


Title: Issue(?): head size of FancyArrowPatch changes between interactive figure and picture export · Issue #6035 · matplotlib/matplotlib · GitHub

Open Graph Title: Issue(?): head size of FancyArrowPatch changes between interactive figure and picture export · Issue #6035 · matplotlib/matplotlib

X Title: Issue(?): head size of FancyArrowPatch changes between interactive figure and picture export · Issue #6035 · matplotlib/matplotlib

Description: Issue (?) When plotting a arrow (with FancyArrowPatch from matplotlib.patches), and exporting it to a picture, the size of its head is not consistent with what is displayed in the interactive figure. (The linewidth seems to remain OK bet...

Open Graph Description: Issue (?) When plotting a arrow (with FancyArrowPatch from matplotlib.patches), and exporting it to a picture, the size of its head is not consistent with what is displayed in the interactive figur...

X Description: Issue (?) When plotting a arrow (with FancyArrowPatch from matplotlib.patches), and exporting it to a picture, the size of its head is not consistent with what is displayed in the interactive figur...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue(?): head size of FancyArrowPatch changes between interactive figure and picture export","articleBody":"### Issue (?)\n\nWhen plotting a arrow (with `FancyArrowPatch` from `matplotlib.patches`), and exporting it to a picture, the size of its head is not consistent with what is displayed in the interactive figure. (The linewidth seems to remain OK between interactive and exported file, whatever format is used.) \n\nAs far as I understand, it seems to be DPI-related:\n- If the DPI value is the same between the interactive figure and the export made with `savefig`, then everything is fine.\n- However, if I want to export with DPI 3 times bigger than in the interactive figure (for example 300 DPI instead of 100 DPI), one workaround I found is to use a mutation_scale 3 times bigger than before when plotting the interactive figure. Unfortunately, it is neither really convenient nor satisfying as it affects what is displayed in the interactive figure (the arrow head is 3 times bigger...) \n\nI don't know if it is a bug or the expected behavior, but I find it disturbing to have an export that is (that) different from the interactive display.\n### Environment infos\n- Linux, Python 2.7 (from Anaconda2), Matplotlib v1.5.0\n- Interactive backend is Qt4Agg\n### Example script\n\nHere is a script that generates a figure with 2 arrows (FancyArrowPatch), and exports it to different formats:\n\n```\nimport matplotlib.pyplot as plt\nfrom matplotlib.patches import FancyArrowPatch\nplt.ion() # My interactive backend is Qt4Agg, with default @ 80 DPI\n\n\"\"\" Prepare and plot 2 FancyArrowPatch instances, the 2nd one with a \n    mutation_scale parameter 3 times bigger than the 1st one. \n\"\"\"\ncommon_opts = dict(arrowstyle=u'-\u003e', lw=3)\narrow_patch_0 = FancyArrowPatch(posA=(0.2, 0.8), posB=(0.8, 0.65),\n                                mutation_scale=50, **common_opts)\narrow_patch_1 = FancyArrowPatch(posA=(0.2, 0.2), posB=(0.8, 0.45),\n                                mutation_scale=150, **common_opts)\n\nfig, ax = plt.subplots(figsize=(8, 6), dpi=100)\nax.text(0.2, 0.85, \"mutation_scale = 50\", ha='left', va='bottom')\nax.text(0.2, 0.15, \"mutation_scale = 150\", ha='left', va='top')\nfor arrow_patch in [arrow_patch_0, arrow_patch_1]:\n    ax.add_patch(arrow_patch)\n\n\"\"\" Export to different formats, with different DPI values if rasterized.\n\"\"\"\ncommon_prefix = 'FancyArrowPatch_testfile'\nfig.savefig(common_prefix + '.eps')\nfig.savefig(common_prefix + '.pdf')\nfig.savefig(common_prefix + '_300dpi.png', dpi=300)\nfig.savefig(common_prefix + '_100dpi.png', dpi=100)\nfig.savefig(common_prefix + '_300dpi.jpg', dpi=300)\nfig.savefig(common_prefix + '_100dpi.jpg', dpi=100)``\n```\n\nAnd below is a picture that compares the 6 different output files (2 x 3 bottom panels) with a screenshot of the interactive figure (top center panel).\n![fancyarrowpatch_export_issue](https://cloud.githubusercontent.com/assets/17270724/13196822/0c681712-d7da-11e5-9958-9c6e12878f21.png)\n### Observations about the example\n\nOne can see that with the raster formats (PNG and JPG):\n- @ 100 DPI (blue labels), the exports are the same as in the screenshot of the interactive display with 100 DPI. \n- @ 300 DPI (red labels), the exports differ from the interactive display. Besides, the arrow head with mutation_scale = 150 seems to be as big as the arrow head with mutation_scale = 50 @ 100 DPI.\n\nConcerning the (at least partially) vector formats that I tested (PDF and EPS, with purple labels), one can observe that the arrow heads do not have exactly the same size as in the interactive display either (they are slightly bigger).\n","author":{"url":"https://github.com/afvincent","@type":"Person","name":"afvincent"},"datePublished":"2016-02-20T13:49:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/6035/matplotlib/issues/6035"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4ffb1f16-5a73-0b8f-fbc4-df511beb337b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCE60:C204A:2910EC:39105A:6A546D43
html-safe-nonce61226533b44c913f4bdecf847444444bb06cbddd2e296af80e743c11be865079
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTYwOkMyMDRBOjI5MTBFQzozOTEwNUE6NkE1NDZENDMiLCJ2aXNpdG9yX2lkIjoiMTIwNjg1NjgzNjk4NTkzMDkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc5f45b37f8ecc3553faa94f2e31d886d12aacca2ad56af7a0bae7a9a6a618682
hovercard-subject-tagissue:135075940
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/6035/issue_layout
twitter:imagehttps://opengraph.githubassets.com/281df882018e69a6e6de6d4fb1cef4a136adcf4f1e623323e1b82ba6819d9954/matplotlib/matplotlib/issues/6035
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/281df882018e69a6e6de6d4fb1cef4a136adcf4f1e623323e1b82ba6819d9954/matplotlib/matplotlib/issues/6035
og:image:altIssue (?) When plotting a arrow (with FancyArrowPatch from matplotlib.patches), and exporting it to a picture, the size of its head is not consistent with what is displayed in the interactive figur...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameafvincent
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
release6d28624802c2f7d9500239dd6870ed7031b7353b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/6035#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F6035
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%2F6035
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/6035
Reloadhttps://github.com/matplotlib/matplotlib/issues/6035
Reloadhttps://github.com/matplotlib/matplotlib/issues/6035
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/6035
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/6035
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 408 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
Issue(?): head size of FancyArrowPatch changes between interactive figure and picture exporthttps://github.com/matplotlib/matplotlib/issues/6035#top
API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22API%3A%20consistency%22
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
v2.0.0https://github.com/matplotlib/matplotlib/milestone/14
https://github.com/afvincent
afvincenthttps://github.com/afvincent
on Feb 20, 2016https://github.com/matplotlib/matplotlib/issues/6035#issue-135075940
https://cloud.githubusercontent.com/assets/17270724/13196822/0c681712-d7da-11e5-9958-9c6e12878f21.png
API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22API%3A%20consistency%22
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
v2.0.0https://github.com/matplotlib/matplotlib/milestone/14
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.