{"id":15716426,"url":"https://github.com/go-wyvern/gplot","last_synced_at":"2025-05-13T00:42:36.456Z","repository":{"id":45926470,"uuid":"422543027","full_name":"go-wyvern/gplot","owner":"go-wyvern","description":"plot - A Go+ drawing Engine  with a syntax similar to matlab","archived":false,"fork":false,"pushed_at":"2021-12-02T13:27:10.000Z","size":10696,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-04T21:45:37.868Z","etag":null,"topics":["gop","goplus","matlab","plot"],"latest_commit_sha":null,"homepage":"","language":"Go","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/go-wyvern.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}},"created_at":"2021-10-29T11:04:11.000Z","updated_at":"2023-09-06T02:00:53.000Z","dependencies_parsed_at":"2022-08-30T17:20:17.614Z","dependency_job_id":null,"html_url":"https://github.com/go-wyvern/gplot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-wyvern%2Fgplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-wyvern%2Fgplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-wyvern%2Fgplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-wyvern%2Fgplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-wyvern","download_url":"https://codeload.github.com/go-wyvern/gplot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221308058,"owners_count":16795553,"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":["gop","goplus","matlab","plot"],"created_at":"2024-10-03T21:45:37.131Z","updated_at":"2024-10-24T11:03:06.068Z","avatar_url":"https://github.com/go-wyvern.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gplot - A Go+ drawing Engine with a syntax similar to matlab\n\n========\n\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/go-wyvern/gplot)](https://goreportcard.com/report/github.com/go-wyvern/gplot)\n[![Language](https://img.shields.io/badge/language-Go+-blue.svg)](https://github.com/goplus/gop)\n[![GoDoc](https://pkg.go.dev/badge/github.com/goplus/gox.svg)](https://pkg.go.dev/mod/github.com/go-wyvern/gplot)\n\n## Tutorials\n\nHow to run gplot tutorials?\n\n* Download Go+ and build it. See https://github.com/goplus/gop#how-to-build. (Depends on Go+ ver 1.1 or higher)\n* Download gplot and build it.\n  * git clone `git@github.com:go-wyvern/gplot.git`\n  * cd gplot\n  * go install -v ./...\n* Build tutorials and run.\n  * cd tutorial/xxx\n  * gop run .\n\n### tutorial/01-single-plot\n\n![Screen Shot1](tutorial/01-single-plot/single-plot.png) \n\nThrough this example you can learn how to simply draw a line graph.\n\nHere are some codes in [index.plot](tutorial/01-single-plot/index.plot):\n\n```go\nx := linspace(0, 2*pi, 20)\ny := [sin(i) for i \u003c- x]\nplot(x, y)\n```\n\n### tutorial/02-multi-plot\n\n![Screen Shot1](tutorial/02-multil-plot/multi-plot.png)\n\nIn this example, we can learn how to draw multiple lines into one figure.\n\nHere are all the codes of [index.plot](tutorial/02-multi-plot/index.plot):\n\n```go\nx := linspace(0, 2*pi, 20)\ny1 := [sin(i) for i \u003c- x]\ny2 := [cos(i) for i \u003c- x]\nplot(x, y1, x, y2)\n```\n\n### tutorial/03-label-plot\n\n![Screen Shot1](tutorial/03-label-plot/label-plot.png)\n\nThrough this example, we can learn how to add names to axis.\n\nHere are some codes in [index.plot](tutorial/03-label-plot/index.plot):\n\n```go\nx := linspace(0, 2*pi, 20)\ny := [sin(i) for i \u003c- x]\nxlabel(\"x\")\nylabel(\"sin(x)\")\nplot(x, y)\n```\n\n### tutorial/04-subplot\n\n![Screen Shot1](tutorial/04-subplot/subplot.png)\n\nThrough this example, we can learn how to draw multiple axis into a figure.\n\nHere are some codes in [index.plot](tutorial/04-subplot/index.plot):\n\n\n```go\nx := linspace(0, 2*pi, 20)\ny1 := [sin(i) for i \u003c- x]\ny2 := [cos(i) for i \u003c- x]\ny3 := [i*i for i \u003c- x]\ny4 := [-1*i*i for i \u003c- x]\nsubplot(2,2,1)\nplot(x, y1)\nsubplot(2,2,2)\nplot(x, y2)\nsubplot(2,2,3)\nplot(x, y3)\nsubplot(2,2,4)\nplot(x, y4)\n```\n\n### tutorial/05-legend\n\n![Screen Shot1](tutorial/05-legend/legend.png)\n\nThrough this example, we can learn how to add legend to the axis.\n\nHere are some codes in [index.plot](tutorial/05-legend/index.plot):\n\n\n```go\nx := linspace(0, 2*pi, 20)\ny1 := [sin(i) for i \u003c- x]\ny2 := [cos(i) for i \u003c- x]\nlegend(\"sin(x)\", \"cos(x)\")\nplot(x, y1, x ,y2)\n```\n\n### tutorial/06-title\n\n![Screen Shot1](tutorial/06-title/title.png)\n\nThrough this example, we can learn how to add title to the axis.\n\nHere are some codes in [index.plot](tutorial/06-title/index.plot):\n\n\n```go\nx := linspace(0, 2*pi, 20)\ny := [sin(i) for i \u003c- x]\ntitle(\"this is title\")\nplot(x, y)\n```\n\n### tutorial/07-bar\n\n![Screen Shot1](tutorial/07-bar/bar.png)\n\nThrough this example, we can learn how to draw a bar\n\nHere are some codes in [index.plot](tutorial/06-bar/index.plot):\n\n\n```go\na := [1, 3, 5, 7, 11]\nb := [1, 3, 5, 7, 11]\nc := [1, 3, 5, 7, 11]\nnominalX(\"s1\", \"s2\", \"s3\", \"s4\")\nbar(a, b, c)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-wyvern%2Fgplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-wyvern%2Fgplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-wyvern%2Fgplot/lists"}