Title: Colormap to scatter_colored · Issue #365 · lava/matplotlib-cpp · GitHub
Open Graph Title: Colormap to scatter_colored · Issue #365 · lava/matplotlib-cpp
X Title: Colormap to scatter_colored · Issue #365 · lava/matplotlib-cpp
Description: I've added a new version of the scatter_colored function to manage the colormap. It would be great if I could push this! template Open Graph Description: I've added a new version of the scatter_colored function to manage the colormap. It would be great if I could push this! template X Description: I've added a new version of the scatter_colored function to manage the colormap. It would be great if I could push this! template<typename NumericX, typename NumericY, typename NumericColors...
Opengraph URL: https://github.com/lava/matplotlib-cpp/issues/365
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Colormap to scatter_colored","articleBody":"I've added a new version of the _scatter_colored_ function to manage the colormap. It would be great if I could push this!\r\n\r\n```\r\ntemplate\u003ctypename NumericX, typename NumericY, typename NumericColors\u003e\r\n bool scatter_colored(const std::vector\u003cNumericX\u003e\u0026 x,\r\n const std::vector\u003cNumericY\u003e\u0026 y,\r\n const std::vector\u003cNumericColors\u003e\u0026 colors,\r\n const double s=1.0, // The marker size in points**2\r\n const std::string\u0026 cmap=\"hsv\",\r\n const std::map\u003cstd::string, std::string\u003e \u0026 keywords = {})\r\n {\r\n detail::_interpreter::get();\r\n\r\n assert(x.size() == y.size());\r\n\r\n PyObject* xarray = detail::get_array(x);\r\n PyObject* yarray = detail::get_array(y);\r\n PyObject* colors_array = detail::get_array(colors);\r\n PyObject* cm = PyString_FromString(cmap.c_str());\r\n\r\n PyObject* kwargs = PyDict_New();\r\n PyDict_SetItemString(kwargs, \"s\", PyLong_FromLong(s));\r\n PyDict_SetItemString(kwargs, \"c\", colors_array);\r\n PyDict_SetItemString(kwargs, \"cmap\", cm);\r\n\r\n for (const auto\u0026 it : keywords)\r\n {\r\n PyDict_SetItemString(kwargs, it.first.c_str(), PyString_FromString(it.second.c_str()));\r\n }\r\n\r\n PyObject* plot_args = PyTuple_New(2);\r\n PyTuple_SetItem(plot_args, 0, xarray);\r\n PyTuple_SetItem(plot_args, 1, yarray);\r\n\r\n PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_scatter, plot_args, kwargs);\r\n\r\n Py_DECREF(plot_args);\r\n Py_DECREF(kwargs);\r\n if(res) Py_DECREF(res);\r\n\r\n return res;\r\n }\r\n ","author":{"url":"https://github.com/Nicoskin","@type":"Person","name":"Nicoskin"},"datePublished":"2024-11-10T07:43:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/365/matplotlib-cpp/issues/365"}
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:5ad3b277-b4a2-a43c-7e33-78636a7e0891 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id C452:2E9694:326FCEC:45C9C16:6977C563 html-safe-nonce df0316e02260e57d22f1182d98c9a01d55dddb72a379c9f89afcf1d856ecee6b visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDUyOjJFOTY5NDozMjZGQ0VDOjQ1QzlDMTY6Njk3N0M1NjMiLCJ2aXNpdG9yX2lkIjoiNDg3NDkwODk4MzYyNzMzNTAxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 7bfb1472ea9aa3488e2263060d6751bc9a29bed788c307ff09d40fabbf61fb32 hovercard-subject-tag issue:2646957064 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/lava/matplotlib-cpp/365/issue_layout twitter:image https://opengraph.githubassets.com/b11e798268ddf42dfe1ea8af31d31c35f074b28305b1c24d20d5a342498f2703/lava/matplotlib-cpp/issues/365 twitter:card summary_large_image og:image https://opengraph.githubassets.com/b11e798268ddf42dfe1ea8af31d31c35f074b28305b1c24d20d5a342498f2703/lava/matplotlib-cpp/issues/365 og:image:alt I've added a new version of the scatter_colored function to manage the colormap. It would be great if I could push this! template og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username Nicoskin hostname github.com expected-hostname github.com None dd7783bd9901db88bac6bc215af7f020bc205a04ebc67e6c7def882ef2859ecd turbo-cache-control no-preview go-import github.com/lava/matplotlib-cpp git https://github.com/lava/matplotlib-cpp.git octolytics-dimension-user_id 51410 octolytics-dimension-user_login lava octolytics-dimension-repository_id 24936365 octolytics-dimension-repository_nwo lava/matplotlib-cpp octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 24936365 octolytics-dimension-repository_network_root_nwo lava/matplotlib-cpp 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 5d30081a77a5d66860584073cb38fd98fd7f9388 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.