Title: Incorrect plot when arguments are blocks of an Eigen::Matrix · Issue #2 · Cryoris/matplotlib-cpp · GitHub
Open Graph Title: Incorrect plot when arguments are blocks of an Eigen::Matrix · Issue #2 · Cryoris/matplotlib-cpp
X Title: Incorrect plot when arguments are blocks of an Eigen::Matrix · Issue #2 · Cryoris/matplotlib-cpp
Description: If I declare an Eigen::Matrix _2D_data; /* The initialization does not matter. The first row holds the x-coordinates, and the second row holds the y- coordinates. */ and I want to call plt::plot(_2D_data.row(1), _2D_data.row(2)); the res...
Open Graph Description: If I declare an Eigen::Matrix _2D_data; /* The initialization does not matter. The first row holds the x-coordinates, and the second row holds the y- coordinates. */ and I want to call plt::plot(_2...
X Description: If I declare an Eigen::Matrix _2D_data; /* The initialization does not matter. The first row holds the x-coordinates, and the second row holds the y- coordinates. */ and I want to call plt::plot(_2...
Opengraph URL: https://github.com/Cryoris/matplotlib-cpp/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect plot when arguments are blocks of an Eigen::Matrix","articleBody":"If I declare an\r\n\r\nEigen::Matrix _2D_data; /* The initialization does not matter. The first row holds the x-coordinates, and the second row holds the y- \r\n coordinates. */\r\n\r\nand I want to call\r\n\r\nplt::plot(_2D_data.row(1), _2D_data.row(2));\r\n\r\nthe resulting plot will not be correct. Around 50% of the points will have their coordinates reversed (the x-coordinates will become y-coordinates and vice-versa).\r\n\r\nTo correctly plot, I have to write:\r\n\r\nEigen::VectorX x_coords{ _2D_data.row(0) };\r\nEigen::VectorX y_coords{ _2D_data.row(1) };\r\n\r\nplt::plot(x_coords, y_coords);\r\n\r\nThanks for the otherwise great library!\r\n","author":{"url":"https://github.com/Lavinius","@type":"Person","name":"Lavinius"},"datePublished":"2022-01-17T14:37:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2/matplotlib-cpp/issues/2"}
| 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:f8b54601-dea0-8268-24a8-f47bed1a9dfe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A046:18E13:5CF5B1B:828EB22:6A572AED |
| html-safe-nonce | 7640fd88f97644d1f55175a490e09528b4f3398c508067761e7753b37b6539d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDQ2OjE4RTEzOjVDRjVCMUI6ODI4RUIyMjo2QTU3MkFFRCIsInZpc2l0b3JfaWQiOiI2NjMxMjY0ODMzNDY3MDAxNTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 330013505308c76995fd2eda349b5076f9a97272a12db95d09ed60c5d3576251 |
| hovercard-subject-tag | issue:1105936425 |
| 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/Cryoris/matplotlib-cpp/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ef58733fae9c331c3a3323ff7ef85afe640ef830fdaeb0077200aa74ee62cf5/Cryoris/matplotlib-cpp/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ef58733fae9c331c3a3323ff7ef85afe640ef830fdaeb0077200aa74ee62cf5/Cryoris/matplotlib-cpp/issues/2 |
| og:image:alt | If I declare an Eigen::Matrix _2D_data; /* The initialization does not matter. The first row holds the x-coordinates, and the second row holds the y- coordinates. */ and I want to call plt::plot(_2... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lavinius |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/Cryoris/matplotlib-cpp git https://github.com/Cryoris/matplotlib-cpp.git |
| octolytics-dimension-user_id | 5978796 |
| octolytics-dimension-user_login | Cryoris |
| octolytics-dimension-repository_id | 41151748 |
| octolytics-dimension-repository_nwo | Cryoris/matplotlib-cpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 24936365 |
| octolytics-dimension-repository_parent_nwo | lava/matplotlib-cpp |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width