Title: matplotlib eventplot not shows all the binary data for big number of events · Issue #20243 · matplotlib/matplotlib · GitHub
Open Graph Title: matplotlib eventplot not shows all the binary data for big number of events · Issue #20243 · matplotlib/matplotlib
X Title: matplotlib eventplot not shows all the binary data for big number of events · Issue #20243 · matplotlib/matplotlib
Description: Bug report Bug summary I noticed that when using eventplot to plot a big number of events, the plot doesn't shows all the binary data available, and is needed to increase the linelenghts parameter to increase the number of lines in the p...
Open Graph Description: Bug report Bug summary I noticed that when using eventplot to plot a big number of events, the plot doesn't shows all the binary data available, and is needed to increase the linelenghts parameter ...
X Description: Bug report Bug summary I noticed that when using eventplot to plot a big number of events, the plot doesn't shows all the binary data available, and is needed to increase the linelenghts parame...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20243
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"matplotlib eventplot not shows all the binary data for big number of events","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nI noticed that when using eventplot to plot a big number of events, the plot doesn't shows all the binary data available, and is needed to increase the `linelenghts` parameter to increase the number of lines in the plot.\r\n\r\n**Code for reproduction**\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\n#simulate some raster (is needed for the number of events to be high\r\n#I noticed missing lines for n_events \u003e 200)\r\ndata = [np.random.random(np.random.randint(10)) for i in range(500)]\r\nfig,axes = plt.subplots(2)\r\naxes[0].eventplot(data,linelength = 1)\r\naxes[1].eventplot(data,linelength = 2)\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n\r\n\r\n\r\n**Expected outcome**\r\nI would expect to have all the binary data plotted in the figure\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Arch Linux\r\n * Matplotlib version (`import matplotlib; print(matplotlib.__version__)`): 3.3.2\r\n * Matplotlib backend (`print(matplotlib.get_backend())`):module://ipykernel.pylab.backend_inline\r\n * Python version: 3.8.5\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/lorenzgutierrez","@type":"Person","name":"lorenzgutierrez"},"datePublished":"2021-05-16T20:38:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/20243/matplotlib/issues/20243"}
| 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:b86806f1-b516-dcc0-202c-ebbac15e1a76 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4E4:276C72:29DEEA8:390C7A8:6A53BDE6 |
| html-safe-nonce | 94ad723963db8e48a7dcc3e020bd03c938eea2c0ce8e426ea38bf01016628a7c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEU0OjI3NkM3MjoyOURFRUE4OjM5MEM3QTg6NkE1M0JERTYiLCJ2aXNpdG9yX2lkIjoiMzM4OTQwNzA2MDEzMTI5ODc5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd22ab8b1ccc581fa237d2150606d9c8d4bfb3e758c602df359725fc3f9a8e26 |
| hovercard-subject-tag | issue:892754864 |
| 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/20243/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc408d7636457943128c0319c52865c4f92af0fab1787522e37e72108a610404/matplotlib/matplotlib/issues/20243 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc408d7636457943128c0319c52865c4f92af0fab1787522e37e72108a610404/matplotlib/matplotlib/issues/20243 |
| og:image:alt | Bug report Bug summary I noticed that when using eventplot to plot a big number of events, the plot doesn't shows all the binary data available, and is needed to increase the linelenghts parameter ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lorenzgutierrez |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width