{"id":18595708,"url":"https://github.com/zncl2222/plotgms","last_synced_at":"2025-11-02T05:30:35.370Z","repository":{"id":128933322,"uuid":"497928763","full_name":"Zncl2222/PlotGMS","owner":"Zncl2222","description":"A plotting app made by pynecone","archived":false,"fork":false,"pushed_at":"2023-04-26T15:48:45.000Z","size":1321,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-26T21:07:52.875Z","etag":null,"topics":["plot","plotly","pynecone","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Zncl2222.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}},"created_at":"2022-05-30T12:14:47.000Z","updated_at":"2023-04-25T15:35:52.000Z","dependencies_parsed_at":"2023-05-21T09:30:51.689Z","dependency_job_id":null,"html_url":"https://github.com/Zncl2222/PlotGMS","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zncl2222%2FPlotGMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zncl2222%2FPlotGMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zncl2222%2FPlotGMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zncl2222%2FPlotGMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zncl2222","download_url":"https://codeload.github.com/Zncl2222/PlotGMS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239379323,"owners_count":19628684,"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":["plot","plotly","pynecone","python"],"created_at":"2024-11-07T01:20:48.115Z","updated_at":"2025-11-02T05:30:35.268Z","avatar_url":"https://github.com/Zncl2222.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PlotGMS\n\n\n**PlotGMS** is a program used to visualize data quickly. Originally developed using the [Flask](https://github.com/pallets/flask) framework, it was only available to the GeoHydraulic laboratory as a fast way to visualize GMS model results using [Matplotlib](https://github.com/matplotlib/matplotlib). However, **PlotGMS** has now been refactored using the new Python web framework [Pynecone](https://github.com/pynecone-io/pynecone). In addition to the original plotting functions for GMS, it also provides some common visualization APIs. Users can simply upload files containing data in txt or csv format. Currently, **PlotGMS** only provides charts drawn using the [Plotly](https://github.com/plotly/plotly.py) plotting package, but in the future, other plotting packages such as [Matplotlib](https://github.com/matplotlib/matplotlib) may be added to provide users with more choices.\n\n\n\n## Preview\n\u003cimg src='figure/plotgms.png'\u003e\n\n## How to use\n\nThe live demo will be avaliabled soon. You can now choose to deploy on your local machine by running pynecone directly or running on the container (docker).\n\n### Installation (running with pynecone)\nYou can run plotgms with python and pynecone directly\n#### Prequest\nPynecone has version restrictions for the use of Python and Node.js as follows.\n- Python3.7+\n- Node.js 12.22.0+\n\nClone this repository\n```bash\ngit clone https://github.com/Zncl2222/PlotGMS.git\n```\nIf you using pipenv as your virtual enviroment tools, than you can just running following commands to complete the installation\n```bash\n# Create virtual enviroment\n# Remember to change python version in Pipfile if you were not py3.11\npipenv shell\n# Install packages\npipenv install\n```\nOr you can use pip to install\n```bash\npip install -r requirements.txt\n```\n\nInitialize pynecone project\n```bash\npc init\n```\n\nBefore you run app, you should create .env file in you project root directory. All the requirements env are listed in env_example file. For example\n```\n# .env\nAPI_URL=\"http://localhost:8000\"\nBACKEND_PORT=\"8000\"\nFRONTEND_PORT=\"3000\"\nMODE=\"DEV\"\n```\n\nRun app\n```bash\npc run\n```\n\n### Installation (running with docker)\n\n\u003ch4 align=\"center\"\u003e\n\n\u003e__Warning__\u003cbr\u003e\n\u003e pynecone have some problems when runing PROD mode in container, thus now docker is setted to run in dev mode\n\n\u003c/h4\u003e\n\nIf you want to running this app in a conatainer, this project offer a dockerfile to build plotgms easily.\n#### Prequest\n- Docker or DockerDesktop\n\nClone this repository\n```bash\ngit clone https://github.com/Zncl2222/PlotGMS.git\n```\n\nBefore you build docker image, you should create .env file in you project root directory. All the requirements env are listed in env_example file. For example\n```\n# .env\nAPI_URL=\"http://localhost:8000\"\nBACKEND_PORT=\"8000\"\nFRONTEND_PORT=\"3000\"\nMODE=\"DEV\"\n```\n\nBuild docker image with followning command in propject root directory\n```bash\ndocker build -t plotgms-app:latest .\n```\n\nRun docker container\n```bash\ndocker run -d -p 3000:3000 -p 8000:8000 --name plotgms plotgms-app:latest\n```\n\nFinally you can connect to plotgms with the link http://localhost:3000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzncl2222%2Fplotgms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzncl2222%2Fplotgms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzncl2222%2Fplotgms/lists"}