{"id":25238598,"url":"https://github.com/andrewzhoumq123/sci_graph_api","last_synced_at":"2026-04-12T13:49:29.396Z","repository":{"id":276896073,"uuid":"930659601","full_name":"AndrewZhouMQ123/Sci_Graph_API","owner":"AndrewZhouMQ123","description":"Generates different types of detailed plots for scientific data","archived":false,"fork":false,"pushed_at":"2025-03-04T07:46:11.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T19:35:59.759Z","etag":null,"topics":["fastapi","h5py","json","matplotlib","numpy","pandas","scipy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrewZhouMQ123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-11T01:55:39.000Z","updated_at":"2025-03-04T07:46:14.000Z","dependencies_parsed_at":"2025-03-03T03:21:20.407Z","dependency_job_id":"f502ab41-65e7-4306-8041-4bad8f28eb13","html_url":"https://github.com/AndrewZhouMQ123/Sci_Graph_API","commit_stats":null,"previous_names":["andrewzhoumq123/sci_graph_api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewZhouMQ123%2FSci_Graph_API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewZhouMQ123%2FSci_Graph_API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewZhouMQ123%2FSci_Graph_API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewZhouMQ123%2FSci_Graph_API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewZhouMQ123","download_url":"https://codeload.github.com/AndrewZhouMQ123/Sci_Graph_API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393560,"owners_count":20931809,"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":["fastapi","h5py","json","matplotlib","numpy","pandas","scipy"],"created_at":"2025-02-11T17:52:20.836Z","updated_at":"2026-04-12T13:49:29.391Z","avatar_url":"https://github.com/AndrewZhouMQ123.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SCIENTIFIC GRAPH API\n\n- Generates data graphs and best fits plots by calling API endpoints with data files and parameters\n- Plots and fits are available as downloadable pdfs (best format for LaTeX)\n- Web version hosted on Vercel, URL: https://andrewsonlinenotes.vercel.app/utilities/1\n\n## General Guidelines\n\n- Acceptable data formats: csv, npy, npz, HDF5, JSON\n- First row of csv should be the headers (x labels, y labels etc)\n- Size Option: Single Column Plot (3.375 inches _ 3 inches), Double Column Plot (7 inches _ 3 inches)\n- Try to not have duplicate headers, Pandas automatically appends numbers to duplicate colummns, so if that is not what you want, try to have unique column headers\n\n# Plot API\n\n## Scatter Plot\n\n- **Endpoint:** `/plot/scatter`\n- **Format:** `x : y`\n- **Example Data:**  \n  ![data](/public/data.png)\n\n## Errorbar Plot\n\n- **Endpoints:**\n  - `/plot/errorbar1x` → `x : y : error x`\n  - `/plot/errorbar1y` → `x : y : error y`\n  - `/plot/errorbar2xy` → `x : y : error x : error y`\n\n## Bar Graph\n\n- **Endpoint:** `/plot/bar`\n- **Format:**\n  - Column 1: Data\n  - Column 2: Labels\n\n## Pie Chart\n\n- **Endpoint:** `/plot/pie`\n- **Format:**\n  - Column 1: Category\n  - Column 2: Percentage\n\n## Boxplot\n\n- **Endpoint:** `/plot/boxplot`\n- **Format:**\n  - Column 1: Category\n  - Column 2: Value\n\n## Single Histogram\n\n- **Endpoints:**\n  - `/plot/eqhistogram`\n  - `/plot/varyhistogram`\n- **Formats:**\n  - Single file → Data → Counts/Frequencies\n  - Two files → Data, Weights → Counts/Frequencies : Bins\n- **Other Parameters:**\n  - `bins`:\n    - Integer (e.g., `bins=10`): Automatically bins data into evenly spaced intervals.\n    - List (e.g., `bins=[1, 2, 5]`): Uses exact numbers for bin spacings.\n\n## Heatmap and Contour Map (CSV Format)\n\n- **Endpoints:**\n  - `/plot/imshowhmap`\n  - `/plot/pmeshhmap`\n  - `/plot/pmeshfunchmap`\n  - `/plot/imshowhmap`\n  - `/plot/contour`\n- **Data Format:**\n  - Matrices must have a single header value `\"m\"` to distinguish them from ordinary data.\n  - **Example Data:**  \n    ![matrix](/public/matrix.png)\n- **Normalization:**\n  - `\"minmax\"` or `\"zscore\"`\n- **Missing Values Handling:**\n  - `\"mean\"`, `\"median\"`, or `0`\n- **Colormap Selection:**\n  - Choose from: [Matplotlib Colormaps](https://matplotlib.org/stable/users/explain/colors/colormaps.html)\n  - **Heat Function:**\n  - Write your custom heat function.\n  - Only accepts x, y as variables and functions from numpy, scipy and python builtin\n- **Contour Levels:**\n  - Integer (e.g., `levels=10`): Automatically generates evenly spaced contour levels.\n  - List (e.g., `levels=[-1, 0, 1]`): Uses exact numbers as contour levels.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewzhoumq123%2Fsci_graph_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewzhoumq123%2Fsci_graph_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewzhoumq123%2Fsci_graph_api/lists"}