René's URL Explorer Experiment


Title: ENH use variadic templates args in scatter and figure by Bidibulke · Pull Request #166 · lava/matplotlib-cpp · GitHub

Open Graph Title: ENH use variadic templates args in scatter and figure by Bidibulke · Pull Request #166 · lava/matplotlib-cpp

X Title: ENH use variadic templates args in scatter and figure by Bidibulke · Pull Request #166 · lava/matplotlib-cpp

Description: In order to avoid adding other declaration function for the same functionnality with other arguments, I had the possibility to pass extra-arguments in a tuple of variadic templates. The kwargs of matplotlib functions are accessible using a tuple of pair (string, T). T can be : bool int long double char* string vector of double vector of int vector of vector of double The syntax is not heavy, and if other types are needed, just implement a function such as std::pair analyze_key_value(const char* key, const T& value) { // Transform object of type T into an python equivalent type PyObject* pyobj = ....; return {key, pyobj}; } Some examples: streamplot vector> lw; // some code to fill lw plt::streamplot(x, y, u, v, make_tuple("color", mag, "linewidth", lw)); scatter // z is a vector plt::scatter(x, y, make_tuple( "marker", "o", "c", z, "s", z, "cmap", "inferno", "alpha", 0.5 ));

Open Graph Description: In order to avoid adding other declaration function for the same functionnality with other arguments, I had the possibility to pass extra-arguments in a tuple of variadic templates. The kwargs of m...

X Description: In order to avoid adding other declaration function for the same functionnality with other arguments, I had the possibility to pass extra-arguments in a tuple of variadic templates. The kwargs of m...

Opengraph URL: https://github.com/lava/matplotlib-cpp/pull/166

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a48dcadb-f225-eb3d-8e14-d08f84c92c5f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC9DE:1DB7DE:DDCC58:13C7C05:6A5A0904
html-safe-nonce4f518f7062a310b794e1ad3ec1efe8e749679912471e5706895fec8dd9a664f1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOURFOjFEQjdERTpERENDNTg6MTNDN0MwNTo2QTVBMDkwNCIsInZpc2l0b3JfaWQiOiI0NDIzODI4MjY1MjYzMzAyOTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4c323ab9f30ffe09cfbb250cd9a0b83c831317ecde7e01aab12a22a91aa07663
hovercard-subject-tagpull_request:394249563
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lava/matplotlib-cpp/pull/166/files
twitter:imagehttps://avatars.githubusercontent.com/u/34576189?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/34576189?s=400&v=4
og:image:altIn order to avoid adding other declaration function for the same functionnality with other arguments, I had the possibility to pass extra-arguments in a tuple of variadic templates. The kwargs of m...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None8c2fe7351e4e987cb8f75e2425a0b895d807779bc4c2d3c312be0a54082219f7
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lava/matplotlib-cpp git https://github.com/lava/matplotlib-cpp.git
octolytics-dimension-user_id51410
octolytics-dimension-user_loginlava
octolytics-dimension-repository_id24936365
octolytics-dimension-repository_nwolava/matplotlib-cpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24936365
octolytics-dimension-repository_network_root_nwolava/matplotlib-cpp
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release491710c7a8eecca9d0a06bd157646f2685d8c87b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lava/matplotlib-cpp/pull/166/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flava%2Fmatplotlib-cpp%2Fpull%2F166%2Ffiles
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%2Flava%2Fmatplotlib-cpp%2Fpull%2F166%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lava%2Fmatplotlib-cpp
Reloadhttps://github.com/lava/matplotlib-cpp/pull/166/files
Reloadhttps://github.com/lava/matplotlib-cpp/pull/166/files
Reloadhttps://github.com/lava/matplotlib-cpp/pull/166/files
lava https://github.com/lava
matplotlib-cpphttps://github.com/lava/matplotlib-cpp
Notifications https://github.com/login?return_to=%2Flava%2Fmatplotlib-cpp
Fork 1.2k https://github.com/login?return_to=%2Flava%2Fmatplotlib-cpp
Star 4.8k https://github.com/login?return_to=%2Flava%2Fmatplotlib-cpp
Code https://github.com/lava/matplotlib-cpp
Issues 192 https://github.com/lava/matplotlib-cpp/issues
Pull requests 31 https://github.com/lava/matplotlib-cpp/pulls
Actions https://github.com/lava/matplotlib-cpp/actions
Projects https://github.com/lava/matplotlib-cpp/projects
Wiki https://github.com/lava/matplotlib-cpp/wiki
Security and quality 0 https://github.com/lava/matplotlib-cpp/security
Insights https://github.com/lava/matplotlib-cpp/pulse
Code https://github.com/lava/matplotlib-cpp
Issues https://github.com/lava/matplotlib-cpp/issues
Pull requests https://github.com/lava/matplotlib-cpp/pulls
Actions https://github.com/lava/matplotlib-cpp/actions
Projects https://github.com/lava/matplotlib-cpp/projects
Wiki https://github.com/lava/matplotlib-cpp/wiki
Security and quality https://github.com/lava/matplotlib-cpp/security
Insights https://github.com/lava/matplotlib-cpp/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flava%2Fmatplotlib-cpp%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flava%2Fmatplotlib-cpp%2Fissues%2Fnew%2Fchoose
Bidibulkehttps://github.com/Bidibulke
lava:masterhttps://github.com/lava/matplotlib-cpp/tree/master
Bidibulke:merge/var_temp_argshttps://github.com/Bidibulke/matplotlib-cpp/tree/merge/var_temp_args
Conversation 2 https://github.com/lava/matplotlib-cpp/pull/166
Commits 9 https://github.com/lava/matplotlib-cpp/pull/166/commits
Checks 0 https://github.com/lava/matplotlib-cpp/pull/166/checks
Files changed https://github.com/lava/matplotlib-cpp/pull/166/files
Please reload this pagehttps://github.com/lava/matplotlib-cpp/pull/166/files
ENH use variadic templates args in scatter and figure https://github.com/lava/matplotlib-cpp/pull/166/files#top
Show all changes 9 commits https://github.com/lava/matplotlib-cpp/pull/166/files
59fc635 BLD adding some tests & ENH new functions in wrapper Bidibulke Mar 26, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/59fc635d811b14ad3032b02457505dd4b8c1e58a
18db2e1 Squashed commit of the following: Bidibulke Mar 26, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/18db2e12b4e0371ddd168f73e7388b5b09b4924c
06425a4 TYPO Bidibulke May 29, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/06425a4ff4275e26ee75ac5b327ab92fc0d1b1e8
1655115 Squashed commit of the following: Bidibulke May 29, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/1655115b32370a024cb39d1807e3fc41b9f71106
210b828 ENH quiver extension / streamplot added Bidibulke May 29, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/210b828b2b568667f0adc53f9bc33c4f7b0338f6
754f75f @MAINT fix some typos, and french comments ... Bidibulke May 29, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/754f75f0144ec8eb16e3aa04fbf4f6bf0c4da5db
43b4313 BUG FIX invalid read on PyDict_SetItemString Bidibulke Jun 5, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/43b4313cf986b42748e809be7abe329ece656987
8880cb7 BUG FIX PyLong_FromLong in analyse_keywords Bidibulke Jun 5, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/8880cb72d4802c44e72902daa85c0e9c45d4fa37
e0a08c3 ENH new functions version with `Args...` Bidibulke Jun 9, 2020 https://github.com/lava/matplotlib-cpp/pull/166/commits/e0a08c33ec5a7a2c9a408c2a3097a0c4faab9199
Clear filters https://github.com/lava/matplotlib-cpp/pull/166/files
Please reload this pagehttps://github.com/lava/matplotlib-cpp/pull/166/files
Please reload this pagehttps://github.com/lava/matplotlib-cpp/pull/166/files
.gitignore https://github.com/lava/matplotlib-cpp/pull/166/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
README.md https://github.com/lava/matplotlib-cpp/pull/166/files#diff-549baf4b2300e19b6400b465ecd39ef75bc87d7b6ef6b6eb8800c5658f9c4b89
CMakeLists.txt https://github.com/lava/matplotlib-cpp/pull/166/files#diff-e268c3f4f42af60152e91e0bb3c89bc81fa29606d63ca3e5ad346a08c37cc17f
README.md https://github.com/lava/matplotlib-cpp/pull/166/files#diff-ce3679b444c2e0e14ada226d32407e6ca7098dd04f61a8d0c55f5bfecf751b36
catch.hpp https://github.com/lava/matplotlib-cpp/pull/166/files#diff-cbb1503a5f5d7f070d6edceeffedd8c863285a29a434c9026414e6c28f8ee5bd
wave.png https://github.com/lava/matplotlib-cpp/pull/166/files#diff-bf9a10f4dff48cf663c9db101263f6e10cc43a7ef3f4d70c5572a07b791aa2fd
tu_main.cpp https://github.com/lava/matplotlib-cpp/pull/166/files#diff-1771dc5f943f68e615ef498bdfd8b0b5d20300f89e8858deb59675ae84fa0ebc
tu_matplotlibcpp.cpp https://github.com/lava/matplotlib-cpp/pull/166/files#diff-7dfe718622356e848b90b217bd33af0479990b02708d57ae4e8100d19154c0bb
variadic_examples.cpp https://github.com/lava/matplotlib-cpp/pull/166/files#diff-253cae287b469b992bd70336984cb952c94c83cc9658222eb064007343276330
matplotlibcpp.h https://github.com/lava/matplotlib-cpp/pull/166/files#diff-8a14deee5a355c1b1a87b6463b7e2e8efdcf65de53ec7a8f0d410033f98f1820
.gitignorehttps://github.com/lava/matplotlib-cpp/pull/166/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/lava/matplotlib-cpp/blob/e0a08c33ec5a7a2c9a408c2a3097a0c4faab9199/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lava/matplotlib-cpp/pull/166/{{ revealButtonHref }}
https://github.com/lava/matplotlib-cpp/pull/166/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
contrib/README.mdhttps://github.com/lava/matplotlib-cpp/pull/166/files#diff-549baf4b2300e19b6400b465ecd39ef75bc87d7b6ef6b6eb8800c5658f9c4b89
View file https://github.com/lava/matplotlib-cpp/blob/e0a08c33ec5a7a2c9a408c2a3097a0c4faab9199/contrib/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lava/matplotlib-cpp/pull/166/{{ revealButtonHref }}
https://github.com/lava/matplotlib-cpp/pull/166/files#diff-549baf4b2300e19b6400b465ecd39ef75bc87d7b6ef6b6eb8800c5658f9c4b89
contrib/unittests_catch2/CMakeLists.txthttps://github.com/lava/matplotlib-cpp/pull/166/files#diff-e268c3f4f42af60152e91e0bb3c89bc81fa29606d63ca3e5ad346a08c37cc17f
View file https://github.com/lava/matplotlib-cpp/blob/e0a08c33ec5a7a2c9a408c2a3097a0c4faab9199/contrib/unittests_catch2/CMakeLists.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lava/matplotlib-cpp/pull/166/{{ revealButtonHref }}
contrib/unittests_catch2/README.mdhttps://github.com/lava/matplotlib-cpp/pull/166/files#diff-ce3679b444c2e0e14ada226d32407e6ca7098dd04f61a8d0c55f5bfecf751b36
View file https://github.com/lava/matplotlib-cpp/blob/e0a08c33ec5a7a2c9a408c2a3097a0c4faab9199/contrib/unittests_catch2/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lava/matplotlib-cpp/pull/166/{{ revealButtonHref }}
Please reload this pagehttps://github.com/lava/matplotlib-cpp/pull/166/files
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.