{"id":20163725,"url":"https://github.com/emik03/multiplotlines.lua","last_synced_at":"2026-05-13T03:08:01.330Z","repository":{"id":245004539,"uuid":"816973678","full_name":"Emik03/multiplotlines.lua","owner":"Emik03","description":"Lua port of esquellington's imgui_multiplotlines: Draw multiple plots at once with an optional legend and user interaction","archived":false,"fork":false,"pushed_at":"2025-05-19T14:40:27.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-27T13:32:47.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Emik03.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T18:54:19.000Z","updated_at":"2025-05-19T14:40:46.000Z","dependencies_parsed_at":"2024-11-14T00:31:33.103Z","dependency_job_id":"c66db423-6633-45df-aaaf-4cac7e4707d9","html_url":"https://github.com/Emik03/multiplotlines.lua","commit_stats":null,"previous_names":["emik03/multiplotlines.lua"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Emik03/multiplotlines.lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2Fmultiplotlines.lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2Fmultiplotlines.lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2Fmultiplotlines.lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2Fmultiplotlines.lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Emik03","download_url":"https://codeload.github.com/Emik03/multiplotlines.lua/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Emik03%2Fmultiplotlines.lua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32965838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"online","status_checked_at":"2026-05-13T02:00:07.132Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T00:31:20.345Z","updated_at":"2026-05-13T03:08:01.316Z","avatar_url":"https://github.com/Emik03.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multiplotlines.lua\n\n[![License](https://img.shields.io/github/license/Emik03/multiplotlines.lua.svg?color=6272a4\u0026style=for-the-badge)](https://github.com/Emik03/multiplotlines.lua/blob/main/LICENSE)\n\n---\n\nLua port of [esquellington's imgui_multiplotlines](https://github.com/esquellington/imgui_multiplotlines): `MultiPlotLines()` is a nearly drop-in alternative to vanilla `imgui.PlotLines()` in [Dear ImGui](https://github.com/ocornut/imgui) that allows drawing multiple channels simultaneously and adds some nice optional features on top.\n\nThis implementation assumes ImGui version 1.67.0, the same version the video game [Quaver](https://github.com/Quaver/Quaver) currently uses.\n\n---\n\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [License](#license)\n\n---\n\n## Usage\n\nTo use this library, either download [multiplotlines.lua](multiplotlines.lua) locally or use [Luaver](https://github.com/ESV-Sweetplum/Luaver) if you are writing a Quaver plugin, as this library is included.\n\nUse the function `MultiPlotLines`, and be sure to store and reuse `params` to maintain state:\n\n```lua\nlocal state = {}\n\nfunction draw()\n    imgui.Begin(\"Example\")\n\n    state = MultiPlotLines(\n        \"Example\", -- Header text is placed top-center of the plot.\n        {0, 9, 1, 8, 4, 6, 3, 7, 10, 2, 5, 8}, -- Either pass a table of numbers, a table of table of numbers, or a function.\n        nil, -- The context value used for any function callback, such as the above, or functions in 'params'.\n        4, -- The number of values per channel.\n        3, -- The number of channels.\n        state -- The layout parameters, alongside state information.\n    )\n\n    imgui.End()\nend\n```\n\nThe result should look like this:\n\n![example.png](demo/example.png)\n\nYou may also check out [plugin.lua](demo/plugin.lua) for examples, which showcases most parameters. \n\n## Contribute\n\nIssues and pull requests are welcome to help this repository be the best it can be.\n\n## License\n\nThis repository — which includes every source file separately — fall under the [MPL-2 license](https://www.mozilla.org/en-US/MPL/2.0/).\n\nYou may copy individual or multiple source files, granted that you keep the copyright license, and disclose the source back to this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femik03%2Fmultiplotlines.lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femik03%2Fmultiplotlines.lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femik03%2Fmultiplotlines.lua/lists"}