{"id":25189012,"url":"https://github.com/yuricst/plotlab","last_synced_at":"2026-01-18T03:18:45.405Z","repository":{"id":129132705,"uuid":"579862995","full_name":"Yuricst/PLOTLAB","owner":"Yuricst","description":"Pour l'amour du plot","archived":false,"fork":false,"pushed_at":"2023-05-17T04:28:56.000Z","size":7418,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T10:16:33.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Julia","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/Yuricst.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-12-19T05:50:44.000Z","updated_at":"2023-02-01T22:18:53.000Z","dependencies_parsed_at":"2025-02-09T20:45:55.330Z","dependency_job_id":null,"html_url":"https://github.com/Yuricst/PLOTLAB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Yuricst/PLOTLAB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2FPLOTLAB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2FPLOTLAB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2FPLOTLAB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2FPLOTLAB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yuricst","download_url":"https://codeload.github.com/Yuricst/PLOTLAB/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuricst%2FPLOTLAB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28528036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":[],"created_at":"2025-02-09T20:35:00.098Z","updated_at":"2026-01-18T03:18:45.380Z","avatar_url":"https://github.com/Yuricst.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PLOTLAB - making beautiful trajectory (+other) plots on Julia using the MATLAB engine\n\n[Documentation](https://yuricst.github.io/PLOTLAB/) (For full version, run `make.jl` in `docs`).\n\nNote: to view full API information, build documentation by running `julia docs/make.jl`\n\n\n`PLOTLAB` provides quick recipes for plotting trajectories using the MATLAB engine.\n`PLOTLAB.jl` is a Julia wrapper to these MATLAB routines for generating plots directly from Julia, based on [`MATLAB.jl`](https://github.com/JuliaInterop/MATLAB.jl).\n\n\n## MATLAB requirements\n\n- MATLAB license\n- MATLAB version: developed on 2020a\n- Toolboxes: Mapping Toolbox (for `plot_earth_geoid()` function)\n\n## Usage via Julia\n\n1. Make sure `MATLAB.jl` works on local Julia environment (install MATLAB, install `csh`)\n2. `git clone` this repository \u0026 `cd` into `PLOTLAB`, then on Julia REPL `]dev .`\n3. `using PLOTLAB` or `import PLOTLAB`\n\n#### Julia Depenencies\n- `MATLAB.jl`, `DocStringExtensions`\n\n\n## Features (for plotting from Julia)\n\n- [x] 3D line plot: `plot3`\n- [x] 3D quiver plot: `quiver3`\n- [x] Color syntax (MATLAB/Julia syntax)\n- [x] 3D Plot geoid (need Mapping Toolbox)\n- [x] 3D Plot Moon\n- [ ] 3D scatter plot: `scatter3`\n\n### Creating a figure\n\nCreating a new MATLAB figure is as easy as\n\n```julia\nPLOTLAB.figure()\n```\n\nThe `PLOTLAB.figure()` accepts optional parameters of the figure; here are some useful ones:\n\n- `view::Int`: 2 for 2D, 3 for 3D view plot\n- `axis_equal::Bool`: whether to set equal axes\n- `xlabel::String`, `ylabel::String`, `zlabel::String`: names of axes\n- `xlim::Vector{Real}`, `ylim::Vector{Real}`, `zlim::Vector{Real}`: limits on axes\n\n\n### Choosing colors\n\nSo many options for defining colors of your plots!\n\n```julia\ncolor_list = cgrad(:hawaii)   # define a color palette alla moda di julia's plots\n\nPLOTLAB.plot3(traj1[1,:], traj1[2,:], traj1[3,:], lw=1.5, color=\"blue\")           # MATLAB color names\nPLOTLAB.plot3(traj2[1,:], traj2[2,:], traj2[3,:], lw=1.5, color=:gold)            # Julia color symbol\nPLOTLAB.plot3(traj3[1,:], traj3[2,:], traj3[3,:], lw=1.5, color=[1.0, 0.0, 0.0])  # vector [r,g,b]\nPLOTLAB.plot3(traj4[1,:], traj4[2,:], traj4[3,:], lw=1.5, color=color_list[1])    # color object\n```\n\n\n#### Examples\n\n```julia\nimport PLOTLAB\n\nPLOTLAB.close_all()     # close all figure\nfig = PLOTLAB.figure(\n\t3,\n\tsize=[200,200,500,500],\n\tbox=true\n)                       # create new figure\n\n# plot Earth\nticks = [-1.5, -1.0, -0.5, 0, 0.5, 1.0, 1.5]\nPLOTLAB.plot_earth_geoid(1.0, ticks)\n\n# save\nPLOTLAB.saveas(fig, \"example_geoid.png\")\n```\n\n- See `./examples` for more\n\n## Usage via MATLAB\n\nThe MATLAB routines can of course be used directly by adding path.\n\n1. `git clone` this repository\n2. `addpath` to the `src/matlab` directory in MATLAB, i.e.\n\n```matlab\naddpath('/path/to/PLOTLAB/src/matlab')\n```\n\n\n## Gallery\n\n- Geoid plot\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./examples/example_geoid.png\" width=\"550\" title=\"example_geoid\"\u003e\n\u003c/p\u003e\n\n\n- Moon plot\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./examples/example_moon.png\" width=\"550\" title=\"example_moon\"\u003e\n\u003c/p\u003e\n\n- 3D quiver\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./examples/example_quiver3.png\" width=\"550\" title=\"example_quiver3\"\u003e\n\u003c/p\u003e\n\n- Tweaking colors\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./examples/example_color.png\" width=\"550\" title=\"example_color\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuricst%2Fplotlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuricst%2Fplotlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuricst%2Fplotlab/lists"}