{"id":21971582,"url":"https://github.com/mandarancio/plotty","last_synced_at":"2026-05-07T07:34:40.108Z","repository":{"id":142911198,"uuid":"103146511","full_name":"Mandarancio/Plotty","owner":"Mandarancio","description":"C++/GTK3 simple plot and math library","archived":false,"fork":false,"pushed_at":"2017-09-14T12:01:28.000Z","size":637,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T00:14:01.798Z","etag":null,"topics":["eigen","fft","gtk","images","math","matrix","plot"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mandarancio.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","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":"2017-09-11T14:30:47.000Z","updated_at":"2025-02-26T18:55:56.000Z","dependencies_parsed_at":"2023-05-07T09:31:09.742Z","dependency_job_id":null,"html_url":"https://github.com/Mandarancio/Plotty","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/Mandarancio%2FPlotty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mandarancio%2FPlotty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mandarancio%2FPlotty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mandarancio%2FPlotty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mandarancio","download_url":"https://codeload.github.com/Mandarancio/Plotty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245031509,"owners_count":20549925,"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":["eigen","fft","gtk","images","math","matrix","plot"],"created_at":"2024-11-29T14:52:28.668Z","updated_at":"2026-05-07T07:34:35.036Z","avatar_url":"https://github.com/Mandarancio.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plotty: a simple C++/GTK3 plot and math lib\n\nAuthor: Martino Ferrari \u003cmanda.mgf@gmail.com\u003e\n\n## Features\n\nCurrent fetures includes:\n\n- Simple plot with color, line and point style customization\n- Simple matrix viewer with different color map useful for images\n- Scale, label, grid customization, multiple figure\n- Export in PNG and PDF (vectorial)\n- Integration with Eigen3 C++ library, for fast matrix operations\n- Basic mathematics operation and function supported\n- FFT/IFFT and FFT2/IFFT implementation using FFTW3 library\n- Support of many image formats using CImg library\n\n## Build the library\n\nTo build the library simply type:\n\n```bash\ncmake .\nmake\n```\n\nThe dependencies are: gtkmm, cairomm, eigen, fftw, cimg.\n\n## Examples\n\nTo compute and plot a simple signal is quite simple:\n\n```c++\n#include \"plotty.h\"\n#include \"math.h\"\n#include \u003cEigen/Core\u003e\n#include \u003cgtkmm/application.h\u003e\n\nint main(int argc, char** argv)\n{\n\n  auto app = Gtk::Application::create(argc, argv, \"org.gtkmm.example\");\n\n  // create linear space to use as x vector\n  Eigen::VectorXd x = m::linspace(-1, 1, 100);\n  // compute a gaussian\n  Eigen::VectorXd gauss = m::exp(-(m::pow(x,2)));\n\n  // create the window figure\n  Figure f;\n\n  // plot the data\n  f.plt.plot(x, gauss, GREEN, 1.5, LS_DOTS_KEY, PS_DIAMOND, \"gauss\");\n  // show the legend\n  f.plt.legend();\n\n  return app-\u003erun(f);\n}\n```\n\nFew more examples are located in the folder examples of the project.\n\n## Screenshots\n\nA simple plot:\n\n![Simple plot](docs/ex_plot.png)\n\n2D Image:\n\n![Image](docs/imgage.png)\n\nMagnetude of the 2D fft of the image:\n\n![FFT2](docs/fft2.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandarancio%2Fplotty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandarancio%2Fplotty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandarancio%2Fplotty/lists"}