# How to plot with aitoff projection? (Makie)

**URL:** https://discourse.julialang.org/t/how-to-plot-with-aitoff-projection-makie/97922
**Category:** General Usage
**Tags:** plotting, makie
**Created:** [April 25, 2023, 11:55pm UTC](https://discourse.julialang.org/t/how-to-plot-with-aitoff-projection-makie/97922 "2023-04-25T23:55:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [April 25, 2023, 11:55pm UTC](https://discourse.julialang.org/t/how-to-plot-with-aitoff-projection-makie/97922/1 "2023-04-25T23:55:11Z")

</div>

example: [Geographic Projections — Matplotlib 3.7.1 documentation](https://matplotlib.org/stable/gallery/subplots_axes_and_figures/geo_demo.html)

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [April 26, 2023, 12:02am UTC](https://discourse.julialang.org/t/how-to-plot-with-aitoff-projection-makie/97922/2 "2023-04-26T00:02:42Z")

</div>

GeoMakie.jl

“aitoff” is one of the allowed project from `Proj.jl` which is a wrapper around [https://proj.org/](https://proj.org/)

e.g.:

> <https://github.com/MakieOrg/GeoMakie.jl/issues/114>
>
> I did the following subset of projections (almost all available from Proj4) to t…est how many are done correctly and show them in BeautifulMakie(output). Is better than expected, still some corner cases \[that I don't use\], but those are really hard to get right. Either way, I leave the code here as reference. This is just for lines, I can imagine that for surfaces (heatmaps) less will be successful.  
> 
> \`\`\`Julia
> using GLMakie, GeoMakie
> GLMakie.activate!()
> let
> projections = \["+proj=adams\_hemi", "+proj=adams\_ws1", "+proj=adams\_ws2",
> "+proj=aea +lat\_1=29.5 +lat\_2=42.5", "+proj=aeqd", "+proj=airy", "+proj=aitoff",
> "+proj=apian", "+proj=august", "+proj=bacon", "+proj=bertin1953", "+proj=bipc +ns",
> "+proj=boggs", "+proj=bonne +lat\_1=10", "+proj=cass", "+proj=cea",
> "+proj=chamb +lat\_1=10 +lon\_1=30 +lon\_2=40", "+proj=collg", "+proj=comill",
> "+proj=crast", "+proj=denoy", "+proj=eck1", "+proj=eck2", "+proj=eck3",
> "+proj=eck4", "+proj=eck5", "+proj=eck6", "+proj=eqc", "+proj=eqdc +lat\_1=55 +lat\_2=60",
> "+proj=eqearth", "+proj=euler +lat\_1=67 +lat\_2=75", "+proj=fahey", "+proj=fouc", "+proj=fouc\_s",
> "+proj=gall", "+proj=geos +h=35785831.0 +lon\_0=-60 +sweep=y", "+proj=gins8", "+proj=gn\_sinu +m=2 +n=3",
> "+proj=goode", "+proj=guyou", "+proj=hammer", "+proj=hatano",
> "+proj=igh", "+proj=igh\_o +lon\_0=-160", "+proj=imw\_p +lat\_1=30 +lat\_2=-40", "+proj=isea",
> "+proj=kav5", "+proj=kav7", "+proj=laea", "+proj=lagrng", "+proj=larr", "+proj=lask",
> "+proj=lcca +lat\_0=35", "+proj=leac", "+proj=loxim",
> "+proj=lsat +ellps=GRS80 +lat\_1=-60 +lat\_2=60 +lsat=2 +path=2", "+proj=mbt\_s", "+proj=mbt\_fps",
> "+proj=mbtfpp", "+proj=mbtfpq", "+proj=mbtfps", "+proj=merc", "+proj=mill", "+proj=misrsom +path=1",
> "+proj=moll", "+proj=murd1 +lat\_1=30 +lat\_2=50",
> "+proj=murd3 +lat\_1=30 +lat\_2=50", "+proj=natearth", "+proj=natearth2",
> "+proj=nell", "+proj=nell\_h", "+proj=nicol",
> "+proj=ob\_tran +o\_proj=mill +o\_lon\_p=40 +o\_lat\_p=50 +lon\_0=60", "+proj=ocea", "+proj=oea +m=1 +n=2",
> "+proj=omerc +lat\_1=45 +lat\_2=55", "+proj=ortel", "+proj=ortho", "+proj=patterson", "+proj=poly",
> "+proj=putp1", "+proj=putp2", "+proj=putp3", "+proj=putp3p", "+proj=putp4p", "+proj=putp5",
> "+proj=putp5p", "+proj=putp6", "+proj=putp6p", "+proj=qua\_aut", "+proj=robin", "+proj=rouss",
> "+proj=rpoly", "+proj=sinu", "+proj=times", "+proj=tissot +lat\_1=60 +lat\_2=65", "+proj=tmerc",
> "+proj=tobmerc", "+proj=tpeqd +lat\_1=60 +lat\_2=65", "+proj=urm5 +n=0.9 +alpha=2 +q=4",
> "+proj=urmfps +n=0.5", "+proj=vandg", "+proj=vandg2", "+proj=vandg3", "+proj=vandg4",
> "+proj=vitk1 +lat\_1=45 +lat\_2=55", "+proj=wag1", "+proj=wag2", "+proj=wag3", "+proj=wag4",
> "+proj=wag5", "+proj=wag6", "+proj=wag7", "+proj=webmerc +datum=WGS84", "+proj=weren",
> "+proj=wink1", "+proj=wink2", "+proj=wintri"\]
> 
> fig = Figure(resolution=(1200, 9000))
> k = 2
> for i in 1:39, j in 1:3
> try
> ga = GeoAxis(fig\[i, j\]; dest=projections\[k\],
> title=projections\[k\], coastlines=true)
> hidedecorations!(ga)
> catch ex
> end
> k += 1
> end
> fig
> end;
> \`\`\`
> !\[geoProjections\](https://user-images.githubusercontent.com/19525261/168673345-a29de2a9-94d4-4e5b-b30d-2a0c14c8f857.png)
