Title: [Bug]: Exported PDF figures cannot be modified by Adobe Illustrator correctly. · Issue #27893 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Exported PDF figures cannot be modified by Adobe Illustrator correctly. · Issue #27893 · matplotlib/matplotlib
X Title: [Bug]: Exported PDF figures cannot be modified by Adobe Illustrator correctly. · Issue #27893 · matplotlib/matplotlib
Description: Bug summary Use imshow to generate a figure, and then save it as a pdf file. If you open the generated pdf figure in Adobe Illustrator, the figure in Adobe Illustrator becomes different. Colors are wrongly assigned. Code for reproduction...
Open Graph Description: Bug summary Use imshow to generate a figure, and then save it as a pdf file. If you open the generated pdf figure in Adobe Illustrator, the figure in Adobe Illustrator becomes different. Colors are...
X Description: Bug summary Use imshow to generate a figure, and then save it as a pdf file. If you open the generated pdf figure in Adobe Illustrator, the figure in Adobe Illustrator becomes different. Colors are...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27893
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Exported PDF figures cannot be modified by Adobe Illustrator correctly.","articleBody":"### Bug summary\r\n\r\nUse `imshow` to generate a figure, and then save it as a `pdf` file. If you open the generated pdf figure in Adobe Illustrator, the figure in Adobe Illustrator becomes different. Colors are wrongly assigned.\r\n\r\n### Code for reproduction\r\n\r\n```Python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\nimport matplotlib\r\nprint(matplotlib.__version__)\r\n\r\na = np.array([[1, 2, 3], [4, 5, 6]])\r\nplt.matshow(a)\r\nplt.savefig(‘test.pdf’)\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n\r\n\r\n### Expected outcome\r\n\r\n\r\n\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\n_No response_\r\n\r\n### Matplotlib Version\r\n\r\n3.8.3\r\n\r\n### Matplotlib Backend\r\n\r\nmodule://matplotlib_inline.backend_inline\r\n\r\n### Python version\r\n\r\n3.10.13\r\n\r\n### Jupyter version\r\n\r\n7.0.8\r\n\r\n### Installation\r\n\r\nconda","author":{"url":"https://github.com/JerrySoybean","@type":"Person","name":"JerrySoybean"},"datePublished":"2024-03-09T06:54:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/27893/matplotlib/issues/27893"}
| 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:c4bfe66a-494b-e481-4ac7-12e8c5a86bab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE92:16EEE2:EC6CAA:1410149:6A5200CA |
| html-safe-nonce | 392281643f469c069712c7586013c9f69bdd0b084503c9e62e3756d3d0d4ed0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTkyOjE2RUVFMjpFQzZDQUE6MTQxMDE0OTo2QTUyMDBDQSIsInZpc2l0b3JfaWQiOiIxMzg3MTk1ODQ5MDgwMTc2ODQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d86e92cfb445c82eeac36c2e4c82095d91c828f85ecb1b60eea7ea95861de395 |
| hovercard-subject-tag | issue:2177089994 |
| 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/27893/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba3d408039278e249ab46bba971c182f621f830221920bfe8e12daea33337ee2/matplotlib/matplotlib/issues/27893 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba3d408039278e249ab46bba971c182f621f830221920bfe8e12daea33337ee2/matplotlib/matplotlib/issues/27893 |
| og:image:alt | Bug summary Use imshow to generate a figure, and then save it as a pdf file. If you open the generated pdf figure in Adobe Illustrator, the figure in Adobe Illustrator becomes different. Colors are... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JerrySoybean |
| 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