{"id":33936419,"url":"https://github.com/saona-raimundo/preexplorer","last_synced_at":"2026-04-06T07:01:46.569Z","repository":{"id":62442860,"uuid":"216785235","full_name":"saona-raimundo/preexplorer","owner":"saona-raimundo","description":"Externalize easily the plotting process from Rust to gnuplot.","archived":false,"fork":false,"pushed_at":"2026-02-10T14:30:36.000Z","size":947,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-10T18:57:06.709Z","etag":null,"topics":["gnuplot","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saona-raimundo.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-22T10:21:59.000Z","updated_at":"2026-02-10T14:31:14.000Z","dependencies_parsed_at":"2023-11-04T09:24:55.632Z","dependency_job_id":null,"html_url":"https://github.com/saona-raimundo/preexplorer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saona-raimundo/preexplorer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saona-raimundo%2Fpreexplorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saona-raimundo%2Fpreexplorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saona-raimundo%2Fpreexplorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saona-raimundo%2Fpreexplorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saona-raimundo","download_url":"https://codeload.github.com/saona-raimundo/preexplorer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saona-raimundo%2Fpreexplorer/sbom","scorecard":{"id":800189,"data":{"date":"2025-08-11","repo":{"name":"github.com/saona-raimundo/preexplorer","commit":"5593d69f8dccadc21666e2fc6fa6385df2bd2330"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/saona-raimundo/preexplorer/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/saona-raimundo/preexplorer/main.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T10:13:44.372Z","repository_id":62442860,"created_at":"2025-08-23T10:13:44.372Z","updated_at":"2025-08-23T10:13:44.372Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31463015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["gnuplot","rust"],"created_at":"2025-12-12T14:15:01.331Z","updated_at":"2026-04-06T07:01:46.560Z","avatar_url":"https://github.com/saona-raimundo.png","language":"Rust","funding_links":[],"categories":["Data Visualization"],"sub_categories":[],"readme":"# preexplorer\n\n[![Download](https://img.shields.io/crates/d/preexplorer)](https://crates.io/crates/preexplorer)\n[![License](https://img.shields.io/crates/l/preexplorer)](https://github.com/saona-raimundo/preexplorer)\n[![Docs](https://docs.rs/preexplorer/badge.svg)](https://docs.rs/preexplorer/)\n[![Crate](https://img.shields.io/crates/v/preexplorer.svg)](https://crates.io/crates/preexplorer)\n\n\n\nEasy plotter and saver of simple data. Handy tool for development stage or small computational projects. Save data, have a quick view and an initial [gnuplot](http://www.gnuplot.info/) script to plot it. \n\nIf you are looking for a pure Rust plotter, check out [`plotters`](https://crates.io/crates/plotters).\n\n# Purpose\n\nDo you have a costly process in Rust and want to save the data for postprocessing?\n\nWould you like to still have a basic glance to check it and leave fine-tuning of the plot for later?\n\nThis is the crate for you!\n\n# Work flow\n\n1. Compute your thing in Rust\n2. Pass the results to a suitable struct from ``preexplorer``, or use the ``preexplore`` method.\n3. Use the method ``plot`` or ``plot_later``. \n\nAfter ``cargo run``, your data is saved and a suitable first script for gnuplot to plot the data is saved. If you used ``plot``, you will get a plot by gnuplot that you can save. \n\nThe gnuplot script is located in \n\n``target\\\\preexplorer\\\\plots\\\\my_identifier.gnu``\n\nwhere ``my_identifier`` is the name you gave in rust to the plot. \n\nTherefore, to run it in gnuplot (and get the plot again), run from the console\n\n``gnuplot target\\\\preexplorer\\\\plots\\\\my_identifier.gnu``\n\n- Want a different plot? Change this file according to your needs and run again. \n\n- Want to use gnuplot as an interactive plotting engine? Run ``gnuplot`` in the console, copy and paste the script and keep going with your favorite gnuplot commands.\n\n# Main features\n\n- Easy plotting\n- Easy comparison\n- Implementable traits\n- Extensive documentation\n\n# Gallery\n\n## Sequences\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/sequence/main.rs\"\u003e\u003cimg src=\"examples/sequence/sequence.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/sequences/main.rs\"\u003e\u003cimg src=\"examples/sequences/sequences.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/sequence_bin/main.rs\"\u003e\u003cimg src=\"examples/sequence_bin/sequence_bin.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/sequence_bins/main.rs\"\u003e\u003cimg src=\"examples/sequence_bins/sequence_bins.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/sequence_error/main.rs\"\u003e\u003cimg src=\"examples/sequence_error/sequence_error.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/sequence_errors/main.rs\"\u003e\u003cimg src=\"examples/sequence_errors/sequence_errors.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/sequence_violin/main.rs\"\u003e\u003cimg src=\"examples/sequence_violin/sequence_violin.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/sequence_violins/main.rs\"\u003e\u003cimg src=\"examples/sequence_violins/sequence_violins.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n## Processes\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/process/main.rs\"\u003e\u003cimg src=\"examples/process/process.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/processes/main.rs\"\u003e\u003cimg src=\"examples/processes/processes.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/process_bin/main.rs\"\u003e\u003cimg src=\"examples/process_bin/process_bin.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/process_bins/main.rs\"\u003e\u003cimg src=\"examples/process_bins/process_bins.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/process_error/main.rs\"\u003e\u003cimg src=\"examples/process_error/process_error.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/process_errors/main.rs\"\u003e\u003cimg src=\"examples/process_errors/process_errors.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/process_violin/main.rs\"\u003e\u003cimg src=\"examples/process_violin/process_violin.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/process_violins/main.rs\"\u003e\u003cimg src=\"examples/process_violins/process_violins.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n## Densities\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/density/main.rs\"\u003e\u003cimg src=\"examples/density/density.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/densities/main.rs\"\u003e\u003cimg src=\"examples/densities/densities.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n## Heatmaps\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/heatmap/main.rs\"\u003e\u003cimg src=\"examples/heatmap/heatmap.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/heatmaps/main.rs\"\u003e\u003cimg src=\"examples/heatmaps/heatmaps.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\n\n## Contour\n\u003ca href=\"https://github.com/saona-raimundo/preexplorer/blob/master/examples/contour/main.rs\"\u003e\u003cimg src=\"examples/contour/contour.png\" class=\"galleryItem\" width=200px\u003e\u003c/img\u003e\u003c/a\u003e\t\n\nFor more, see the folder [examples](https://github.com/saona-raimundo/preexplorer/tree/master/examples). \n\n# Installation\n\n- Download and [install gnuplot](http://www.gnuplot.info/download.html), a command line engine for plotting. (Note that the gnuplot project has nothing to do with GNU).\n- Add ``preexplorer = \"*\"`` to your ``Cargo.toml`` file under ``[dependencies]``.\n- I suggest to simply go with ``use preexplorer::prelude::*;`` in your binary, and then use the short-name ``pre::...`` and the ``preexplore`` method directly in iterators and tuple of iterators.\n\n\n# Q \u0026 A\n\n1. When comparing processes (`Process`-related structs), why must they be the same structs? \n   The comparison of processes (`Processes`-related structs) are a collection of processes. As such, it works as `Vec\u003cProcess\u003e`, so two process structs must be the same type to be compared.\n2. Are there n-dimensional variants?\n   No, it is out of scope. If you want to implement similar functionalities, you can do so easily based on the source code for `Data`. \n3. How to deactivate some options, e.g. tics?\n   All structs implement the trait `Configurable`. Each option has documented how to disable it in its corresponding method.\n\n# Disclaimer\n\nThere is no connection with the gnuplot project.\n\n\n\n# Changelog\n\nSee [Changelog](https://github.com/saona-raimundo/preexplorer/blob/master/Changelog.md).\n\n# References\n\n- [Overview: What should a good plot look like?](https://clauswilke.com/dataviz/)\n- [Choosing colors blog post](https://www.storytellingwithdata.com/blog/2020/5/6/picking-the-right-colors)\n- [Color scheme designer](https://paletton.com)\n\n\n# For the reader\n\nHas this project been useful to you? How? :)\nLet me know through a github issue!\n\n# Similar crates\n\n- [debug_plotter](https://crates.io/crates/debug_plotter)\n    + Convenient macro to quickly plot variables using pure Rust `plotters` crate\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaona-raimundo%2Fpreexplorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaona-raimundo%2Fpreexplorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaona-raimundo%2Fpreexplorer/lists"}