Title: masked arrays broken in py3k + gcc 5.1 on arch linux · Issue #4525 · matplotlib/matplotlib · GitHub
Open Graph Title: masked arrays broken in py3k + gcc 5.1 on arch linux · Issue #4525 · matplotlib/matplotlib
X Title: masked arrays broken in py3k + gcc 5.1 on arch linux · Issue #4525 · matplotlib/matplotlib
Description: This demo http://matplotlib.org/devdocs/examples/pylab_examples/color_by_yvalue.html is broken on python 3. Only the left most plotted region is shown and happens either with ma arrays or np.nan filled arrays (have not started digging ye...
Open Graph Description: This demo http://matplotlib.org/devdocs/examples/pylab_examples/color_by_yvalue.html is broken on python 3. Only the left most plotted region is shown and happens either with ma arrays or np.nan fi...
X Description: This demo http://matplotlib.org/devdocs/examples/pylab_examples/color_by_yvalue.html is broken on python 3. Only the left most plotted region is shown and happens either with ma arrays or np.nan fi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4525
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"masked arrays broken in py3k + gcc 5.1 on arch linux","articleBody":"This demo http://matplotlib.org/devdocs/examples/pylab_examples/color_by_yvalue.html is broken on python 3.\n\nOnly the left most plotted region is shown and happens either with ma arrays or `np.nan` filled arrays (have not started digging yet, I assume the eventually follow the same code path). Filling with 0 works as expected.\n\nI think bisect on this goes back to the cxx removal but many of the commits in there don't compile on python3 due to a numpy related gcc error so that isn't very helpful.\n\nThis smells like a subtle clipping bug.\n\nattn @mdboom @efiring \n\nThe most common compilation error is:\n\n``` python\ngcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/home/tcaswell/.virtualenvs/dd_3k/lib/python3.4/site-packages/numpy/core/include -I/home/tcaswell/.virtualenvs/dd_3k/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/home/tcaswell/.virtualenvs/dd_3k/include/python3.4m -c src/ft2font_wrapper.cpp -o build/temp.linux-x86_64-3.4/src/ft2font_wrapper.o\nIn file included from src/file_compat.h:7:0,\n from src/ft2font_wrapper.cpp:3:\nsrc/ft2font_wrapper.cpp: In function ‘PyObject* PyFT2Image_as_array(PyFT2Image*, PyObject*, PyObject*)’:\nsrc/ft2font_wrapper.cpp:142:47: error: ‘PyArray_UBYTE’ was not declared in this scope\n return PyArray_SimpleNewFromData(2, dims, PyArray_UBYTE, self->x->get_buffer());\n ^\n/home/tcaswell/.virtualenvs/dd_3k/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:129:46: note: in definition of macro ‘PyArray_SimpleNewFromData’\n PyArray_New(&PyArray_Type, nd, dims, typenum, NULL, \\\n ^\n\n```\n\nGoing to try rolling back to older versions of numpy te see if that fixes it.\n\nFor future reference, the output of bisect:\n\nThe first bad commit could be any of:\n\n4a56cdadeb874fd959263fdb7af474c2416457f4\ncfbf8d5225ac696cb2c3a8ae096911470074a5f8\n339537d58374e8c2f7dd62299a9869d819956937\n8dae8186c82f7243b819162d6eb1a64c1afeb379\n6e19dac792a42e6cc0f68f2066248a35657673ff\na22596839a7eb31d9700822f2ae09f43c2b765ce\n697b3ef37c044787b01344ca166a24d4da58345b\nc5ab7474a02f16e75e1bbabcb7af5f7d72f6f847\n5204635911f911a48c03ca3cf2f1f70341d396cf\naf578f5f35b2d7fef36a35a50d156c027472a816\n0624664f857f35583301f55553d28e00a4013770\n6d0717930000cafeeecabed900ac1b286a4176da\nba4016014cb4fb4927e36ce8ea429fed47dcb787\nd862c4740984433545461ded596d421f48f6b6a7\nd8c1d0d5e494465cbc27a639d5337240d84997fe\n\nWe cannot bisect more!\n\nBisect Log:\ngit bisect start 'master' 'v1.4.3'\na165735 bad Merge pull request #4521 from jkseppan/issue-4475\n21f46ff good REL : version 1.4.3\n\ngit bisect bad 056ba7a87e5bbd37dbf61a3c27329dc4f5648a54\n056ba7a bad MNT : Remove `NavigationToolbar2QTAgg`\n\ngit bisect bad 112f199e26a0ad2047e626f4ceea437196a75909\n112f199 bad Merge pull request #3752 from astrofrog/rc_context_exceptions\n\ngit bisect good 34ed45af6c693d6951a82619bb669fc5463f4f9d\n34ed45a good Merge pull request #3291 from joferkington/lightsource-enhancements\n\ngit bisect bad c6f24d3edc787303d631d62c74893bf9bcaaf152\nc6f24d3 bad Merge pull request #3665 from jkseppan/fix-gdk-strides\n\ngit bisect good 0f4a68d3b75ae5ef192b1c90d876e18ff9de86c5\n0f4a68d good Merge pull request #3547 from jkseppan/numpy-deprecation\n\ngit bisect bad 7891790ea379d5960fbd61f4667919519456a9a4\n7891790 bad Remove reference to PyCXX\n\ngit bisect skip 697b3ef37c044787b01344ca166a24d4da58345b\n697b3ef skip Restore parallel testing\n\ngit bisect skip 6d0717930000cafeeecabed900ac1b286a4176da\n6d07179 skip Change how array converter functions are defined\n\ngit bisect good 7b206eb0eb150c9b3f8f451977055500c12d92ed\n7b206eb good Skip shading of masked array test on numpy 1.6\n\ngit bisect skip 8dae8186c82f7243b819162d6eb1a64c1afeb379\n8dae818 skip Remove some obsolete TODOs\n\ngit bisect skip af578f5f35b2d7fef36a35a50d156c027472a816\naf578f5 skip Add .clang-format to repository\n\ngit bisect good ea8617d01daa63201d026688efd994423c54659c\nea8617d good fix E201 and E202 pep8 errors\n\ngit bisect skip 4a56cdadeb874fd959263fdb7af474c2416457f4\n4a56cda skip Fix compilation\n\ngit bisect skip d862c4740984433545461ded596d421f48f6b6a7\nd862c47 skip Fix Mac compile again\n\ngit bisect skip cfbf8d5225ac696cb2c3a8ae096911470074a5f8\ncfbf8d5 skip Remove debugging prints\n\ngit bisect skip ba4016014cb4fb4927e36ce8ea429fed47dcb787\nba40160 skip Remove use of PyCXX in core C++ extensions\n\ngit bisect skip 339537d58374e8c2f7dd62299a9869d819956937\n339537d skip Fix curve simplification\n\ngit bisect good dbeed94d578c458d31842cd13c04f665155986cb\ndbeed94 good Merge pull request #3661 from jenshnielsen/numpy_16_fixes\n\ngit bisect skip 6e19dac792a42e6cc0f68f2066248a35657673ff\n6e19dac skip Fix segfault on Python 3\n\ngit bisect skip 0624664f857f35583301f55553d28e00a4013770\n0624664 skip Fix test_hexbin_pickable test\n\ngit bisect skip c5ab7474a02f16e75e1bbabcb7af5f7d72f6f847\nc5ab747 skip More Python 3 fixes\n\ngit bisect skip a22596839a7eb31d9700822f2ae09f43c2b765ce\na225968 skip Documentation\n\ngit bisect skip 5204635911f911a48c03ca3cf2f1f70341d396cf\n5204635 skip Windows-related fixes, thanks to @cgohlke\n\ngit bisect bad d8c1d0d5e494465cbc27a639d5337240d84997fe\nd8c1d0d bad Remove usage of old Numpy API\n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2015-06-14T22:11:34Z","url":"https://github.com/matplotlib/matplotlib/issues/4525"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:59f7f633-8a7a-6798-9cf0-2ff8bcc5e7ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D9E:161654:1318F36:19680FF:6B0663FC |
| html-safe-nonce | 266b49c700cbe541cb5b3b21d46e38e50e78c30ba25cd6bdf71eefb73e2386e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDlFOjE2MTY1NDoxMzE4RjM2OjE5NjgwRkY6NkIwNjYzRkMiLCJ2aXNpdG9yX2lkIjoiMTcxMjMwOTYwNDc5MDQ2MTQzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 094452c67ddf58df06f91ad2d7ff954d61626923d178c6377d5865b751e1b57c |
| hovercard-subject-tag | issue:88256473 |
| 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/4525/issue_layout |
| twitter:image | https://opengraph.githubassets.com/32710a60061a5316989fb70432fd648457e70c285775c8102eba43179dcd58b5/matplotlib/matplotlib/issues/4525 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/32710a60061a5316989fb70432fd648457e70c285775c8102eba43179dcd58b5/matplotlib/matplotlib/issues/4525 |
| og:image:alt | This demo http://matplotlib.org/devdocs/examples/pylab_examples/color_by_yvalue.html is broken on python 3. Only the left most plotted region is shown and happens either with ma arrays or np.nan fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width