{"id":51815328,"url":"https://github.com/hellmrf/plotestrem","last_synced_at":"2026-07-21T23:39:02.040Z","repository":{"id":57453503,"uuid":"377979871","full_name":"hellmrf/plotestrem","owner":"hellmrf","description":"\"Plota esse trem aí, namoral\" is how a mineiro would say \"hey, please, plot this thing\". So it's exactly what Plotestrem do. LaTeX-friendly!","archived":false,"fork":false,"pushed_at":"2022-07-06T19:00:23.000Z","size":165,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-07-21T23:39:00.804Z","etag":null,"topics":["plotting","python3","science"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/plotestrem/","language":"Python","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/hellmrf.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}},"created_at":"2021-06-17T23:03:03.000Z","updated_at":"2022-02-08T19:46:20.000Z","dependencies_parsed_at":"2022-08-29T06:51:04.124Z","dependency_job_id":null,"html_url":"https://github.com/hellmrf/plotestrem","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hellmrf/plotestrem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellmrf%2Fplotestrem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellmrf%2Fplotestrem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellmrf%2Fplotestrem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellmrf%2Fplotestrem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellmrf","download_url":"https://codeload.github.com/hellmrf/plotestrem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellmrf%2Fplotestrem/sbom","scorecard":{"id":460255,"data":{"date":"2025-08-11","repo":{"name":"github.com/hellmrf/plotestrem","commit":"95a1188763dbf161cd671b2498c0558e144afb86"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.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":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"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":"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/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/hellmrf/plotestrem/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/hellmrf/plotestrem/python-publish.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand 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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE: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"}},{"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":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T10:55:54.687Z","repository_id":57453503,"created_at":"2025-08-19T10:55:54.687Z","updated_at":"2025-08-19T10:55:54.687Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35741142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-21T02:00:06.728Z","response_time":109,"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":["plotting","python3","science"],"created_at":"2026-07-21T23:39:01.250Z","updated_at":"2026-07-21T23:39:02.031Z","avatar_url":"https://github.com/hellmrf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plotestrem\n\n[![Python 3](https://img.shields.io/badge/python-3-blue?style=for-the-badge)](https://pypi.org/project/plotestrem)\n[![PyPI](https://img.shields.io/pypi/v/plotestrem?style=for-the-badge)](https://pypi.org/project/plotestrem)\n[![GPLv3.0](https://img.shields.io/github/license/hellmrf/plotestrem?style=for-the-badge)](https://www.gnu.org/licenses/gpl-3.0.en.html)\n\nSmall Python script for rapidly fitting data in the context of experimental sciences. With Plotestrem, you can easily fit (almost) any function and get a beautiful and scalable graphic. The axes are completely LaTeX-friendly, so you can use any packages you want. It also means you can use the same font as your main document.\n\nFor now, the equation is only generated for linear and exponential fitting, which should be sufficient for many applications. Maybe in the future I'll add more support.\n\nThis code is quite old, so it's not well-written, but it works.\n\n![Example](docs/example.png)\n## Usage\n\nYou'll need Python 3 installed and a LaTeX distribution (if you don't have, you can install or use [Google Colab](#google-colaboratory)). Then install the package:\n```shell\npip3 install plotestrem\n```\n\nOnce you have everything set up, open [`runner.py`](./runner.py), add your data and run.\n\nYeah, it have no interface. Maybe one day. Who knows.\n\n### Fitting types\nYou can fit the data using three builtin fitters, or provide your own function. You just need to pass `fit_type` accordingly.\n\n- `\"linear\"`: linear fit, will plot a line and show the parameters for the `y = a * x + b` equation;\n- `\"exp\"`: exponential fit, will plot the exponential function and show the parameters for the `y = a * exp(-b * x) + c` equation;\n- `\"none\"`: no fitting. It just skips the regression. Your data will be plotted as a scatter plot;\n- Lastly, you can provide a function (a lambda or just the name of an existing function, without the parenthesis) to be used in the fitting. For now, the program shows only the R² value (not the parameters) for user-defined functions, but this is an interesting feature to have in the future. Also, the function to be passed should be in the form `f(x, *fit)`, with `fit` being the coefficients. For example, a linear function would be passed as a `f(x, a, b)`.\n\n### Google Colaboratory\nYou _can_ use this package without installing anything (no LaTeX, no Python, nothing) on your machine. To do this, you can use [Google Colaboratory](https://colab.research.google.com/). As Colab has only the most famous packages pre-installed (and hasn't LaTeX), you'll have to run a little code to setup the environment. Just copy the following code in a cell and run, and then use normally, as you would do in your local machine.\n```\n!apt install texlive-latex-extra texlive-science cm-super dvipng\n!pip install plotestrem\n```\n\nI suggest using a relative path to save the file, so you can download the PDF going to Files.\nYou can get an working example [here](https://colab.research.google.com/drive/1wgI9LphKXKSPd4UrwDI_NfGGI6jJDIIS?usp=sharing), copy, and just edit for your needs.\n\nOnce you run the code, the graph will show up below the cell. It's a bitmap version of your graphics, but incredibly useful to see what's going on. After you have everything ok, just download the PDF file clicking on Files on Colab's left bar.\n## Why _Plotestrem_?\n\nIt's how a *mineiro* (native of Minas Gerais -- Brasil) would say \"Plot this thing\". [Here](https://translate.google.com/?source=osdd\u0026sl=pt\u0026text=plota+esse+trem) you can listen a canonical speech, but it's not correct (as it's not *mineiro*). [This one](https://translate.google.com/?source=osdd\u0026sl=pt\u0026text=plótêss+trem) is a little better.\n\n## Author\n\nDeveloped by [Heliton Martins](https://t.me/helitonmrf).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellmrf%2Fplotestrem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellmrf%2Fplotestrem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellmrf%2Fplotestrem/lists"}