{"id":26160094,"url":"https://github.com/otvam/scatter_simplify_matlab","last_synced_at":"2025-04-14T11:21:37.312Z","repository":{"id":164277148,"uuid":"335924609","full_name":"otvam/scatter_simplify_matlab","owner":"otvam","description":"MATLAB Code for Simplifying Scatter Plots","archived":false,"fork":false,"pushed_at":"2024-12-18T04:44:22.000Z","size":1273,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T00:41:25.655Z","etag":null,"topics":["big-data","matlab","pareto-front","reduction","scatter-plot","simplify"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otvam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-02-04T10:52:23.000Z","updated_at":"2025-03-17T01:04:05.000Z","dependencies_parsed_at":"2024-06-27T22:50:53.393Z","dependency_job_id":null,"html_url":"https://github.com/otvam/scatter_simplify_matlab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otvam%2Fscatter_simplify_matlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otvam%2Fscatter_simplify_matlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otvam%2Fscatter_simplify_matlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otvam%2Fscatter_simplify_matlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otvam","download_url":"https://codeload.github.com/otvam/scatter_simplify_matlab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868843,"owners_count":21174769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["big-data","matlab","pareto-front","reduction","scatter-plot","simplify"],"created_at":"2025-03-11T11:59:45.730Z","updated_at":"2025-04-14T11:21:37.290Z","avatar_url":"https://github.com/otvam.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MATLAB Code for Simplifying Scatter Plots\n\n![license - BSD](https://img.shields.io/badge/license-BSD-green)\n![language - MATLAB](https://img.shields.io/badge/language-MATLAB-blue)\n![category - science](https://img.shields.io/badge/category-science-lightgrey)\n![status - unmaintained](https://img.shields.io/badge/status-unmaintained-red)\n\n**MATLAB scatter plots** with **millions of points** are slow and resource intensive.\nHowever, most of the points are not visible since they are hidden by other points.\nThis code detects which points are **hidden** and **remove** them.\n\nThe used **algorithm** is particularly **efficient** and can handle millions of points:\n* a pixel matrix is generated\n* the points are circle occupying a given number of pixels\n* the indices of the points are placed (in order) in the pixel matrix\n* the points that do not appear in the pixel matrix will be invisible in the plot\n* the invisible points are removed\n\nIn other words, this algorithm work as a virtual graphic buffer.\nThe plot is precomputed and invisible elements are deleted.\n\nThis algorithm (o(n) complexity) features several advantages:\n* no need to compute the distance between all the points\n* the memory requirement is linearly proportional to the number of pixels\n* the memory requirement is linearly proportional to the number of scatter points\n* computational cost is linearly proportional to the number of scatter points \n\nThis code has been successfully tested with **large datasets**:\n* this algorithm is vectorized and many points are treated together.\n* the number of points (chunk size) processed in a step can be selected.\n* 100'000'000 points can be simplified in several minutes\n\n## Example\n\nLook at the examples [run_example.m](run_example.m).\nA dataset with random points is successfully simplified (by a factor of 40) without changing the scatter plot result.\n\n\u003cp float=\"middle\"\u003e\n    \u003cimg src=\"readme_img/complete_dataset.png\" width=\"400\"\u003e\n    \u003cimg src=\"readme_img/simplified_dataset.png\" width=\"400\"\u003e\n\u003c/p\u003e\n\n## Compatibility\n\n* Tested with MATLAB R2018b.\n* No toolboxes are required.\n* Compatibility with GNU Octave not tested but probably easy to achieve.\n\n## Author\n\n**Thomas Guillod** - [GitHub Profile](https://github.com/otvam)\n\n## License\n\nThis project is licensed under the **BSD License**, see [LICENSE.md](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotvam%2Fscatter_simplify_matlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotvam%2Fscatter_simplify_matlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotvam%2Fscatter_simplify_matlab/lists"}