{"id":16457229,"url":"https://github.com/briochemc/juliaproplotexamples","last_synced_at":"2025-03-06T04:32:36.704Z","repository":{"id":96788369,"uuid":"258424012","full_name":"briochemc/JuliaProPlotExamples","owner":"briochemc","description":"The proplot examples translated to Julia using PyCall.jl and PyPlot.jl.","archived":false,"fork":false,"pushed_at":"2020-05-07T07:14:10.000Z","size":1397,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T10:29:57.320Z","etag":null,"topics":["cartopy","examples","julia","julialang","maps","matplotlib","plots","plotting","proplot","publication","publication-quality-plots","pycall","pyplot","python","tutorials"],"latest_commit_sha":null,"homepage":null,"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/briochemc.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":"2020-04-24T06:18:37.000Z","updated_at":"2024-05-23T05:54:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"8aef5374-2911-429e-878a-fe132ad476b4","html_url":"https://github.com/briochemc/JuliaProPlotExamples","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.08333333333333337,"last_synced_commit":"631a21f884cdc5e6cd50beb87bae2238face9ed3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briochemc%2FJuliaProPlotExamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briochemc%2FJuliaProPlotExamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briochemc%2FJuliaProPlotExamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briochemc%2FJuliaProPlotExamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/briochemc","download_url":"https://codeload.github.com/briochemc/JuliaProPlotExamples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":220747323,"owners_count":16696523,"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":["cartopy","examples","julia","julialang","maps","matplotlib","plots","plotting","proplot","publication","publication-quality-plots","pycall","pyplot","python","tutorials"],"created_at":"2024-10-11T10:29:58.293Z","updated_at":"2024-10-20T14:11:04.716Z","avatar_url":"https://github.com/briochemc.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Julia ProPlot Examples\n\nHere you will find some (most?) of the [ProPlot](https://proplot.readthedocs.io/en/latest/index.html) examples from the documentation, but translated to Julia using [PyCall.jl](https://github.com/JuliaPy/PyCall.jl).\n\nNote you must install ProPlot first. (And probably some other things.)\n* In order to get the colorbars to position/work properly, you need `xarray`.  However, note that this causes glitches in LaTex formmatting (i.e. `xlabel=L\"$\\tau$\"` doesn't work anymore.\n* In order to address the above, you need to install and use the Julia Package `LaTeXStrings.jl`.  This package is inbuilt into `PyPlot.jl` and reexported for use, however here you must call it explicitly via `using LaTeXStrings`\n\n---\n\nClick on the images below to be directed to the julia code that produced it. \n\n## Basics\n\n### Figures and subplots\n\n\n[\u003cimg src=\"figs/Figures-and-subplots-1.svg\" width=30%\u003e\n\u003cimg src=\"figs/Figures-and-subplots-2.svg\" width=30%\u003e\n\u003cimg src=\"figs/Figures-and-subplots-3.svg\" width=30%\u003e](src/basics/Figures-and-subplots.jl)\n\n### Formatting subplots\n\n[\u003cimg src=\"figs/Formatting-subplots.svg\" width=50%\u003e](src/basics/Formatting-subplots.jl)\n\n### Changing rc settings\n\n[\u003cimg src=\"figs/Changing-rc-settings.svg\" width=50%\u003e](src/basics/Changing-rc-settings.jl)\n\n### Subplot grids\n\n[\u003cimg src=\"figs/Subplot-grids.svg\" width=50%\u003e](src/basics/Subplot-grids.jl)\n\n## Subplots features\n\n### Automatic figure sizing\n\n[\u003cimg src=\"figs/Automatic-figure-sizing-1a.svg\" width=40%\u003e\n\u003cimg src=\"figs/Automatic-figure-sizing-1b.svg\" width=40%\u003e](src/subplots/Automatic-figure-sizing-1.jl)\n\n[\u003cimg src=\"figs/Automatic-figure-sizing-2a-1.svg\" width=24%\u003e\n\u003cimg src=\"figs/Automatic-figure-sizing-2a-2.svg\" width=24%\u003e\n\u003cimg src=\"figs/Automatic-figure-sizing-2b-1.svg\" width=24%\u003e\n\u003cimg src=\"figs/Automatic-figure-sizing-2b-2.svg\" width=24%\u003e](src/subplots/Automatic-figure-sizing-2.jl)\n\n[\u003cimg src=\"figs/Automatic-figure-sizing-3a-1.svg\" width=24%\u003e\n\u003cimg src=\"figs/Automatic-figure-sizing-3a-2.svg\" width=24%\u003e\n\u003cimg src=\"figs/Automatic-figure-sizing-3b-1.svg\" width=24%\u003e\n\u003cimg src=\"figs/Automatic-figure-sizing-3b-2.svg\" width=24%\u003e](src/subplots/Automatic-figure-sizing-3.jl)\n\n### Automatic subplot spacing\n\n[\u003cimg src=\"figs/Automatic-subplot-spacing-1.svg\" width=40%\u003e](src/subplots/Automatic-subplot-spacing-1.jl)\n[\u003cimg src=\"figs/Automatic-subplot-spacing-2.svg\" width=40%\u003e](src/subplots/Automatic-subplot-spacing-2.jl)\n\n### Arbitrary physical units\n\n[\u003cimg src=\"figs/Arbitrary-physical-units.svg\" width=50%\u003e](src/subplots/Arbitrary-physical-units.jl)\n\n### Subplot numbers and a-b-c labels\n\n[\u003cimg src=\"figs/Subplot-numbers-and-a-b-c-labels.svg\" width=50%\u003e](src/subplots/Subplot-numbers-and-a-b-c-labels.jl)\n\n### Shared and spanning labels\n\n[\u003cimg src=\"figs/Shared-and-spanning-labels-1a.svg\" width=40%\u003e\n\u003cimg src=\"figs/Shared-and-spanning-labels-1b.svg\" width=40%\u003e\n\u003cimg src=\"figs/Shared-and-spanning-labels-1c.svg\" width=40%\u003e\n\u003cimg src=\"figs/Shared-and-spanning-labels-1d.svg\" width=40%\u003e](src/subplots/Shared-and-spanning-labels-1.jl)\n\n[\u003cimg src=\"figs/Shared-and-spanning-labels-2a.svg\" width=40%\u003e\n\u003cimg src=\"figs/Shared-and-spanning-labels-2b.svg\" width=40%\u003e](src/subplots/Shared-and-spanning-labels-2.jl)\n\n## Colorbars and legends\n\n### Axes colorbars and legends\n\n[\u003cimg src=\"figs/Axes-colorbars-and-legends-1.svg\" width=40%\u003e](src/colorbars_legends/Axes-colorbars-and-legends-1.jl)\n[\u003cimg src=\"figs/Axes-colorbars-and-legends-2.svg\" width=40%\u003e](src/colorbars_legends/Axes-colorbars-and-legends-2.jl)\n\n\n## Notes\n\n1. Python's 0-based indexing means all the indices are shifted in these Julia examples.\n\n1. The scoping rules are a bit different between Python and Julia, which require some tweaking for the examples to work.\n\n1. You can't format all the subplots at once with `axs.format` AFAIK, so you have to loop through all axes and format each of them.\n\n1. `f, axs = proplot.subplots()` returns a vector of axes, even if you specify multiple columns, so that you need to reshape (and transpose) the `axs` array to get access to the axes in Cartesian coordinates (i.e., as in `axs[i,j]`).\n\n1. I saved the images via `f.savefig(\"X.svg\", transparent=false)` in [figs/](figs/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriochemc%2Fjuliaproplotexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbriochemc%2Fjuliaproplotexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriochemc%2Fjuliaproplotexamples/lists"}