{"id":30820866,"url":"https://github.com/muichi-mon/fxplot","last_synced_at":"2026-05-16T08:04:17.344Z","repository":{"id":310172743,"uuid":"1037877950","full_name":"muichi-mon/fxplot","owner":"muichi-mon","description":"A simple JavaFX-based plotting library for quick and easy data-visualization.","archived":false,"fork":false,"pushed_at":"2025-08-16T07:20:19.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-16T09:13:48.851Z","etag":null,"topics":["data-visualization","javafx","plot","series-data"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muichi-mon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-14T09:03:43.000Z","updated_at":"2025-08-16T07:20:23.000Z","dependencies_parsed_at":"2025-08-16T09:25:45.432Z","dependency_job_id":null,"html_url":"https://github.com/muichi-mon/fxplot","commit_stats":null,"previous_names":["muichi-mon/fxplot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/muichi-mon/fxplot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muichi-mon%2Ffxplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muichi-mon%2Ffxplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muichi-mon%2Ffxplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muichi-mon%2Ffxplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muichi-mon","download_url":"https://codeload.github.com/muichi-mon/fxplot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muichi-mon%2Ffxplot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273887936,"owners_count":25185779,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":["data-visualization","javafx","plot","series-data"],"created_at":"2025-09-06T10:03:28.701Z","updated_at":"2026-05-16T08:04:12.307Z","avatar_url":"https://github.com/muichi-mon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FXPlot\n\nFXPlot is a **simple JavaFX-based plotting library** inspired by Python's Matplotlib.  \nIt allows you to quickly create **line plots, scatter plots, and histograms** in Java using JavaFX.  \n\n---\n\n## Features\n\n- **Line plots** (`\"l\"`)\n- **Scatter plots** (`\"s\"`)\n- **Histograms** (`\"h\"`)\n- Automatic **JavaFX runtime initialization**\n- Easy API for adding numeric or categorical data\n- Series labeling in charts\n- Each call to `figure.show()` opens a **new window**\n\n---\n\n## Project Structure\n\n```\nfxplot/\n├── src/main/java/io/github/rajveer/fxplot/\n│ └── Figure.java # Main plotting class\n├── pom.xml # Maven project file\n└── README.md # This file\n```\n\n\n---\n\n## Usage\n\n### Line Plot\n\n```java\nimport io.github.rajveer.fxplot.Figure;\nimport java.util.*;\n\npublic class Main {\n    public static void main(String[] args) {\n        Figure figure1 = new Figure(\"Test Figure 1\", \"l\"); // \"l\" = line plot\n        figure1.setXLabel(\"X-axis\");\n        figure1.setYLabel(\"Y-axis\");\n\n        List\u003cdouble[]\u003e sinSeries = new ArrayList\u003c\u003e();\n        List\u003cdouble[]\u003e cosSeries = new ArrayList\u003c\u003e();\n\n        for (int t = 0; t \u003c 100; t++) {\n            sinSeries.add(new double[]{t, Math.sin(t * 0.1)});\n            cosSeries.add(new double[]{t, Math.cos(t * 0.1)});\n        }\n\n        figure1.addNumericSeries(\"sin(t)\", sinSeries);\n        figure1.addNumericSeries(\"cos(t)\", cosSeries);\n\n        figure1.show();\n    }\n}\n```\n![Line Plot](src/main/resources/io/github/rajveer/fxplot/line.png)\n### Scatter Plot\n\n```java\nimport io.github.rajveer.fxplot.Figure;\nimport java.util.*;\n\npublic class Main {\n    public static void main(String[] args) {\n        Figure figure2 = new Figure(\"Test Figure 2\", \"s\"); // \"s\" = scatter plot\n        figure2.setXLabel(\"Height\");\n        figure2.setYLabel(\"Weight\");\n\n        List\u003cdouble[]\u003e heightWeightSeries = new ArrayList\u003c\u003e();\n        heightWeightSeries.add(new double[]{150.0, 50.0});\n        heightWeightSeries.add(new double[]{160.0, 55.0});\n        heightWeightSeries.add(new double[]{165.0, 62.0});\n        heightWeightSeries.add(new double[]{170.0, 68.0});\n        heightWeightSeries.add(new double[]{175.0, 75.0});\n        heightWeightSeries.add(new double[]{180.0, 82.0});\n        heightWeightSeries.add(new double[]{185.0, 90.0});\n        heightWeightSeries.add(new double[]{190.0, 95.0});\n\n        figure2.addNumericSeries(\"Height-Weight\", heightWeightSeries);\n\n        figure2.show();\n    }\n}\n```\n![Scatter Plot](src/main/resources/io/github/rajveer/fxplot/scatter.png)\n### Histogram\n```java\nimport io.github.rajveer.fxplot.Figure;\nimport java.util.*;\n\npublic class Main {\n    public static void main(String[] args) {\n        Figure figure3 = new Figure(\"Test Figure 3\", \"h\"); // \"h\" = histogram\n        figure3.setXLabel(\"Colors\");\n\n        List\u003cString\u003e colorSeries = Arrays.asList(\n            \"yellow\", \"blue\", \"red\", \"yellow\", \"green\", \"yellow\", \"red\",\n            \"blue\", \"yellow\", \"green\", \"red\", \"yellow\", \"blue\", \"yellow\",\n            \"green\", \"yellow\", \"red\", \"blue\", \"yellow\", \"green\", \"yellow\",\n            \"red\", \"blue\", \"yellow\", \"green\"\n        );\n\n        figure3.addCategorySeries(\"Colors\", colorSeries);\n\n        figure3.show();\n    }\n}\n```\n![Histogram Plot](src/main/resources/io/github/rajveer/fxplot/histogram.png)\n\n## API Reference\n\n| Method                                                    | Description                               |\n| --------------------------------------------------------- | ----------------------------------------- |\n| `setXLabel(String label)`                                 | Set the X-axis label                      |\n| `setYLabel(String label)`                                 | Set the Y-axis label                      |\n| `addNumericSeries(String name, List\u003cdouble[]\u003e data)`      | Add numeric series for line/scatter plots |\n| `addCategorySeries(String name, List\u003cString\u003e categories)` | Add categorical series for histograms     |\n| `show()`                                                  | Display the chart in a new JavaFX window  |\n\n---\n# FXPlot\n\nA simple JavaFX plotting utility inspired by Matplotlib.\n\n## Local Installation\n\nSince FXPlot is not yet published to Maven Central, you can build and install it locally:\n\n```bash\nmvn clean install\n```\nJitPack builds your GitHub repository into a Maven-compatible artifact on demand. To use it:\n```xml\n\u003crepositories\u003e\n  \u003crepository\u003e\n    \u003cid\u003ejitpack.io\u003c/id\u003e\n    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n  \u003c/repository\u003e\n\u003c/repositories\u003e\n```\nThen add the dependency in your project:\n```xml\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.muichi-mon\u003c/groupId\u003e\n    \u003cartifactId\u003efxplot\u003c/artifactId\u003e\n    \u003cversion\u003emaster-SNAPSHOT\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\nIf your project uses the Java module system, add the following line in your module-info.java:\n```java\nmodule your.module.name {\n    requires io.github.rajveer.fxplot;\n}\n```\n## ⚠️ Keep in mind:\n#### FXPlot works in JavaFX projects, so make sure you have the necessary JavaFX dependencies and modules added to your project setup.\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuichi-mon%2Ffxplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuichi-mon%2Ffxplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuichi-mon%2Ffxplot/lists"}